Repository navigation
feat(nos-runner-watchdog): re-run a macOS job a restart stopped - #310
Merged
smartwatermelon-agent[bot] merged 2 commits intoNov 24, 2026
Merged
Conversation
added 2 commits
November 23, 2026 18:41
On the macOS pool only (rerunLost), each tick lists failed runs of the last 6 hours, one repo after another. A first attempt from the same repo, not from Dependabot, whose mimolette-macos job failed with no failed step, gets one rerun-failed-jobs call. The run goes into swm-macos:lostChecked before the POST, so it is re-run at most once. Every probed run is marked, and entries older than 6 hours are pruned. The NOS tick is unchanged and makes no failed-runs call. The fork-guard denial, the real test failure and the cancelled run fixtures are captured from the GitHub API. The positive fixture is a hypothesis: no real runner-lost job exists yet, and the batch restart drill (step F) is the first proof. Advances #252
The lost-runner phase started each tick at (tick * 4) mod n. On busy ticks that list only one repo, the start falls on even indexes only when n is even, so odd repos were never listed. The phase now stores a cursor: the index after the last repo it listed. The next tick starts there, mod n, so every repo is listed in turn however few a tick can afford, and a changed repo count is safe. The cursor is kept in the lostChecked value under "_cursor", not in a key of its own: the phase already reads that key, and its last put is already in the budget, so this adds no KV get and no new put reservation. Advances #252
smartwatermelon-agent
Bot
requested a review
from twistedmelonman
as a code owner
November 24, 2026 02:48
smartwatermelon-agent
Bot
deleted the
claude/feat-watchdog-lost-runner-56536f08
branch
November 24, 2026 02:52
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.
Part 2 Task 3 of the fleet runner rollout. On the macOS pool only, the watchdog finds a job that a runner restart stopped and re-runs it once.
mimolette-macosjob with no failed step. A real test failure, a fork-guard denial and a user cancel are never re-run.lostCheckedis written before the re-run POST, so a crash cannot re-run a run twice. Runs already in the down sweep's pending list are skipped.status=failurecall. Tests: 136/136, worst measured tick is 40 subrequests (the cap).The positive fixture is a hypothesis. No real runner-lost job exists yet: the cancelled dotfiles runs on the macOS runner were cancelled by the agent App, not by a restart. The restart drill in Andrew's batch (step F) is the first proof; if it fails, Task 7 fixes the predicate.
The plan's fixture (b), dotfiles run 44443375980, is a fork-guard denial, not a test failure. The real-failure fixture comes from mac-server-setup run 44651519680, which ran on
macos-latest.Merging this deploys nothing.
Advances #252