-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable re_renderer
for all tests using the TestContext
if graphics adapter is present
#8606
base: main
Are you sure you want to change the base?
Conversation
@rerun-bot full-check |
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/12656489804 |
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/12660223373 |
note to self: expecting this to fail since the PR as is requires graphics adapter creation to be always successful and we don't do anything towards that. But I want to see how it fails exactly and then remedy it (essentially solving #8245) |
decided to take this more step by step: for the moment this does not enforce the wgpu adapter and by extension the re_renderer context to be present |
re_renderer
for all tests using the TestContext
re_renderer
for all tests using the TestContext
if graphics adapter is present
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/12670527402 |
{ name = "pulldown-cmark" }, # Build-dependency via `ply-rs` (!). TODO(emilk): use a better crate for .ply parsing | ||
{ name = "redox_syscall" }, # Plenty of versions in the wild | ||
{ name = "pollster" }, # rfd is still on 0.3 | ||
{ name = "accesskit_consumer" }, # Duplicate as when used as dev dependency - eframe & egui_kittest are on different versions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is new, nothing else changed
The viewer test harness now tries to create a wgpu adapter (only once via a
Lazy
) in order to re-use this in an re_renderer context. As a consequence screenshot tests can now use egui elements that bottom out inre_renderer
drawing (i.e. inViewBuilder
).For the moment the adapter creation is allowed to fail, meaning that if we're on a ci machine without any graphics adapter at all, we can still continue as before with render context ==
None
.Performance:
Timing reports for
cargo test -p re_component_ui
(as reported by test runner) on Windows:Next steps:
render_ctx
non option againWgpuSetup
,egui_kittest
now prefers software rasterizers for testing emilk/egui#5506