Skip to content

test: wait for runs, drivers and killed processes until a load-tolerant deadline - #170

Draft
harenome wants to merge 5 commits into
ThinkFlowLab:mainfrom
harenome:fix/fixed-wait-tests
Draft

harenome wants to merge 5 commits into
ThinkFlowLab:mainfrom
harenome:fix/fixed-wait-tests

Conversation

@harenome

@harenome harenome commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #169

What

  • Six backend tests gave a run, a kit driver or a killed child a fixed 10 s, 15 s or 0.2 s. At --cpus 1, 3 of 12 suite runs failed.
  • Each wait still stops on its condition; only its limit grows, to 60 s (30 s for the killed child, under its own 60 s sleep).
  • The scope test now polls with gone().

Verified

  • Before the rebase, at --cpus 1: 9 of 12 runs passed on main, 17 of 18 here (the failure in an untouched test). Each test still fails on broken behaviour.
  • On 70279ab: backend 3052, routes 578. Not rerun at --cpus 1.

Risk

  • A run that does not end now fails after 60 s, not 10 s.
  • A machine needing more than 60 s still fails.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5: code, tests

@harenome
harenome marked this pull request as draft November 17, 2026 10:20
@github-actions github-actions Bot added the merge conflict Conflicts with its base: merge or rebase it label Nov 25, 2026
The shared wait() gave a run 10 s to end. On a loaded machine a run that works can take longer. join() returns when the run ends, so a passing test takes the same time as before.
The kit isolation tests gave each setup and score request 10 s. On a loaded machine the driver can take longer. request() returns at the reply, so a passing test takes the same time as before.
The test gave each of its three runs 15 s to end, and the whole driver 120 s. On a loaded machine a run that works can take longer. Each run now has 60 s and the driver 240 s, room for the three runs. join() and run() return at the end, so a passing test takes the same time as before.
The check details test gave each kit driver 10 s to reply to units. On a loaded machine a driver that works can take longer. request() returns at the reply, so a passing test takes the same time as before.
The scope test gave the child of a killed group 0.2 s to go. On a loaded machine it can take longer. The test now polls with gone(), as the other process tests do, for up to 30 s. The limit stays under the child's own 60 s sleep, so a child that the run leaves running still fails the test. gone() returns when the child is gone, so a passing test takes no longer than before.
@harenome
harenome force-pushed the fix/fixed-wait-tests branch from 1403a6c to cf79301 Compare November 25, 2026 13:37
@github-actions github-actions Bot removed the merge conflict Conflicts with its base: merge or rebase it label Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests: six backend tests fail at 1 CPU on fixed waits

1 participant