Repository navigation
Exclude the Cursor telemetry spawn test from the whole assembly - #721
Conversation
The spawn override is a process-wide static, so the class's env-override key let a concurrent peer's spawn land in this test's list — the id it saw was another class's session-id constant. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
PR Summary by QodoMake Cursor telemetry spawn test assembly-exclusive
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1.
|
Same seam as the spawn override above it: process-global, written and nulled per test, and every other writer of it already runs alone. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Codex review flow — one P1, taken (f34827b). The reviewer found the same defect class one class over: The flow also settled the parallelism question qodo raised: method-level bare |
Closes #720 — AI-2387
What & why
telemetry_hook_does_not_recovery_spawn_while_an_earlier_canonical_event_is_still_stuckinstallsWatcherManager.SpawnOverrideForTesting, a process-wide static, while its class carries only the keyed[NotInParallel("VendorEnvOverrides")]— a cohort of env-override readers, not of every test that can trigger a watcher spawn. A concurrent peer's spawn therefore lands in this test'sspawnedlist and the emptiness assertion fails. Bare[NotInParallel]on the method makes it assembly-exclusive, matching what every other override mutator already carries.Where to look
The method-level attribute shadows the class-level key rather than adding to it. That loses nothing: assembly-exclusive is strictly stronger than the env-override cohort the class key buys.
Verification
The red run's evidence is the key it saw —
9dc2775376454e4691ecc2d69973c152isClaudeHookCommandTests.Sid, a constant this test (freshGuid.NewGuid()) cannot produce. Full CLI unit suite on this branch: 3857 total, 0 failed. Test-only change, so AOT publish is untouched.🤖 Generated with Claude Code