Skip to content

Commit

Permalink
All checklists now make their blueprint active
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Dec 17, 2024
1 parent b1fe788 commit 73af64c
Show file tree
Hide file tree
Showing 45 changed files with 118 additions and 67 deletions.
6 changes: 0 additions & 6 deletions tests/python/release_checklist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
# Interactive release checklist
Welcome to the release checklist.

_**⚠ Make sure to clean your blueprints if you want to start from a clean slate ⚠**_

```
pixi run rerun reset
```

Run the testlist with:
```
pixi run -e examples python tests/python/release_checklist/main.py
Expand Down
2 changes: 2 additions & 0 deletions tests/python/release_checklist/check_1d_tensor_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def run(args: Namespace) -> None:
log_readme()
log_1d_data()

rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True)


if __name__ == "__main__":
import argparse
Expand Down
2 changes: 2 additions & 0 deletions tests/python/release_checklist/check_all_components_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ def run(args: Namespace) -> None:
log_readme()
log_some_views()

rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True)


if __name__ == "__main__":
import argparse
Expand Down
2 changes: 2 additions & 0 deletions tests/python/release_checklist/check_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def run(args: Namespace) -> None:
log_readme()
log_annotations()

rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True)


if __name__ == "__main__":
import argparse
Expand Down
3 changes: 2 additions & 1 deletion tests/python/release_checklist/check_bgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def download_example_image_as_rgb() -> np.ndarray:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

sample_image_rgb_u8 = download_example_image_as_rgb()
log_readme()
Expand Down
9 changes: 3 additions & 6 deletions tests/python/release_checklist/check_blueprint_bw_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,9 @@ def log_readme() -> None:


def run(args: Namespace) -> None:
rr.script_setup(
args,
f"{os.path.basename(__file__)}",
recording_id=uuid4(),
default_blueprint=rrb.Grid(rrb.TextDocumentView(origin="readme")),
)
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())

rr.send_blueprint(rrb.Grid(rrb.TextDocumentView(origin="readme")), make_active=True, make_default=True)

log_readme()

Expand Down
2 changes: 2 additions & 0 deletions tests/python/release_checklist/check_blueprint_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def run(args: Namespace) -> None:
log_readme()
log_plots()

rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True)


if __name__ == "__main__":
import argparse
Expand Down
3 changes: 2 additions & 1 deletion tests/python/release_checklist/check_chroma_subsampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ def log_data() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_data()
Expand Down
3 changes: 2 additions & 1 deletion tests/python/release_checklist/check_colormap_edit_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def blueprint() -> rrb.BlueprintLike:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_depth_image()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def log_data() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)
log_readme()
log_data()

Expand Down
2 changes: 2 additions & 0 deletions tests/python/release_checklist/check_container_hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def run(args: Namespace) -> None:
log_readme()
log_some_views()

rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True)


if __name__ == "__main__":
import argparse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def log_some_views() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_some_views()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def log_some_views() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_some_views()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def log_some_views() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_some_views()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def log_some_views() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_some_views()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def log_some_views() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_some_views()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def log_some_views() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_some_views()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def log_some_views() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_some_views()
Expand Down
2 changes: 2 additions & 0 deletions tests/python/release_checklist/check_deselect_on_escape.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def run(args: Namespace) -> None:
log_readme()
log_some_data()

rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True)


if __name__ == "__main__":
import argparse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def log_some_scalar_entities() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_some_scalar_entities()
Expand Down
10 changes: 5 additions & 5 deletions tests/python/release_checklist/check_draw_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ def run_2d_layering() -> None:


def run(args: Namespace) -> None:
rr.script_setup(
args,
f"{os.path.basename(__file__)}",
recording_id=uuid4(),
default_blueprint=rrb.Grid(rrb.Spatial2DView(origin="/"), rrb.TextDocumentView(origin="readme")),
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(
rrb.Blueprint(rrb.Grid(rrb.Spatial2DView(origin="/"), rrb.TextDocumentView(origin="readme"))),
make_active=True,
make_default=True,
)

log_readme()
Expand Down
3 changes: 2 additions & 1 deletion tests/python/release_checklist/check_entity_drag_and_drop.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def log_some_scalar_entities() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_some_scalar_entities()
Expand Down
3 changes: 2 additions & 1 deletion tests/python/release_checklist/check_focus.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def log_some_views() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_some_views()
Expand Down
26 changes: 13 additions & 13 deletions tests/python/release_checklist/check_graph_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ def run(args: Namespace) -> None:
log_coincident_nodes()

rr.send_blueprint(
rrb.Blueprint(
rrb.Grid(
rrb.GraphView(origin="graph", name="Graph 1"),
rrb.GraphView(origin="graph2", name="Graph 2"),
rrb.GraphView(name="Both", contents=["/graph", "/graph2"]),
rrb.GraphView(
origin="coincident",
name="Coincident nodes",
overrides={"coincident": [rr.components.Position2D([0, 0])]},
),
rrb.TextDocumentView(origin="readme", name="Instructions"),
)
)
rrb.Grid(
rrb.GraphView(origin="graph", name="Graph 1"),
rrb.GraphView(origin="graph2", name="Graph 2"),
rrb.GraphView(name="Both", contents=["/graph", "/graph2"]),
rrb.GraphView(
origin="coincident",
name="Coincident nodes",
overrides={"coincident": [rr.components.Position2D([0, 0])]},
),
rrb.TextDocumentView(origin="readme", name="Instructions"),
),
make_default=True,
make_active=True,
)


Expand Down
22 changes: 11 additions & 11 deletions tests/python/release_checklist/check_graph_view_multi_self_edges.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ def run(args: Namespace) -> None:
log_readme()

rr.send_blueprint(
rrb.Blueprint(
rrb.Grid(
rrb.GraphView(origin="graph", name="Multiple edges and self-edges"),
rrb.GraphView(
origin="graph",
name="Multiple edges and self-edges (without labels)",
defaults=[rr.components.ShowLabels(False)],
),
rrb.TextDocumentView(origin="readme", name="Instructions"),
)
)
rrb.Grid(
rrb.GraphView(origin="graph", name="Multiple edges and self-edges"),
rrb.GraphView(
origin="graph",
name="Multiple edges and self-edges (without labels)",
defaults=[rr.components.ShowLabels(False)],
),
rrb.TextDocumentView(origin="readme", name="Instructions"),
),
make_active=True,
make_default=True,
)


Expand Down
2 changes: 2 additions & 0 deletions tests/python/release_checklist/check_heuristics_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def run(args: Namespace) -> None:
log_readme()
log_images()

rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True)


if __name__ == "__main__":
import argparse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def run(args: Namespace) -> None:
log_images()
log_3d_scene()

rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True)


if __name__ == "__main__":
import argparse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def run(args: Namespace) -> None:
rr.log("points2d", rr.Points2D([[0, 0], [1, 1], [3, 2]], labels=["a", "b", "c"]))
rr.log("readme", rr.TextDocument(README, media_type=rr.MediaType.MARKDOWN), timeless=True)

rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True)


if __name__ == "__main__":
import argparse
Expand Down
2 changes: 2 additions & 0 deletions tests/python/release_checklist/check_hover_select_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ def run(args: Namespace) -> None:
log_graph()
log_map()

rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True)


if __name__ == "__main__":
import argparse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def log_points() -> None:
def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())

rr.send_blueprint(blueprint())
rr.send_blueprint(blueprint(), make_default=True, make_active=True)

log_readme()
log_points()
Expand Down
6 changes: 5 additions & 1 deletion tests/python/release_checklist/check_modal_scrolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ def run(args: Namespace) -> None:
args,
f"{os.path.basename(__file__)}",
recording_id=uuid4(),
default_blueprint=rrb.Grid(rrb.Spatial2DView(origin="/"), rrb.TextDocumentView(origin="readme")),
)
rr.send_blueprint(
rrb.Grid(rrb.Spatial2DView(origin="/"), rrb.TextDocumentView(origin="readme")),
make_active=True,
make_default=True,
)

log_readme()
Expand Down
3 changes: 2 additions & 1 deletion tests/python/release_checklist/check_mono_entity_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def blueprint() -> rrb.BlueprintLike:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_data()
Expand Down
2 changes: 1 addition & 1 deletion tests/python/release_checklist/check_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def run(args: Namespace) -> None:
args,
f"{os.path.basename(__file__)}",
recording_id=uuid4(),
default_blueprint=rrb.Grid(rrb.TextDocumentView(origin="readme")),
)
rr.send_blueprint(rrb.Grid(rrb.TextDocumentView(origin="readme")), make_active=True, make_default=True)

log_readme()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def log_data() -> None:


def run(args: Namespace) -> None:
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4(), default_blueprint=blueprint())
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4())
rr.send_blueprint(blueprint(), make_active=True, make_default=True)

log_readme()
log_data()
Expand Down
2 changes: 2 additions & 0 deletions tests/python/release_checklist/check_overrides_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def run(args: Namespace) -> None:
log_readme()
log_boxes()

rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True)


if __name__ == "__main__":
import argparse
Expand Down
Loading

0 comments on commit 73af64c

Please sign in to comment.