Skip to content

Each supervisor test fixture gets its own home: parallel tests no longer race one admission store (card ee7753e7) - #5414

Merged
joelteply merged 1 commit into
canaryfrom
ee7753e7/supervisor-test-fixtures-share-one-engra
Oct 25, 2026
Merged

joelteply merged 1 commit into
canaryfrom
ee7753e7/supervisor-test-fixtures-share-one-engra

Conversation

@joelteply

@joelteply joelteply commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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:21 fake_instance(name) used a fixed home = /tmp/fake-supervisor-test/{name}. 8 tests use "Paige" and 5 use "Pax". materialize_adapters opens 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 gives SupervisorError::AdmissionRestore; the factory is never called and the test sees build_count 0, 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

…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
joelteply merged commit 898995e into canary Oct 25, 2026
13 checks passed
@joelteply
joelteply deleted the ee7753e7/supervisor-test-fixtures-share-one-engra branch October 25, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant