Skip to content

test(core): ancestor-reuse containment test sees its refused scope cgroup removed under concurrent suites #279

Closed

Description

@ElbertePlinio

Found during the post-#253 flake re-check.

packages/core/test/containment.test.ts "refuses cleanup rather than migrating an ancestor whose pid may have been recycled" failed once at line 605: expect(fs.existsSync(scope.cgroupDir)).toBe(true) was false. The cleanup refused as expected, but the scope directory was gone afterwards. A likely cause is that the scope became empty and a concurrent createContainmentScope in the other suite pruned it (pruneEmptyScopeCgroups). That is not confirmed.

Evidence: 4 rounds of two concurrent full suites on main be2d00c after the host RTTIME fix (#253), logs in the local flake re-check artifacts.

  • Find what emptied and removed the scope after the refusal
  • Make the assertion hold under a concurrent creator, for example with a private parent cgroup as the probe and re-creation tests do
  • Repeat-run evidence under load

Activity

  1. added
    bug
    on Oct 7, 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