test(ci): probe — drop mocha --exit on Windows backend tests#7856
test(ci): probe — drop mocha --exit on Windows backend tests#7856JohnMcLear wants to merge 2 commits into
Conversation
The Windows backend-tests workflow has invoked mocha with --exit since PR #7762, with the in-line comment: # --exit forces process.exit(failures) after the suite completes, # closing the post-suite event-loop drain window where Windows + # Node 24 hard-kills the process. Scoped to Windows so Linux/local # runs still surface real handle leaks via natural drain. That comment is a direct admission that a kill HAPPENS at the post-suite drain on Windows + Node 24, and --exit was added as a **mitigation that hides it**. The current silent-ELIFECYCLE flake fires MID-SUITE, but --exit is still in play after the dying test fires and may also be masking earlier signal. Probe: drop --exit on both Windows backend matrices. Expected outcomes on a passing run: - if Node still exits cleanly via natural drain → the original post-suite hard-kill bug from PR #7762 is no longer reproducible in current Node 24.x, and we've been carrying a workaround for nothing. - if a fresh hard-kill appears at post-suite drain → we now have a SECOND data point (different from the mid-suite flake) and can compare its signature to the mid-suite kill in artifacts. On a failing run (the mid-suite flake fires): - removing --exit may let mocha emit additional error reporting that --exit's process.exit() was suppressing. - or it may not change anything, which itself is a data point. This is a one-line probe on a separate branch from probe-flake-defender-eventlog-sidecar. Run in parallel; the two ask different questions. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Review Summary by QodoProbe: remove mocha --exit flag from Windows backend tests
WalkthroughsDescription• Remove mocha --exit flag from Windows backend test matrices • Probe to diagnose post-suite process hard-kill on Windows + Node 24 • Investigate whether original mitigation from PR #7762 still needed • Enable detection of additional mocha error output without early exit Diagramflowchart LR
A["Windows Backend Tests"] -->|Remove --exit flag| B["Natural Process Drain"]
B -->|Outcome 1| C["Clean exit - bug resolved"]
B -->|Outcome 2| D["Post-suite hard-kill - new data point"]
B -->|Outcome 3| E["Mid-suite flake - unchanged behavior"]
File Changes1. .github/workflows/backend-tests.yml
|
Code Review by Qodo
1.
|
|
Closing — this was a diagnostic probe while hunting the Windows backend silent-ELIFECYCLE flake. Root cause found and fixed: in-process handler gate + Windows pinned to Node 24.16.0 (#7866), investigation scaffolding removed (#7868), and the underlying libuv TCP-connect stack overrun filed upstream as nodejs/node#63620. Branch deleted. |
Summary
One-line workflow probe on a separate branch from #7855: remove the
--exitflag frompnpm teston both Windows backend matrices.Why
The current workflow has been invoking
pnpm test -- --exiton Windows since PR #7762, with the comment:That's a direct admission of a known post-suite kill bug on Windows + Node 24, and
--exitwas added as a mitigation that hides it. The current silent-ELIFECYCLE flake fires mid-suite, but--exitis still in play after the dying test and may also be masking earlier signal.Drop it on a separate probe branch. Either:
--exit'sprocess.exit()was suppressing?Any of these is data we don't currently have.
Test plan
🤖 Generated with Claude Code