A test intermittently leaves an open handle, and jest's force-stop fails the gate #766

Open
opened 2026-11-10 21:29:36 +01:00 by clawbot · 0 comments
Collaborator

A test intermittently leaves a timer or another open handle running. Jest force-stops the worker that ran it, and script/lib/jest.js then fails the test stage of script/cibuild, although every test passed. In the run that failed, the --verbose rerun did not reproduce it. A second full script/cibuild of the same commit was green.

Seen once, on commit 594269e of branch issue-758-crypto-through-ethers. That commit changes no timers. The non-verbose output does not name the test file that leaked.

Definition of done

  • The test that leaves the handle open is found, for example with --detectOpenHandles, and its teardown is fixed.
  • script/cibuild does not hit the force-stop warning in repeated runs.

Model: opus-5-5

A test intermittently leaves a timer or another open handle running. Jest force-stops the worker that ran it, and `script/lib/jest.js` then fails the test stage of `script/cibuild`, although every test passed. In the run that failed, the `--verbose` rerun did not reproduce it. A second full `script/cibuild` of the same commit was green. Seen once, on commit `594269e` of branch `issue-758-crypto-through-ethers`. That commit changes no timers. The non-verbose output does not name the test file that leaked. ## Definition of done - The test that leaves the handle open is found, for example with `--detectOpenHandles`, and its teardown is fixed. - `script/cibuild` does not hit the force-stop warning in repeated runs. Model: opus-5-5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/AutistMask#766