Commit a476a2c
committed
tests: tighten memory_ipc outer timeout to CHILD_TIMEOUT_SEC + 30
The previous 3 * CHILD_TIMEOUT_SEC scaling assumed worst-case wall-clock
where every sequential join/wait hits its full timeout. In practice the
children run concurrently, so expected wall-clock is ~CHILD_TIMEOUT_SEC
regardless of how many joins the test chains -- once a child is done its
join returns immediately. Exceeding CHILD_TIMEOUT_SEC + slack already
means something is genuinely stuck, in which case the outer guard firing
is the right outcome; the autouse track_child_processes() context
manager still cleans up survivors, and the per-test diagnostic message
would not be more informative than "test exceeded its budget".
New budgets:
- Without compute-sanitizer: 60 s (was 90 s).
- Under compute-sanitizer: 150 s (was 360 s).
The meta-test computes its expected value from the same formula.1 parent fe5b914 commit a476a2c
2 files changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments