Repository navigation
test: stop aborted Squirrel.Mac updater runs cleanly - #53617
Merged
MarshallOfSound merged 3 commits intoSep 6, 2026
Merged
MarshallOfSound merged 3 commits into
MarshallOfSound merged 3 commits into
Conversation
When a pooled updater run overran its budget, stopping it could throw ENOTEMPTY from removing the slot's update directory, because the app it had just SIGKILL'd still held files there open. That error replaced the run's own, and the retry then queued behind the other slot with no bound on the wait, so one slow test could take a shard past its step timeout. - Each fixture app is spawned as its own process group, so it and anything it starts (helpers, ditto) are killed together. ShipIt is a launchd job and is still stopped by removing it. - stopRun waits for the killed groups to be gone before touching the filesystem, retries the removal for a few seconds, and never throws; a slot it cannot clean is retired. The suite's after hook uses the same retrying removal. - A retry waits at most its budget for a slot, then retires one, instead of waiting silently for a stuck lookahead run to finish. Co-authored-by: Samuel Attard <[email protected]>
ShipIt runs from inside the fixture app bundle, so the process-group kill does not reach it: launchd spawns it. Removing its launchd job does not reliably stop one mid-install either, so an aborted run left a ShipIt copying and verifying the bundle, and the next runs on a slow runner crawled. Kill by path as well, loop until nothing under the run's app paths is left, refuse spawns once a run is aborted, clear ShipIt's install-attempt counter, and sweep every fixture app path in the suite's after hook. Co-authored-by: Samuel Attard <[email protected]>
… once When a run hits its budget, print the busiest processes, everything still running from the run's apps, and the slot's ShipIt log, while they are still there. The last two CI timeouts could only be read as guesses. A retry is the test mocha is blocked on. It now takes a free slot or a fresh one immediately instead of waiting its whole budget behind lookahead runs for later tests, which doubled the cost of every retry. Co-authored-by: Samuel Attard <[email protected]>
MarshallOfSound
approved these changes
Sep 6, 2026
MarshallOfSound
enabled auto-merge (squash)
September 6, 2026 08:36
MarshallOfSound
deleted the
trop/45-x-y-bp-test-stop-aborted-squirrel-mac-updater-runs-cleanly-1788683559107
branch
September 6, 2026 09:24
|
No Release Notes |
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.
Backport of #53607
See that PR for details.
Notes: none