Repository navigation
test(ssh-pool): wait for the parked runner by retries, not wall time - #983
Merged
Merged
Conversation
four `SshConnectionPoolTests` cases failed on the Linux job with `await held()` false. `held()` gave the stub runner 5 s of wall-clock time to park, and every Linux run opens with a scheduling stall where trivial main-actor tests report 22 to 33 s, so the deadline could expire before the runner parked. `held()` now gives up after 1000 `Task.yield` retries, so time spent suspended no longer exhausts its budget. a local Linux reproduction in the CI image reached the main actor in 0.7 s, then took 14.2 s to resume after `MainActor.run`. Stacks also showed synchronous test waits occupying worker threads. The startup stall remains; docs/ci-flakes.md records the measurements and their limits.
HudHelperTests and OverlayRunJobTests occupy Swift concurrency worker threads with Thread.sleep polling and a semaphore wait during the Linux start-of-run stall. Moving them off the pool changes fixture cleanup in two suites and needs its own before/after measurement, so it waits.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
four
SshConnectionPoolTestscases failed the Linux core job on master (run https://github.com/umputun/agterm/actions/runs/43281980528) withawait held()false.held()gave the stub runner 5 s of wall-clock time to park, and every Linux run opens with a scheduling stall in which trivial main-actor tests report 22 to 33 s, so the deadline could expire before the runner parked.held()now gives up after 1000Task.yieldretries, so time spent suspended no longer exhausts its budget.a local reproduction in the CI image (
swift:6.3.2-noble, 4 pinned CPUs) reached the main actor in 0.7 s, then took 14.2 s to resume afterMainActor.run. Stacks showedHudHelperTestsandOverlayRunJobTestsoccupying concurrency worker threads with synchronous waits.docs/ci-flakes.mdrecords the measurements and their limits; the startup stall itself remains, and moving those waits off the pool is filed indocs/backlog/blocking-test-waits-hold-concurrency-workers.md.