You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: containment initial exec discovery flakes under parallel load #238
packages/core/test/containment.test.ts > "containment initial exec discovery" can fail in the full parallel suite. Two cases failed together in one run:
"does not classify 'completed empty environment' as an unresolved exec"
"does not classify 'missing stat' as an unresolved exec"
AssertionError: expected false to be true
❯ packages/core/test/containment.test.ts:1211:32
const result = await destroyContainmentScope(scope, { termTimeout… });
expect(result.confirmed).toBe(true);
destroyContainmentScope returned confirmed: false under load. This looks like a timing dependence in the test's destroy step, not a product regression. It is a different case from #220.
Where it was found
Local validation for PR #235 (#200) at f059ea4, in one full bun run test:coverage run while other work loaded the host. The file passed 3 of 3 times alone on the same revision. PR #235 does not touch containment code.
Acceptance criteria
The two cases pass reliably in the full parallel suite on a loaded host.
The test still proves that these exec states are not classified as unresolved.
Product behaviour and timeouts stay unchanged, unless the investigation shows a real product race.
Checklist
Find why destroyContainmentScope is not confirmed under load in these cases
Remove the timing dependence from the test, or fix the race if it is real
Activity