diff --git a/tests/python/release_checklist/README.md b/tests/python/release_checklist/README.md index ec710d70a2cf..d41559405ab9 100644 --- a/tests/python/release_checklist/README.md +++ b/tests/python/release_checklist/README.md @@ -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 diff --git a/tests/python/release_checklist/check_1d_tensor_data.py b/tests/python/release_checklist/check_1d_tensor_data.py index ae418182e979..2e7aa43ad5cc 100644 --- a/tests/python/release_checklist/check_1d_tensor_data.py +++ b/tests/python/release_checklist/check_1d_tensor_data.py @@ -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 diff --git a/tests/python/release_checklist/check_all_components_ui.py b/tests/python/release_checklist/check_all_components_ui.py index 0849f5983c8b..0885c5010ccc 100644 --- a/tests/python/release_checklist/check_all_components_ui.py +++ b/tests/python/release_checklist/check_all_components_ui.py @@ -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 diff --git a/tests/python/release_checklist/check_annotations.py b/tests/python/release_checklist/check_annotations.py index 3e8ff3f8012b..a63db849ce91 100644 --- a/tests/python/release_checklist/check_annotations.py +++ b/tests/python/release_checklist/check_annotations.py @@ -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 diff --git a/tests/python/release_checklist/check_bgr.py b/tests/python/release_checklist/check_bgr.py index f1316e5c0504..8011e6692ff9 100644 --- a/tests/python/release_checklist/check_bgr.py +++ b/tests/python/release_checklist/check_bgr.py @@ -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() diff --git a/tests/python/release_checklist/check_blueprint_bw_compat.py b/tests/python/release_checklist/check_blueprint_bw_compat.py index dabc4fff1e5d..ee67012b93f5 100644 --- a/tests/python/release_checklist/check_blueprint_bw_compat.py +++ b/tests/python/release_checklist/check_blueprint_bw_compat.py @@ -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() diff --git a/tests/python/release_checklist/check_blueprint_overrides.py b/tests/python/release_checklist/check_blueprint_overrides.py index 8fe9f5a91f6e..d09472cf39f6 100644 --- a/tests/python/release_checklist/check_blueprint_overrides.py +++ b/tests/python/release_checklist/check_blueprint_overrides.py @@ -34,26 +34,6 @@ def log_plots() -> None: cos_of_t = cos(float(t) / 10.0) rr.log("plots/cos", rr.Scalar(cos_of_t)) - rr.send_blueprint( - rrb.Blueprint( - rrb.Grid( - rrb.TextDocumentView(origin="readme", name="Instructions"), - rrb.TimeSeriesView( - name="Plots", - defaults=[rr.components.Color([0, 0, 255])], - overrides={ - "plots/cos": [ - rrb.VisualizerOverrides("SeriesPoint"), - rr.components.Color([0, 255, 0]), - # TODDO(#6670): This should just be `rr.components.MarkerShape.Cross` - rr.components.MarkerShapeBatch("cross"), - ], - }, - ), - ) - ) - ) - def run(args: Namespace) -> None: rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4()) @@ -61,6 +41,25 @@ def run(args: Namespace) -> None: log_readme() log_plots() + blueprint = rrb.Blueprint( + rrb.Grid( + rrb.TextDocumentView(origin="readme", name="Instructions"), + rrb.TimeSeriesView( + name="Plots", + defaults=[rr.components.Color([0, 0, 255])], + overrides={ + "plots/cos": [ + rrb.VisualizerOverrides("SeriesPoint"), + rr.components.Color([0, 255, 0]), + # TODDO(#6670): This should just be `rr.components.MarkerShape.Cross` + rr.components.MarkerShapeBatch("cross"), + ], + }, + ), + ) + ) + rr.send_blueprint(blueprint, make_active=True, make_default=True) + if __name__ == "__main__": import argparse diff --git a/tests/python/release_checklist/check_chroma_subsampling.py b/tests/python/release_checklist/check_chroma_subsampling.py index c072c57a995e..cb321b1e1807 100644 --- a/tests/python/release_checklist/check_chroma_subsampling.py +++ b/tests/python/release_checklist/check_chroma_subsampling.py @@ -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() diff --git a/tests/python/release_checklist/check_colormap_edit_ui.py b/tests/python/release_checklist/check_colormap_edit_ui.py index 7d7279469cd7..f022c49cdafb 100644 --- a/tests/python/release_checklist/check_colormap_edit_ui.py +++ b/tests/python/release_checklist/check_colormap_edit_ui.py @@ -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() diff --git a/tests/python/release_checklist/check_component_and_transform_clamping.py b/tests/python/release_checklist/check_component_and_transform_clamping.py index cfabe06a2fb2..66f6c832d99b 100644 --- a/tests/python/release_checklist/check_component_and_transform_clamping.py +++ b/tests/python/release_checklist/check_component_and_transform_clamping.py @@ -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() diff --git a/tests/python/release_checklist/check_container_hierarchy.py b/tests/python/release_checklist/check_container_hierarchy.py index 90150e3c6514..b602b0a2c422 100644 --- a/tests/python/release_checklist/check_container_hierarchy.py +++ b/tests/python/release_checklist/check_container_hierarchy.py @@ -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 diff --git a/tests/python/release_checklist/check_context_menu_add_entity_to_new_space_view.py b/tests/python/release_checklist/check_context_menu_add_entity_to_new_space_view.py index 2bd104a8927a..ee01607dcac6 100644 --- a/tests/python/release_checklist/check_context_menu_add_entity_to_new_space_view.py +++ b/tests/python/release_checklist/check_context_menu_add_entity_to_new_space_view.py @@ -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() diff --git a/tests/python/release_checklist/check_context_menu_collapse_expand_all.py b/tests/python/release_checklist/check_context_menu_collapse_expand_all.py index ee1d9d74ffa8..05d378b7e522 100644 --- a/tests/python/release_checklist/check_context_menu_collapse_expand_all.py +++ b/tests/python/release_checklist/check_context_menu_collapse_expand_all.py @@ -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() diff --git a/tests/python/release_checklist/check_context_menu_invalid_sub_container.py b/tests/python/release_checklist/check_context_menu_invalid_sub_container.py index 9a32db71f704..670f3118b68f 100644 --- a/tests/python/release_checklist/check_context_menu_invalid_sub_container.py +++ b/tests/python/release_checklist/check_context_menu_invalid_sub_container.py @@ -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() diff --git a/tests/python/release_checklist/check_context_menu_multi_selection.py b/tests/python/release_checklist/check_context_menu_multi_selection.py index 8864588a4fd4..7c42f59bbc8e 100644 --- a/tests/python/release_checklist/check_context_menu_multi_selection.py +++ b/tests/python/release_checklist/check_context_menu_multi_selection.py @@ -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() diff --git a/tests/python/release_checklist/check_context_menu_single_selection.py b/tests/python/release_checklist/check_context_menu_single_selection.py index 14f7d5180281..5b9a3a9aca54 100644 --- a/tests/python/release_checklist/check_context_menu_single_selection.py +++ b/tests/python/release_checklist/check_context_menu_single_selection.py @@ -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() diff --git a/tests/python/release_checklist/check_context_menu_single_selection_blueprint_tree.py b/tests/python/release_checklist/check_context_menu_single_selection_blueprint_tree.py index 4b5ab7a340f1..bcf310ca2fda 100644 --- a/tests/python/release_checklist/check_context_menu_single_selection_blueprint_tree.py +++ b/tests/python/release_checklist/check_context_menu_single_selection_blueprint_tree.py @@ -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() diff --git a/tests/python/release_checklist/check_context_menu_suggested_origin.py b/tests/python/release_checklist/check_context_menu_suggested_origin.py index 02c120940bdb..a0b4933f8def 100644 --- a/tests/python/release_checklist/check_context_menu_suggested_origin.py +++ b/tests/python/release_checklist/check_context_menu_suggested_origin.py @@ -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() diff --git a/tests/python/release_checklist/check_deselect_on_escape.py b/tests/python/release_checklist/check_deselect_on_escape.py index e74698bc9656..dd86cfeb7fa8 100644 --- a/tests/python/release_checklist/check_deselect_on_escape.py +++ b/tests/python/release_checklist/check_deselect_on_escape.py @@ -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 diff --git a/tests/python/release_checklist/check_drag_and_drop_selection.py b/tests/python/release_checklist/check_drag_and_drop_selection.py index 2ca4d7ee9b82..1c1f90ce5fcc 100644 --- a/tests/python/release_checklist/check_drag_and_drop_selection.py +++ b/tests/python/release_checklist/check_drag_and_drop_selection.py @@ -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() diff --git a/tests/python/release_checklist/check_draw_order.py b/tests/python/release_checklist/check_draw_order.py index df6ed675cbd0..87e397d6bf48 100644 --- a/tests/python/release_checklist/check_draw_order.py +++ b/tests/python/release_checklist/check_draw_order.py @@ -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() diff --git a/tests/python/release_checklist/check_entity_drag_and_drop.py b/tests/python/release_checklist/check_entity_drag_and_drop.py index 0e9d718064dd..85439d8cf03b 100644 --- a/tests/python/release_checklist/check_entity_drag_and_drop.py +++ b/tests/python/release_checklist/check_entity_drag_and_drop.py @@ -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() diff --git a/tests/python/release_checklist/check_focus.py b/tests/python/release_checklist/check_focus.py index 91c25335f0e7..2bdbe82ce447 100644 --- a/tests/python/release_checklist/check_focus.py +++ b/tests/python/release_checklist/check_focus.py @@ -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() diff --git a/tests/python/release_checklist/check_graph_view.py b/tests/python/release_checklist/check_graph_view.py index 27ae31d839c4..4998792806e9 100644 --- a/tests/python/release_checklist/check_graph_view.py +++ b/tests/python/release_checklist/check_graph_view.py @@ -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, ) diff --git a/tests/python/release_checklist/check_graph_view_multi_self_edges.py b/tests/python/release_checklist/check_graph_view_multi_self_edges.py index 8b43cac93fc0..bef301ff7c23 100644 --- a/tests/python/release_checklist/check_graph_view_multi_self_edges.py +++ b/tests/python/release_checklist/check_graph_view_multi_self_edges.py @@ -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, ) diff --git a/tests/python/release_checklist/check_heuristics_2d.py b/tests/python/release_checklist/check_heuristics_2d.py index a951d05bec2f..96549cbf06ea 100644 --- a/tests/python/release_checklist/check_heuristics_2d.py +++ b/tests/python/release_checklist/check_heuristics_2d.py @@ -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 diff --git a/tests/python/release_checklist/check_heuristics_mixed_2d_and_3d.py b/tests/python/release_checklist/check_heuristics_mixed_2d_and_3d.py index ba151b266d41..18ee34985583 100644 --- a/tests/python/release_checklist/check_heuristics_mixed_2d_and_3d.py +++ b/tests/python/release_checklist/check_heuristics_mixed_2d_and_3d.py @@ -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 diff --git a/tests/python/release_checklist/check_heuristics_mixed_all_root.py b/tests/python/release_checklist/check_heuristics_mixed_all_root.py index 5b90b33e876a..38c2e1cbf12b 100644 --- a/tests/python/release_checklist/check_heuristics_mixed_all_root.py +++ b/tests/python/release_checklist/check_heuristics_mixed_all_root.py @@ -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 diff --git a/tests/python/release_checklist/check_hover_select_reset.py b/tests/python/release_checklist/check_hover_select_reset.py index a83560ba7150..253949bb0c7d 100644 --- a/tests/python/release_checklist/check_hover_select_reset.py +++ b/tests/python/release_checklist/check_hover_select_reset.py @@ -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 diff --git a/tests/python/release_checklist/check_latest_at_partial_updates.py b/tests/python/release_checklist/check_latest_at_partial_updates.py index 18d25bdbb82c..13bf39d61437 100644 --- a/tests/python/release_checklist/check_latest_at_partial_updates.py +++ b/tests/python/release_checklist/check_latest_at_partial_updates.py @@ -65,10 +65,6 @@ def blueprint() -> rrb.BlueprintLike: ), ] ), - # NOTE: It looks nice but it's very annoying when going through several checklists. - # rrb.BlueprintPanel(state="collapsed"), - # rrb.TimePanel(state="collapsed"), - # rrb.SelectionPanel(state="collapsed"), ) @@ -119,7 +115,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() diff --git a/tests/python/release_checklist/check_modal_scrolling.py b/tests/python/release_checklist/check_modal_scrolling.py index 8859f69acc17..bfb7e61df626 100644 --- a/tests/python/release_checklist/check_modal_scrolling.py +++ b/tests/python/release_checklist/check_modal_scrolling.py @@ -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() diff --git a/tests/python/release_checklist/check_mono_entity_views.py b/tests/python/release_checklist/check_mono_entity_views.py index 90a45b40b821..b5c242635ee1 100644 --- a/tests/python/release_checklist/check_mono_entity_views.py +++ b/tests/python/release_checklist/check_mono_entity_views.py @@ -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() diff --git a/tests/python/release_checklist/check_notebook.py b/tests/python/release_checklist/check_notebook.py index 978acd0c2932..42612295067d 100644 --- a/tests/python/release_checklist/check_notebook.py +++ b/tests/python/release_checklist/check_notebook.py @@ -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() diff --git a/tests/python/release_checklist/check_out_of_tree_data_results.py b/tests/python/release_checklist/check_out_of_tree_data_results.py index 99f1edf440c7..e1d71272f26c 100644 --- a/tests/python/release_checklist/check_out_of_tree_data_results.py +++ b/tests/python/release_checklist/check_out_of_tree_data_results.py @@ -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() diff --git a/tests/python/release_checklist/check_overrides_2d.py b/tests/python/release_checklist/check_overrides_2d.py index d8dc0c24de94..64ef757769e4 100644 --- a/tests/python/release_checklist/check_overrides_2d.py +++ b/tests/python/release_checklist/check_overrides_2d.py @@ -67,6 +67,13 @@ def log_boxes() -> None: rr.Arrows2D(origins=[[-2.0, 0.0], [0.0, 0.0], [2.0, 0.0]], vectors=[[-2.0, 1.0], [0.0, 2.0], [2.0, 1.0]]), ) + +def run(args: Namespace) -> None: + rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4()) + + log_readme() + log_boxes() + visual_bounds = rrb.VisualBounds2D(x_range=[-5.5, 5.5], y_range=[-3.0, 3.0]) overrides = { "arrows": [ @@ -87,68 +94,58 @@ def log_boxes() -> None: rr.components.TextBatch(["TeenyYellow", "AverageCyan", "GigaPurple"]), ] - rr.send_blueprint( - rrb.Blueprint( - rrb.Grid( - rrb.TextDocumentView(origin="readme", name="Instructions"), - rrb.Vertical( - rrb.Spatial2DView( - name="1) Overrides, logged values & defaults", - visual_bounds=visual_bounds, - overrides=overrides, - defaults=defaults, - ), - rrb.Spatial2DView( - name="2) Logged values & defaults", - visual_bounds=visual_bounds, - defaults=defaults, - ), - rrb.Spatial2DView( - name="3) Logged values only", - visual_bounds=visual_bounds, - ), + blueprint = rrb.Blueprint( + rrb.Grid( + rrb.TextDocumentView(origin="readme", name="Instructions"), + rrb.Vertical( + rrb.Spatial2DView( + name="1) Overrides, logged values & defaults", + visual_bounds=visual_bounds, + overrides=overrides, + defaults=defaults, + ), + rrb.Spatial2DView( + name="2) Logged values & defaults", + visual_bounds=visual_bounds, + defaults=defaults, ), - rrb.Vertical( - rrb.Spatial2DView( - name="What you should get after removing overrides from 1)", - visual_bounds=visual_bounds, - defaults=defaults, - ), - rrb.Spatial2DView( - name="What you should get after removing defaults from 2)", - visual_bounds=visual_bounds, - ), - rrb.Spatial2DView( - name="What you should get after adding overrides & defaults to 3)", - visual_bounds=visual_bounds, - overrides={ - "arrows": [ - rrb.VisualizerOverrides([ - rrb.visualizers.Arrows2D, - rrb.visualizers.Points2D, - ]), - rr.components.Color([255, 255, 255]), - rr.components.Radius(0.1), - rr.components.Text("Cerberus"), - rr.components.Position2D([0.0, 0.0]), - ] - }, - ), + rrb.Spatial2DView( + name="3) Logged values only", + visual_bounds=visual_bounds, ), - grid_columns=3, - column_shares=[1, 1, 1], ), - rrb.BlueprintPanel(state="collapsed"), - rrb.TimePanel(state="collapsed"), - ) + rrb.Vertical( + rrb.Spatial2DView( + name="What you should get after removing overrides from 1)", + visual_bounds=visual_bounds, + defaults=defaults, + ), + rrb.Spatial2DView( + name="What you should get after removing defaults from 2)", + visual_bounds=visual_bounds, + ), + rrb.Spatial2DView( + name="What you should get after adding overrides & defaults to 3)", + visual_bounds=visual_bounds, + overrides={ + "arrows": [ + rrb.VisualizerOverrides([ + rrb.visualizers.Arrows2D, + rrb.visualizers.Points2D, + ]), + rr.components.Color([255, 255, 255]), + rr.components.Radius(0.1), + rr.components.Text("Cerberus"), + rr.components.Position2D([0.0, 0.0]), + ] + }, + ), + ), + grid_columns=3, + column_shares=[1, 1, 1], + ), ) - - -def run(args: Namespace) -> None: - rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4()) - - log_readme() - log_boxes() + rr.send_blueprint(blueprint, make_active=True, make_default=True) if __name__ == "__main__": diff --git a/tests/python/release_checklist/check_parallelism_caching_reentrancy.py b/tests/python/release_checklist/check_parallelism_caching_reentrancy.py index 304d66c1644d..842a1dd2e6da 100644 --- a/tests/python/release_checklist/check_parallelism_caching_reentrancy.py +++ b/tests/python/release_checklist/check_parallelism_caching_reentrancy.py @@ -177,7 +177,8 @@ def log_spatial() -> 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_text_logs() diff --git a/tests/python/release_checklist/check_plot_overrides.py b/tests/python/release_checklist/check_plot_overrides.py index cc3a482bb3ce..c46d88669f4f 100644 --- a/tests/python/release_checklist/check_plot_overrides.py +++ b/tests/python/release_checklist/check_plot_overrides.py @@ -62,6 +62,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 diff --git a/tests/python/release_checklist/check_range_partial_updates.py b/tests/python/release_checklist/check_range_partial_updates.py index 39220eaf58d7..caeb50c805fc 100644 --- a/tests/python/release_checklist/check_range_partial_updates.py +++ b/tests/python/release_checklist/check_range_partial_updates.py @@ -98,10 +98,6 @@ def blueprint() -> rrb.BlueprintLike: ], grid_columns=3, ), - # NOTE: It looks nice but it's very annoying when going through several checklists. - # rrb.BlueprintPanel(state="collapsed"), - # rrb.TimePanel(state="collapsed"), - # rrb.SelectionPanel(state="collapsed"), ) @@ -134,7 +130,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_active=True, make_default=True) log_readme() log_points() diff --git a/tests/python/release_checklist/check_rbl_import.py b/tests/python/release_checklist/check_rbl_import.py index 942fb8d3e33d..c74e93305f5d 100644 --- a/tests/python/release_checklist/check_rbl_import.py +++ b/tests/python/release_checklist/check_rbl_import.py @@ -37,9 +37,6 @@ def log_external_blueprint() -> None: rrb.TextDocumentView(origin="readme"), column_shares=[3, 2], ), - rrb.BlueprintPanel(state="collapsed"), - rrb.SelectionPanel(state="collapsed"), - rrb.TimePanel(state="collapsed"), ).save("some_unrelated_blueprint_app_id", tmp.name) rr.log_file_from_path(tmp.name) @@ -76,7 +73,9 @@ def run(args: Namespace) -> None: args, f"{os.path.basename(__file__)}", recording_id=uuid4(), - default_blueprint=rrb.Blueprint( + ) + rr.send_blueprint( + rrb.Blueprint( rrb.Horizontal( rrb.TimeSeriesView(origin="/"), rrb.TextDocumentView(origin="readme"), @@ -86,6 +85,8 @@ def run(args: Namespace) -> None: rrb.SelectionPanel(state="collapsed"), rrb.TimePanel(state="collapsed"), ), + make_active=True, + make_default=True, ) log_readme() diff --git a/tests/python/release_checklist/check_scalar_clears.py b/tests/python/release_checklist/check_scalar_clears.py index 81e922bf93c1..c3f025ccbaca 100644 --- a/tests/python/release_checklist/check_scalar_clears.py +++ b/tests/python/release_checklist/check_scalar_clears.py @@ -46,6 +46,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 diff --git a/tests/python/release_checklist/check_static_components_ui.py b/tests/python/release_checklist/check_static_components_ui.py index 61bb20845ee1..6c53e9d66ca3 100644 --- a/tests/python/release_checklist/check_static_components_ui.py +++ b/tests/python/release_checklist/check_static_components_ui.py @@ -62,6 +62,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 diff --git a/tests/python/release_checklist/check_static_override.py b/tests/python/release_checklist/check_static_override.py index ddf28ccb33f3..7c2748c9733a 100644 --- a/tests/python/release_checklist/check_static_override.py +++ b/tests/python/release_checklist/check_static_override.py @@ -29,6 +29,8 @@ def run(args: Namespace) -> None: # Log it again, to ensure that the newest one is visible rr.log("points", rr.Points3D([[0, 0, 0], [1, 1, 1], [2, 2, 2]]), static=True) + rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True) + if __name__ == "__main__": import argparse diff --git a/tests/python/release_checklist/check_transform3d_hierarchy.py b/tests/python/release_checklist/check_transform3d_hierarchy.py index 5e0d0f81bf8d..ea54715593ee 100644 --- a/tests/python/release_checklist/check_transform3d_hierarchy.py +++ b/tests/python/release_checklist/check_transform3d_hierarchy.py @@ -72,9 +72,9 @@ def log_data() -> None: rr.set_time_sequence("steps", 4) path += "scale_back_mat3x3/" # fmt: off - rr.log(path, rr.Transform3D(mat3x3=[1.0, 0.0, 0.0, - 0.0, 5.0, 0.0, - 0.0, 0.0, 1.0])) + rr.log(path, rr.Transform3D(mat3x3=[1.0, 0.0, 0.0, + 0.0, 5.0, 0.0, + 0.0, 0.0, 1.0])) # fmt: on rr.set_time_sequence("steps", 5) @@ -112,7 +112,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) # Extract the rerun_obj.zip file with zipfile.ZipFile(f"{rerun_obj_path}.zip", "r") as zip_ref: diff --git a/tests/python/release_checklist/check_version.py b/tests/python/release_checklist/check_version.py index 78d34a59a5d2..35ede9dc7f44 100644 --- a/tests/python/release_checklist/check_version.py +++ b/tests/python/release_checklist/check_version.py @@ -38,6 +38,8 @@ def run(args: Namespace) -> None: log_readme() log_the_versions() + rr.send_blueprint(rr.blueprint.Blueprint(auto_layout=True, auto_views=True), make_active=True, make_default=True) + if __name__ == "__main__": import argparse diff --git a/tests/python/release_checklist/check_video.py b/tests/python/release_checklist/check_video.py index 5dd2f4aec54d..14720f3cc626 100644 --- a/tests/python/release_checklist/check_video.py +++ b/tests/python/release_checklist/check_video.py @@ -66,20 +66,19 @@ def run(args: Namespace) -> None: static=True, # Static, so it shows up in the "video_time" timeline! ) - rr.send_blueprint( - rrb.Blueprint( - rrb.Grid( - rrb.TextDocumentView(origin="readme", name="Instructions"), - rrb.Spatial3DView(origin="/", name="AV1 frustum", contents="av1"), - rrb.Spatial2DView(origin="av1", name="AV1"), - rrb.Spatial2DView(origin="h264", name="H.264"), - rrb.Spatial2DView(origin="h265", name="H.265"), - rrb.Spatial2DView(origin="vp9", name="VP9"), - ), - rrb.TimePanel(state="collapsed"), - ) + blueprint = rrb.Blueprint( + rrb.Grid( + rrb.TextDocumentView(origin="readme", name="Instructions"), + rrb.Spatial3DView(origin="/", name="AV1 frustum", contents="av1"), + rrb.Spatial2DView(origin="av1", name="AV1"), + rrb.Spatial2DView(origin="h264", name="H.264"), + rrb.Spatial2DView(origin="h265", name="H.265"), + rrb.Spatial2DView(origin="vp9", name="VP9"), + ), ) + rr.send_blueprint(blueprint, make_active=True, make_default=True) + if __name__ == "__main__": import argparse