Repository navigation
Tests: serialise the stale-blob pipeline test with library builds - #3183
tiagonleal wants to merge 1 commit into
Conversation
|
I reproduced the builder's 4 instead of 2 failure on Windows WARP and verified this PR's exact diff applies cleanly to merged main I selected the real
The stock overlap added exactly AI assistance: OpenAI Codex (GPT-6) prepared and ran the bounded schedule and drafted this note. |
|
Independent Windows/NVIDIA check of #3183 head
I reviewed the test-only diff (6 added and 4 removed lines). The affected callers take AI use: Codex (GPT-6.2 Sol) reviewed the diff, checked the lock paths and ran these tests. |
|
@thehollowedone @andrewDoing thanks for both checks. The four tests this PR fixes went red again today on three CI runs of PRs that do not touch shader code: 46257764057 (#3190), 46260503226 (#570) and 46265260479 (#2858). Each time This PR still merges into
|
78477c1 to
c74fcaa
Compare
a_stale_blob_the_driver_takes_is_made_with_one_create_and_replaced makes two pipelines through Pipelines::make_with_cache_path, and every successful make reaches pipeline_library::store. It did not hold BUILD_TEST, so when it ran while a locked test had a build active (between begin and finish), its pipeline was stored into that test's library and the entry count came out one higher than asserted (xcl-dev#3180). It is the only test in the lib binary that reaches store without the lock: the other makes are in tests that already hold it, the pipeline_library tests that do not lock use NativeLibrary directly, and the real.rs two-pass test returns before store.
c74fcaa to
c3d1bd7
Compare
|
merge-check claim |
|
merge-check |
|
#3221 (merged) serialised the other pipeline-library tests with AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
merge-check AI-written and posted by Foniass without a human check of each point. |
Part of #3180. #3221 (merged on 29 Nov) already serialises the tests this PR used to lock and made the lock poison-tolerant, so those parts are dropped. The branch is now one commit of two lines.
What is left:
a_stale_blob_the_driver_takes_is_made_with_one_create_and_replacedmakes two pipelines throughPipelines::make_with_cache_path, and every successful make reachespipeline_library::store. The test did not holdBUILD_TEST. When it overlaps a locked test that has a library build active, its pipeline lands in that test's library and the entry count is one too high. This is the class of intermittent failure listed in #3180.It is the only test in the lib test binary that reaches
storewithout the lock. I checked this by reading the callers of themake*functions: the other makes are in tests that already holdBUILD_TEST, thepipeline_librarytests that do not lock useNativeLibrarydirectly, and the two-pass test inreal.rsreturns beforestore.What is in it
shaders.rs: that test takesBUILD_TEST(poison-tolerant, as the other tests do) at its start#[cfg(test)]Tested
cargo test --workspace --no-fail-fast -j 8 -- --test-threads=4on headc3d1bd7d: 2841 passed, 0 failed, 51 ignored (24SKIPPEDlines: 22no wave64, 2no heap windows; the same 24 in both logs).mainf97120dcon the same machine: 2841 passed, 0 failed, 51 ignored.Regression run
scripts/smoke.ps1 -Seconds 60 -Title 9cc6a39e(a retail title), release builds of both commits,mainf97120dcand this PR's headc3d1bd7d, one run each. A second run ofmainafter the PR runs gave 1680 frames.main(f97120dc):This PR (
c3d1bd7d):Not tested
#[cfg(test)]) in a runtime file.AI use