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: cog_windows_stand_in_the_level_kept_until_their_tiles_arrive fails 'no holes' in full local runs #2687
tests::cog_windows_stand_in_the_level_kept_until_their_tiles_arrive (crates/engine/src/tests.rs) fails intermittently in full local runs of cargo test -p rustgis-engine --lib (and cargo xtask changed), and passes when run alone and in CI. During the 2026-11-22 release sweep it failed in at least five full runs across different branches, always on the same assertion:
thread 'tests::cog_windows_stand_in_the_level_kept_until_their_tiles_arrive' panicked at crates/engine/src/tests.rs:<line>:5:
no holes
That is the first window check, after the level-0 tiles are gated off: the window should be filled from level 1, whose tiles layer.addUrl just fetched, but some cells are NaN. The likely cause is that the level-1 tiles are no longer in the shared tile cache by then: the cache is process-wide, and other tests running in parallel fill or empty it (the doc comment on a_header_refused_with_retry_after_is_read_again_when_it_says already notes that "another test may empty the cache meanwhile"). The failures were all on a machine loaded with other builds, which widens the window between the add and the check.
Possible fixes: give the test a cache it owns (or a guard that keeps other tests from clearing it while it runs), or check that level 1's tiles are still held before asserting and fetch them again if not. The test-hygiene rule applies: prefer a completion signal over a longer timer wait.
Make the test independent of other tests' use of the shared tile cache
Confirm with repeated full rustgis-engine --lib runs under load
Activity