Commit fe2551d
committed
gh-157184: Scale the join() alarm in the multiprocessing kill tests
_kill_process() interrupts the join() of the killed child with SIGALRM so
that a blocked waitpid() becomes a readable error instead of a hang, but
the alarm has been a fixed 10 seconds since 2013. On a build slow enough
that reaping the child legitimately takes longer, it fires on a healthy
run: seen on the UBSan CI job, where the alarm interrupted os.waitpid()
itself.
Use support.LONG_TIMEOUT, which is documented for detecting hangs and is
scaled by regrtest for slow workers, as the same function already does
for its event wait.1 parent 024b6bc commit fe2551d
2 files changed
Lines changed: 10 additions & 1 deletion
File tree
- Lib/test
- Misc/NEWS.d/next/Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
624 | 625 | | |
625 | 626 | | |
626 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
627 | 631 | | |
628 | 632 | | |
629 | 633 | | |
630 | 634 | | |
631 | | - | |
| 635 | + | |
632 | 636 | | |
633 | 637 | | |
634 | 638 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments