Repository navigation
fix(lanes): a lane on a node keeps its lease through a long first sync, and syncs no worktree on its way out - #276
Merged
Conversation
…c, and syncs no worktree on its way out From the pool's telemetry of 2026-10-23 (members on 0.19.0/0.20.0; the code is the same on main): - A start whose first sync took 90 s lost its lease 123 s after it was granted: nothing renewed it between the grant and the first renewal of the followed lane (sync, start, then 30 s). The lease is now renewed from the grant until the lane is followed. - A sync under way when the lane was stopped logged its 404 as a failed sync. A sync the lane's end overtakes is now dropped. - A file that changed or went between hashing and upload stayed in the list the node applies, which refused the whole sync (400 "blob not uploaded"). Its current content is now sent once more; if it is gone (or changing still), it is left out of this sync. - A worktree being removed was synced to the node while the main slot came back (1.5 min): 7,203 files removed there, the lane's builds failed, six failure notices. A lane being removed, or whose worktree has lost its `.git`, syncs no more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Follow-up to #275: the remaining warnings in the pool's telemetry of 2026-10-23. They were seen on 0.19.0/0.20.0, and the code paths are unchanged on
main.A long first sync costs the lease
BANE,
adv-1577: lease granted at 13:18:01, sync 90 s, start 4 s,node_lease_endedafter 123 s,remote_lane_endedat 13:20:08. Nothing renews the lease between the grant and the followed lane's first renewal (sync + start + 30 s). The start's own renewals count from the start request, and the TTL is 120 s.launchnow renews every 30 s from the grant until the lane is followed. A sync of more than ~90 s (seen on one member: 22-90 s) lost the lane.A sync the stop overtakes logs a 404
remote_lane_sync_failed"404: no lease … of yours here", 28 s after the lane was stopped: a sync of 7,000 files was still running.follow_syncnow drops the sync when the lane ends.A file that changes between hashing and upload fails the whole sync
400: …/node_modules/…/README.md: blob … not uploaded. A file whose upload was refused (changed, or gone) stayed in the apply list, and the node refused the whole apply. Now its current content is hashed and sent once more. If it is gone or still changing, it is left out of this sync and the next sync sends what is there. A new step intests/node.rscovers a file that changes and a file that goes after hashing; without the fix that step fails with the 400.A worktree being removed is synced to the node
adv-1515: the worktree was removed while the lane ran on the node. The lane's removal first gave the main slot back (1.5 min), and meanwhile the sync sent the removal: 7,203 files removed on the node, the builds there failed, and the user saw six failure notices. Now a lane being removed (hold_sync), or whose worktree has lost its.git, stops syncing.Not changed:
remote_lane_tunnel502 "nothing answers at port …" while a lane's services are still coming up. It is already limited to one line per port every 10 s and says what happened.🤖 Generated with Claude Code