Skip to content

test: abandoned-entry fixture gate round trip can skip the next test body #857

Closed

Description

@agenteinstinct1-max

Observed defect

The abandoned-entry regression fixture deliberately keeps a finalizer blocked until its parent sees Bun report the cleanup-hook cutoff, then releases it over stdin. This makes the next plain test's entry wait depend on the parent stderr/stdin round trip while that test's hook budget is already finite.

Windows failure evidence: https://github.com/mdev34-lab/silvercode/actions/runs/43173779871/job/131033024370 at PR #850 head97ee6764df7cea38a9f19dd2a7f9291c2a210760. The first fixture test reports the expected hook timeout. The second also reports a hook timeout; its first-body C4 marker is absent. C3 finalizer-end occurs before C5 third-test entry. The third test sees undefined instead of the environment value normally set by the skipped second body.

This establishes the observed cascade and ordering in that trace. Exact Bun timer arming is inferred, not instrumented. It does not demonstrate the production barrier entering an unfinalized scope.

Narrow acceptance

  • Remove the parent I/O latency dependency from the deliberate gate release.
  • Still force a real host timeout and cleanup-hook cutoff before finalizer completion.
  • Keep the actual next-plain-test entry barrier, finalizer/child join, restored environment, zero in-flight runs and no late overwrite assertions.
  • Keep the 800ms child timeout and 15-second child guard. No CI/workflow changes or budget increases.
  • Include a negative control that omits the actual entry barrier and fails specifically on early entry, not merely on an unrelated process error.
  • Qualify the proposed exact head through required Linux/Windows CI and clean review.

PR #856 implements a candidate. On Linux/Bun1.3.14, its focused positive and specific early-entry negative-control tests pass. Local package typecheck hit Node's default heap limit; Windows and full required checks remain pending.

Related: #609 tracks the broader host-timeout ownership outcome. This issue covers only this fixture handshake/cascade defect and must not close #609 by implication. Dedup searches for abandoned-entry, hook cutoff, handshake, barrier, finalizer and609 found no issue with this narrow scope.

Activity

  1. added
    bug
    priority: high
    on Nov 18, 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

    bugpriority: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions