Skip to content

Conversation

@aedm
Copy link
Member

@aedm aedm commented Oct 22, 2025

Related

Part of #8948

What

  • Adds automated tests for origin heuristics when adding an entity to a new view
  • Removes check_context_menu_suggested_origin.py from release checklist

@github-actions
Copy link

github-actions bot commented Oct 22, 2025

Web viewer built successfully.

Result Commit Link Manifest
fe0190e https://rerun.io/viewer/pr/11620 +nightly +main

View image diff on kitdiff.

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 28, 2025
@aedm aedm marked this pull request as ready for review October 31, 2025 13:32
@aedm aedm requested a review from lucasmerlin October 31, 2025 13:32
Comment on lines +10 to +16
fn make_test_image() -> re_types::archetypes::Image {
let image = ndarray::Array3::from_shape_fn((256, 256, 3), |(y, x, c)| match c {
0 => x as u8,
1 => y as u8,
2 => 128,
_ => unreachable!(),
});
Copy link
Member

Choose a reason for hiding this comment

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

Image

Comment on lines +139 to +142
// Close the selection panel before clicking on the image entity
// because rendering its download button requires the UI to be on
// the main thread. We are in a tokio test and it will crash.
harness.set_selection_panel_opened(false);
Copy link
Member

Choose a reason for hiding this comment

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

What is this about? Is this related to MainThreadToken? Do we really need to be on main thread to render the button? I would assume we would only need it to process the save-action (i.e. handle clicking it)!

What happens if you remove this line? Does something crash?

@@ -0,0 +1,246 @@
use egui_kittest::kittest::Queryable as _;
Copy link
Member

Choose a reason for hiding this comment

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

Should have a module-level comment explaining roughly what this test is all about

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.

3 participants