Skip to content

fix(lanes): a lane carried over a restart is warned about against this release - #242

Merged
7schmiede merged 4 commits into
mainfrom
fix/carried-lane-release-warning
Oct 23, 2026
Merged

7schmiede merged 4 commits into
mainfrom
fix/carried-lane-release-warning

Conversation

@7schmiede

Copy link
Copy Markdown
Member

Problem

After updating a machine from 0.19.0 to 0.20.0 (dashboard "Restart stack"), a lane running on a pool node showed:

the node … runs devstack 0.20.0, this machine devstack 0.19.0; the coordinator runs devstack 0.20.0, this machine devstack 0.19.0

while the hub, the stack's daemon, the node and the coordinator all ran 0.20.0.

release_warning builds that text once, at lease time, against the leasing daemon's own release. ADR-0052 carries a lane over a restart, and Carried carried the finished text, so the 0.20.0 daemon showed its 0.19.0 predecessor's comparison.

Fix

  • Carried holds the coordinator's release (from the lease offer) instead of the warning text; the node's release was in Carried.node already.
  • RemoteLane::adopt makes the warning again against this build (carried_warning).
  • A lane carried by 0.20.0 has no coordinator release: its warning names the node only (the old warning field is ignored when read).

Tests

  • a_lane_carried_over_is_warned_about_against_this_release: an old carried file with a stale text gives no warning when releases match; another coordinator release or a node that does not say still warns; the coordinator release round-trips.
  • cargo clippy -p devstack-daemon --all-targets, cargo test -p devstack-daemon --lib remote::

🤖 Generated with Claude Code

7schmiede and others added 3 commits October 23, 2026 15:30
…s release

The warning that a lane's node or the coordinator runs another devstack was
made when the lane was leased and carried over a restart as a text
(ADR-0052). After an update the new daemon still showed "this machine
devstack 0.19.0" although every side ran 0.20.0. The daemon now carries
the coordinator's release and makes the warning again on adoption.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede 7schmiede mentioned this pull request Oct 23, 2026
…p test

`a_services_stop_ends_what_its_run_started` ran `up` right after `kill -9`;
`up` could still reach the dying daemon and fail with a reset connection
(integration, ubuntu-latest). It now waits until the daemon's port no
longer answers, as the lifecycle test does after its hard kill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit a53ed2f into main Oct 23, 2026
13 checks passed
@7schmiede
7schmiede deleted the fix/carried-lane-release-warning branch October 23, 2026 20:53
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