Repository navigation
Each supervisor test fixture gets its own home: parallel tests no longer race one admission store (card ee7753e7) - #5414
Merged
joelteply merged 1 commit intoOct 25, 2026
Conversation
…ger race one admission store (card ee7753e7)
fake_instance(name) used a fixed /tmp/fake-supervisor-test/{name}; 8 tests
share Paige and 5 Pax, and materialize_adapters opens the persona's
admission store before the factory, so two parallel tests could refuse a
seat at random (AdmissionRestore). Seen on #5413's mind job:
forwards_profile_errors_without_calling_factory build_count 0, expected 1.
The home is now unique per fixture, keyed by its fresh peer id.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
deleted the
ee7753e7/supervisor-test-fixtures-share-one-engra
branch
October 25, 2026 10:01
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.
How this serves the minds: a test race that refuses a seat at random makes every PR touching the mind crate look red for reasons outside its diff, which slows every change that serves residents. This one surfaced on #5413 (the enrico outage fix).
Card ee7753e7.
Defect
supervisor/tests.rs:21fake_instance(name)used a fixedhome = /tmp/fake-supervisor-test/{name}. 8 tests use "Paige" and 5 use "Pax".materialize_adaptersopens the persona's admission store (AdmissionState::for_persona(home)) BEFORE the factory ("ADMISSION FIRST"). Two tests running in parallel on one store can fail a restore, which givesSupervisorError::AdmissionRestore; the factory is never called and the test seesbuild_count0, not 1.Seen on #5413's mind job 121133266872:
forwards_profile_errors_without_calling_factory(supervisor/tests.rs:222, left 0, right 1). #5413 touches only the engine crate, and its engine job passed.Fix
The home is unique per fixture:
temp_dir()/fake-supervisor-test/{name}-{peer_id}, keyed by the fixture's fresh peer id. No test relied on the fixed path. Diff: 1 file, +6/-2.Measured
Not compiled locally (enrico is serving); CI is the compile. A race can't be proven fixed by one green run. The receipt is the reasoning above plus the mind job passing; I'll watch the next mind-touching PRs for a recurrence.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE