Skip to content

test(core): storage-inventory 'CLI cancellation … leaves no stalled Git process' fails intermittently #3401

Closed

Description

@schlessera

Problem

packages/core/tests/storage-inventory.test.ts: "CLI cancellation returns partial evidence and leaves no stalled Git process" failed in ready-candidate run 41546606734 (unit (1)). That run was confirming PR #3341, head d45d99255, on main 5a0ce18fd. PR #3341 changes only a ui-kit/ui-react artifact story test and doesn't touch core storage, so the failure is unrelated to it. The odysseus.test.ts failures in the same worker are that file's planned-failure fixture.

Under the strict-flake ruling, an unrelated failure in a candidate run can't be retried away, so this blocks #3340 (p1) until it's diagnosed.

Acceptance criteria

  • Root cause identified from the run's log and a local reproduction under load or a deterministic forcing (the test cancels a CLI mid-inventory and asserts that no git child is left running).
  • A deterministic fix: no skips, retries, loosened assertions or raised timeouts. It shows the failure on the base and passing on the fix.
  • A mutation receipt proves the stalled-git-process check still catches a leaked child.

Refs #3341, #3340.

Activity

  1. added this to the 0.45.0 milestone on Nov 3, 2026
  2. added
    type: test
    area: core
    priority: p1
    agent-ready
    on Nov 3, 2026
  3. self-assigned this
    on Nov 3, 2026
  4. schlessera commented on Nov 3, 2026

    @schlessera
    OwnerAuthor

    Claiming (token wi-3401-c7e2), branch fix/3401-storage-inventory-cancel. Diagnosing from run 41546606734 unit (1) first: test race vs leaked git child.

  5. schlessera commented on Nov 3, 2026

    @schlessera
    OwnerAuthor

    Root cause: a test race, not a product leak. The fake git's writeFileSync creates the PID file before writing it, so the existsSync poll can read an empty file and get PID 0 (CI: /proc/0/stat ENOENT). Fix, receipts and the leak mutation are in draft #3433. That PR is ready to confirm but held because main is red (#3427). The same race in tests/test-invocation-lifetime.test.ts is filed as #3432. Releasing my claim (wi-3401-c7e2); #3433 is the resumable work.

  6. removed their assignment
    on Nov 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

    agent-readyarea: corepriority: p1type: test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions