Tests: join game-save enumeration reader on unwind #2979
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2979"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-27T06:24:23Z.
Part of #2421. A writer assertion in
blob_enumeration_sees_one_submitted_updatecan unwind while its detached reader still holds a raw pointer to the test's stackContainer. This can turn a file-system test failure into a later0xc0000005. Reporter diagnosisWhat is in it
Tested
c2ee10e4, the reader was still active after unwinding. With this change, the reader had exited before unwinding returned to the probe.cargo test --locked -p xcl --lib -j 2 xgameruntime::gamesave::tests -- --test-threads=1passed 11 tests, 0 failed, 0 ignored, 0 skipped.git diff --checkpassed.Regression run
Only the GameSave test changes. Request maintainer review for the
test-onlylabel because the path-based checker classifiesgamesave.rsas runtime.Not tested
The complete GPU workspace suite and a retail title. The forced-failure probe models the writer assertion with stubbed I/O. The GameSave unit run uses actual file-system operations. The stale-size, mixed-case temp-file, and sharing-failure production fixes are separate.
AI use
OpenAI Codex (GPT-6.2 Sol) traced the test's reader lifetime, implemented the scoped reader, ran the focused CPU checks, and drafted this description.
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-27T06:25:10Z.
Could a maintainer review the diff for the
test-onlylabel? The changed lines are entirely inside#[cfg(test)] mod testsingamesave.rs; the path-based description check currently asks for paired retail smoke. The label would waive that smoke check only. The PR remains a draft because the complete GPU suite has not passed on this machine.The original NTFS reporter's independent rerun would be especially useful here: the patch should make a writer assertion fail cleanly without a later reader use of the dropped container. It does not claim to fix the writer error, temporary-file filtering, or stale-size problem.
AI use: OpenAI Codex (GPT-6, exact serving variant unavailable) checked the exact diff and drafted this scope request.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:15:53Z.
Triage (#1607) – head
1984a95#2521 is for the same issue (#2421), but it changes
blobs_of(the blob size now comes from a freshmetadatacall). This PR only changes the testblob_enumeration_sees_one_submitted_update, so the two do not overlap. The change is correct: the reader is athread::scopethread that borrows the container instead of holding a raw stack address, and theStopReaderdrop guard setsdoneon unwind, so the scope joins the reader before the container is freed. Main still has the old detached-reader version. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.