Scale `test_most_beautiful_word` deadline for CI
Flat `trio.fail_after(1)` wraps a whole actor spawn + IPC round-trip in `test_most_beautiful_word` — sub-second on a warm box, but slow/noisy CI runners (esp. macOS) blow the 1s deadline with a `trio.TooSlowError`. Scale the budget by `cpu_scaling_factor()`: a strict `1s` locally (factor `1.0`), CI/CPU-throttle headroom (~3x) on macOS. Review: PR #465 (copilot + self CI-triage) https://github.com/goodboy/tractor/pull/465#pullrequestreview-4548191641 (this patch was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code
parent
8f6a5fa930
commit
2d0955968c
|
|
@ -150,7 +150,12 @@ async def test_most_beautiful_word(
|
||||||
The main ``tractor`` routine.
|
The main ``tractor`` routine.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
with trio.fail_after(1):
|
# actor spawn + IPC round-trip is comfortably sub-second on a
|
||||||
|
# warm box, but slow/noisy CI runners (esp. macOS) blow a flat
|
||||||
|
# 1s deadline. Scale for CI/CPU-throttle headroom — `== 1s`
|
||||||
|
# locally where `cpu_scaling_factor()` is `1.0`.
|
||||||
|
from .conftest import cpu_scaling_factor
|
||||||
|
with trio.fail_after(1 * cpu_scaling_factor()):
|
||||||
async with tractor.open_nursery(
|
async with tractor.open_nursery(
|
||||||
debug_mode=debug_mode,
|
debug_mode=debug_mode,
|
||||||
) as an:
|
) as an:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue