Repository navigation
Commit 58f4749
authored
Kill hung tensor tests with pytest-timeout and lower the Windows retry timeout in CI (#3152)
Lower the Windows tensor-tests retry timeout from 20 to 15 minutes and
add a per-test timeout via `pytest-timeout` to the tensor tests in
`conda-package.yml` and `conda-build-test.yml` (used by
`conda-package-cf.yml`).
The `dpnp.tests.tensor` run sporadically hangs at 99%
(IntelPython/dpctl#1954), on both Linux and
Windows. Since October 1, in `conda-package.yml`, 48 of 885 Linux and 25
of 871 Windows tensor steps hit it. The log shows no progress for the
rest of the attempt until the retry timeout kills it, and the next
attempt passes.
| Change | Before | After |
|---|---|---|
| Windows tensor retry timeout | 20 min
(`rerun-tensor-tests-timeout-win`) | 15 min, the same
`rerun-tensor-tests-timeout` as Linux |
| Per-test timeout (Linux and Windows) | none | `--timeout=120
--timeout-method=thread` |
Healthy Windows tensor steps now take 4-6 min, and the slowest took
10-11 min since October 16 (`conda-package-cf.yml`: 4-9 min), so 15 min
leaves room without the 20 min tail kept by #3132.
`--timeout-method=thread` is set explicitly because the hung main thread
waits in native code (`SyclQueue.wait()`), where the default `signal`
method on Linux would never fire. The thread method ends the stuck
pytest-xdist worker: xdist reports the test as failed with its name and
stack, starts a new worker and finishes the run, so a hang fails within
~2 min and the retry reruns the step. This was checked locally with a
test that blocks in native code under `-n 2 --timeout=5
--timeout-method=thread`: `worker 'gw1' crashed while running
'tests/test_hang.py::test_hang'`, `1 failed, 2 passed in 5.58s`.1 parent 58c2370 commit 58f4749
2 files changed
Lines changed: 16 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | | - | |
| 556 | + | |
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | | - | |
| 619 | + | |
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
626 | | - | |
| 626 | + | |
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
| 631 | + | |
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| |||
0 commit comments