Repository navigation
fix(node): a slot stays busy while any lease's end still takes it down - #254
Merged
Merged
Conversation
7schmiede
force-pushed
the
fix/node-slot-busy-count
branch
from
October 23, 2026 20:50
039317a to
be546c8
Compare
`slot_busy` was a set: when a lane was leased again while the end of its previous lease still ran (Docker, measuring its disk), the second lease's end cleared the mark while the first one's was still under way. A purge then removed the slot, and the first end wrote `slot.json` back: the slot the owner threw away came back (`a_lane_is_leased_admitted_and_synced`, check on ubuntu-latest). The mark is counted now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede
force-pushed
the
fix/node-slot-busy-count
branch
from
October 23, 2026 21:36
be546c8 to
9a078c8
Compare
7schmiede
added a commit
that referenced
this pull request
Oct 23, 2026
`the_machine_reports_memory_and_cpu_time` read the host's CPU ticks 300 ms apart and wanted them to have moved; on the macOS runner (a virtual machine) they had not (`64558 -> 64558`, check on macos-14 in #254). It now stays busy until they move, at least 300 ms and at most 5 s. 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.
slot_busywas a set. When a lane is leased again while the end of its previous lease still runs on its thread (Docker,measure_disk), the second lease's end cleared the mark while the first one's was under way. A purge (DELETE /v1/slots) then saw the slot free and removed it, and the first end wroteslot.jsonback: the kept lane its owner threw away came back.Seen as a flaky
a_lane_is_leased_admitted_and_synced(crates/devstack-node/tests/node.rs:493,check (ubuntu-latest)on #253): the test releases the first lease, waits only until the slot is no longer active, leases again, releases, purges.slot_busycounts:slot_begin/slot_done; a purge still refuses a slot that is busy at all.[Unreleased], Fixed (after 0.21.0).Tests:
cargo test -p devstack-node --test node(3 runs) and--lib, clippy and fmt clean.🤖 Generated with Claude Code