Skip to content

Conversation

aedm
Copy link
Member

@aedm aedm commented Oct 1, 2025

Related

What

Adds save/load/snapshot tests for blueprints.

Note: the check_rbl_import.py can't yet be removed as it's testing blueprint imports with a different app id, this test doesn't cover it yet, this is where App and TestContext differ somewhat.

Copy link

github-actions bot commented Oct 1, 2025

Web viewer built successfully.

Result Commit Link Manifest
2603e88 https://rerun.io/viewer/pr/11395 +nightly +main

Note: This comment is updated whenever you push a commit.

@aedm aedm added the exclude from changelog PRs with this won't show up in CHANGELOG.md label Oct 1, 2025
@aedm aedm requested a review from Wumpf October 2, 2025 10:42
@aedm aedm marked this pull request as ready for review October 2, 2025 10:42
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!! very happy to see this automated now

Comment on lines +76 to +77
// Trigger recalculation of visualizable entities and blueprint overrides.
test_context.setup_viewport_blueprint(|_ctx, _blueprint| {});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof that's the annoying thing you've mentioned on yesterday standup where App is recalculating it all the time and TestContext is not? Feels like TestContext is in the wrong here, but I figure we can't do that where test context's run method lives or something of that shape?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is. :(
The new App-based harness work differently, it loads the current blueprint from the store at the start of each frame. The TestContext only does that when you explicitly call this function.

@aedm aedm merged commit d88658b into main Oct 7, 2025
40 checks passed
@aedm aedm deleted the aedm/test-rbl-loader branch October 7, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exclude from changelog PRs with this won't show up in CHANGELOG.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants