Commit cdc5726
committed
test: add graceful handling of test-debugger-pid flakes
The test-debugger-pid test has been flaky in CI. The
apparent cause is that the test appears to hang if
some other test happens to leave something stuck running
on port 9229. This change adds a check to see if the
port is available before attempting to test and skips
if the port is in use. It also adds more graceful
timeout handling to the test.
Admittedly, this is a band-aid for the underlying issue,
which appears to be that some other test is not cleaning
up properly. We don't know which test that is, so for
now let's try to handle the symptom gracefully.
Reliability-report: https://github.com/nodejs/reliability/blob/main/reports/2026-03-28.md
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode/Opus 4.61 parent e78ccd8 commit cdc5726
2 files changed
+36
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
186 | 189 | | |
| 190 | + | |
187 | 191 | | |
188 | 192 | | |
189 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
14 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
15 | 39 | | |
16 | 40 | | |
17 | 41 | | |
| |||
20 | 44 | | |
21 | 45 | | |
22 | 46 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 47 | + | |
27 | 48 | | |
28 | | - | |
29 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
30 | 54 | | |
31 | 55 | | |
0 commit comments