You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky test: plugin_small_ribbon_columns_and_nested_menus_preserve_actions races the storage account tests #2899
plugin_small_ribbon_columns_and_nested_menus_preserve_actions (crates/ui-egui/tests/smoke.rs) fails now and then when the smoke tests run together, and takes plugins_install_from_a_file_after_a_prompt with it:
thread 'plugin_small_ribbon_columns_and_nested_menus_preserve_actions' panicked at crates\ui-egui\tests\smoke.rs:1738:5:
assertion failed: h.state().session.notices_since(mark).iter().any(|n| n.error && n.text.contains("nope"))
thread 'plugins_install_from_a_file_after_a_prompt' panicked at crates\ui-egui\tests\smoke.rs:1598:7:
Found two or more nodes matching the query: By { label: "Uninstall" }
Seen on Windows 11, in debug builds of two branches holding main at 2342a2c (smoke.rs and the plugin code as main has them): 6 of 27 full runs, with RUSTGIS_LANGUAGE=en. I haven't seen it in CI.
Cause
The test clicks a plugin command, which starts a frame later and first checks that the storage accounts haven't changed. A remembered_s3 test in the same process connects or disconnects one in between, so the command is refused: with the notices printed in the assertion, the only one there was
the live storage account changed since this request started
Alone, the test passed 15 of 15 times. Run with only the remembered_s3 tests, it failed 3 of 17:
cargo test -p rustgis-ui-egui --test smoke -- plugin_small_ribbon_columns_and_nested_menus_preserve_actions remembered_s3
It also fails at line 1768, where the same command is run from the nested menu. The second test fails because the first one's panic leaves its plugin (ui-small) loaded, so there is a second Uninstall.
plugin_picks_take_a_place_on_the_map met the same race and runs in a process of its own (in_own_process, from #1643).
Proposed fix
Start plugin_small_ribbon_columns_and_nested_menus_preserve_actions with if in_own_process("plugin_small_ribbon_columns_and_nested_menus_preserve_actions") { return; }, before it takes the PLUGINS lock.
Unload its plugin with the Unload guard, so a failure there no longer fails another test.
Test code only; the app's check is right to refuse the command.
Activity
ninhhaidang commentedon Nov 26, 2026
I’ll take this. The fix is up in #3037.