Repository navigation
fix(runner-updaters): stop the NOS and swm updaters racing on git pull - #291
Merged
smartwatermelon-agent[bot] merged 1 commit intoNov 18, 2026
Merged
Conversation
Both updater LaunchAgents pull the shared ~/.local/share/dev-env clone every 600 s, and launchd starts them in the same second. Two concurrent pulls both fail with "Cannot rebase onto multiple branches", because each fetch appends to the shared FETCH_HEAD. Reproduced on MIMOLETTE: 3 of 3 concurrent pairs failed. From 13:14 on 2026-11-18 every pass of both updaters failed, so neither runner got new code. Both now run `git fetch --quiet --no-write-fetch-head origin` and then `git merge --quiet --ff-only origin/main`. Five concurrent pairs of that sequence on the same clone all succeeded. A lost ref race on a new commit fails one side, which retries next interval. The log line is now "git update failed; will retry", and tests cover a merge failure and assert that neither updater runs git pull. Advances #252
smartwatermelon-agent
Bot
requested a review
from twistedmelonman
as a code owner
November 18, 2026 23:12
smartwatermelon-agent
Bot
deleted the
claude/fix-updater-pull-race-0ff2a5bc
branch
November 18, 2026 23:16
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.
Both runner updaters on MIMOLETTE can update the shared dev-env clone again. Since 13:14 on 2026-11-18, every pass of both had failed.
Both LaunchAgents pull
~/.local/share/dev-envevery 600 s, and launchd starts them in the same second. Two concurrentgit pull --ff-onlyruns both fail withCannot rebase onto multiple branches, because each fetch appends to the sharedFETCH_HEAD. Reproduced on MIMOLETTE: 3 of 3 concurrent pairs failed.git fetch --quiet --no-write-fetch-head origin, thengit merge --quiet --ff-only origin/main. Five concurrent pairs on the same clone all succeeded.git update failed; will retry. Tests cover a merge failure and assert that neither updater runsgit pull.git pull.The code reviewer noted that
origin/mainis hardcoded. The clone is onmain(checked on MIMOLETTE), and the runbooks say it stays there. These failures were silent. A follow-up PR adds an ntfy alert after an hour of failed updates.Advances #252