Commit 6d3f8da
Improve robustness of fiber preemption tests
- Increase DURATION from 0.1s to 0.3s: on slow CI machines (quantum ~50ms)
four 0.1s fibers can fail the ordering assertion because one finishes
before the 4th starts; 0.3s gives a comfortable margin.
- Tighten wall-time threshold to 3.0x DURATION: sequential execution takes
4x, interleaved takes ~1x; the 3x threshold reliably distinguishes them.
- Add YJIT skip guards to timing-based preemption tests: preemption under
YJIT requires updated cruby_bindings.inc.rs (EC struct offsets changed
when we added runtime/quantum/preempted fields); skip until bindgen is
regenerated so CI doesn't fail on these jobs.
- Increase subprocess fiber deadline from 0.3s to 0.5s for the same reason.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 5a538fb commit 6d3f8da
2 files changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| |||
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
64 | | - | |
65 | | - | |
| 72 | + | |
| 73 | + | |
66 | 74 | | |
67 | 75 | | |
68 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
622 | 627 | | |
623 | 628 | | |
624 | 629 | | |
| |||
646 | 651 | | |
647 | 652 | | |
648 | 653 | | |
649 | | - | |
| 654 | + | |
650 | 655 | | |
651 | 656 | | |
652 | 657 | | |
| |||
0 commit comments