Skip to content

test: remaining containment test load and isolation weaknesses #250

Closed

Description

@ElbertePlinio

Found while fixing #220 and #238 (PR #245). These containment tests share the same load or isolation weaknesses but were out of scope.

"always produces a usable scope, even without a delegated cgroup" asserts existsSync on a fresh empty scope in the shared delegated cgroup, so concurrent pruning can remove it, as in #220. "continues discovery in the kill sweep when exec settles at the term deadline" uses a 300 ms kill deadline but needs two empty /proc scans to confirm, as in #238. "does not confirm on a single empty observation at either sweep deadline" failed once on a loaded host (load 19) during PR #245 validation and then passed 6 of 6.

Many tests use fixed scope names such as desk-gc-live, desk-test01 and desk-probe in the shared delegated cgroup. Two concurrent runs of the file collide on mkdir (EEXIST degrades to marker) and fail unrelated cases.

The "zombie" and "completed empty environment" classification cases still pass when their filters in readMidExecIdentity are removed. Only the "kernel thread" case kills its mutation.

  • Isolate the remaining shared-cgroup tests from concurrent pruning
  • Size short sweep deadlines for two full /proc scans
  • Give fixed scope names a per-run suffix
  • Make the zombie and completed-environment cases fail without their filters

Activity

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