Skip to content

test(ui-server): wait for the held maintenance worker's real exit in the pre-receipt diagnostics test #3828

Closed as not planned

Description

@schlessera

Context

held real worker retains bounded pre-receipt stderr and original exit before cleanup (packages/ui-server/tests/maintenance-temp-boundary-diagnostics.test.ts) failed in a hosted unit shard on a PR that touches neither the maintenance worker nor its test. It ran for 5029 ms, and the outer diagnostic reported exitStatus: null where the test expects 1 (:59). That pattern fits a child that had not exited when the observation closed on a loaded runner, rather than a wrong exit code.

Seen in CI run 42774965202 (job unit (4)), on head 459c4eba1 of #3824.

Acceptance criteria

  • The test waits for the held child's actual exit, or for a bounded, explicit deadline whose expiry fails with its own message. It no longer infers a null exit status from a 5 s budget.
  • The test still fails when the original exit status is not retained (a mutation receipt is recorded in the PR).

Verification

Run the file repeatedly under CPU load (for example stress-ng or a parallel bun run test) with no failure, plus the mutation above.

Activity

  1. added this to the 0.45.0 milestone on Nov 10, 2026
  2. added
    type: test
    area: ui-server
    priority: p3
    agent-ready
    on Nov 10, 2026
  3. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    Not a flake. The failure came from #3824's own change: the writer gate's new indefinite cleanup retry slept on a referenced timer, so a process that released its hold and closed its database never exited. It fails on that branch and passes on main every time, and #3824 now fixes it (unreferenced retry timer). Closing; the existing test is the regression guard.

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: ui-serverpriority: p3type: test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions