Repository navigation
fix(lanes): a lane carried over a restart is warned about against this release - #242
Merged
Merged
Conversation
…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>
…ase-warning # Conflicts: # CHANGELOG.md
…ase-warning # Conflicts: # CHANGELOG.md
Merged
…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>
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.
Problem
After updating a machine from 0.19.0 to 0.20.0 (dashboard "Restart stack"), a lane running on a pool node showed:
while the hub, the stack's daemon, the node and the coordinator all ran 0.20.0.
release_warningbuilds that text once, at lease time, against the leasing daemon's own release. ADR-0052 carries a lane over a restart, andCarriedcarried the finished text, so the 0.20.0 daemon showed its 0.19.0 predecessor's comparison.Fix
Carriedholds the coordinator's release (from the lease offer) instead of the warning text; the node's release was inCarried.nodealready.RemoteLane::adoptmakes the warning again against this build (carried_warning).warningfield 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