Skip to content

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
7schmiede merged 1 commit into
mainfrom
fix/telemetry-old-warnings
Oct 26, 2026
Merged

7schmiede merged 1 commit into
mainfrom
fix/telemetry-old-warnings

Conversation

@7schmiede

Copy link
Copy Markdown
Member

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_ended after 123 s, remote_lane_ended at 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. launch now 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_sync now 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 in tests/node.rs covers 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_tunnel 502 "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

…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>
@7schmiede
7schmiede merged commit dd4ecff into main Oct 26, 2026
13 checks passed
@7schmiede
7schmiede deleted the fix/telemetry-old-warnings branch October 26, 2026 11:26
@7schmiede 7schmiede mentioned this pull request Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant