Skip to content

test: containment initial exec discovery flakes under parallel load #238

Closed

Description

@ElbertePlinio

Problem

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
  • Repeat the full suite under load to confirm

Activity

  1. added
    bug
    on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions