Repository navigation
tests: per-run TempDir scratch directories (#246), and the v0.47.0 lean scope in rivet - #337
Merged
Merged
Conversation
Tests derived scratch paths from fixed names in the shared temp dir and wiped them on entry, so two concurrent runs of one test binary deleted each other's staged files, and cargo-mutants counted the collision as a kill. Every such scratch is now a per-call tempfile::TempDir. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
The maintainer chose the lean v0.47.0 scope on 2026-11-07 (factory-notice 20261107T114914-ac99a4). REQ-AGENTDOCS-005, REQ-SIGNEDSUMS-001 and REQ-VERIFYPAR-001 (clause 1, the cold measurement) stay in v0.47.0 beside the defects #286, #246 and #234 and the follow-ups #331 and #333. The other 12 requirements move to v0.48.0: REQ-ADVISORYWATCH-003, REQ-AGENTDOCS-004, REQ-BLOBLICENCE-001, REQ-BUILTINDOCS-001, REQ-COMPOSEWINDOW-003, REQ-DOCSINLAYER-001, REQ-EVIDENCE-001, REQ-JESSRENODE-001, REQ-OWNYAML-001, REQ-RENODE-001, REQ-TOOLCHAIN-001, REQ-ZMODEXPORT-002. Only the release field changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #246.
This PR does two things, in two commits:
tempfile::TempDir.1. Test scratch directories (#246)
Before this change, tests across both crates staged files under fixed names in the shared temp directory and wiped that path on entry. That covered deposit, stage, source, advisorywatch, store, docsexport, realm, zephyrmodule and the varve docs tests. When two runs of one test binary overlapped, which happens when two mutation shards share a host, one run deleted the other's staged files. The test then failed, and cargo-mutants could count that failure as a kill the mutant never earned.
#[cfg(test)] pub(crate) mod testscratchinvarve-producerwrapstempfile::TempDir. It providesScratch::new(tag),Deref<Target = Path>andAsRef<Path>, so each call site keeps its shape.TempDir. It is unique to the run and removed on drop.std::env::temp_dir()are deliberately unchanged:varve-producermain.rslines 323, 618 and 810, andvarve-serveharvest.rsline 137. These are the onlytemp_dir()calls left incrates/.Evidence
Concurrent-run check. Two copies of the same test binary started at once, 10 rounds per filter:
depositstagestoredocsexportThe before case was not re-run in this session. The collision is described in #246.
2. v0.47.0 scope
You chose the lean v0.47.0 cut on 2026-11-07, recorded as factory-notice
20261107T114914-ac99a4. This commit moves the 12 requirements outside that cut from release v0.47.0 to v0.48.0, usingrivet modify --where. Only theirrelease:field changes:ADVISORYWATCH-003, AGENTDOCS-004, BLOBLICENCE-001, BUILTINDOCS-001, COMPOSEWINDOW-003, DOCSINLAYER-001, EVIDENCE-001, JESSRENODE-001, OWNYAML-001, RENODE-001, TOOLCHAIN-001 and ZMODEXPORT-002.
Three requirements stay in v0.47.0: REQ-AGENTDOCS-005, REQ-SIGNEDSUMS-001 and REQ-VERIFYPAR-001 (clause 1).
The scope change rides here rather than in its own PR, because CI runs are queueing for about 3 hours. The commit touches only
artifacts/requirements.yaml.Local gates, rebased on 44701d7 (#336)
cargo fmt --check: OK.-D warnings: clean.rivet validate: exits 0.rivet check verification-evidence, trace-gate (with gates: close the three weak spots of the v0.46.0 potency audit (#333) #336's stricter evidence rule), claim-check, tracepack-check and review-check all exit 0.tools/systest/install-shadow.sh: exits 0.-S warning: clean.🤖 Generated with Claude Code
https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu