Repository navigation
Conversation
Script a slow reclaim so the dry-run setup observes the same missing-ready assertion without relying on host load.
1 failing -> 0 failing. Carry the granted device identity into the dry-run setup and await its ready state while preserving asynchronous release and the slow-reclaim fixture.
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.
Closes #574
Status
Implement: done (red then green, 5/5 stability runs) Review: round 1, 0 open Hardware: n/a Gate: running
Next: gate
waitForDeviceState(env, dryRunDeviceId, "ready")beforedeviceRowsand the preview (e2e/capacity-cleanup-nuke.test.ts:189).latencyMs.reclaim: 5_000stays ate2e/capacity-cleanup-nuke.test.ts:187; the same assertion fails without the wait (proved below).stale-refs.sh: clean).What is this?
A fix for a flake in the capacity, cleanup and nuke end-to-end test: the dry-run
setup looked for a warm device immediately after
releaseanswered, but a releaseanswers while the device is still reclaiming, so the device was often not there yet.
How does it work?
The release helper now hands back the device it released, and the setup waits for
that device — by its driver id, so no other warm device can satisfy it — to reach
readybefore the preview. The 5,000 ms scripted reclaim latency stays as theregression fixture; nothing sleeps, and
releasekeeps answering before reclaimfinishes.
Why is this useful?
The test stops depending on how fast the machine reclaims, which is how it failed
in CI, while still proving release stays asynchronous.
Assumptions
none
Review
Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: n/a.
Review disclosure: delegating to the repo's reviewer agents was refused here
("Subagent depth limit reached (1)"), so each of the three passes was run in this
session against its own brief from
.agents/briefs/, over the blind inputs from.agents/scripts/review-inputs.sh 628(diff, issue, triage report, ADR 0024,always-in-scope, the rules,
stale-refs.shoutput, calibration), with the PR bodyand commit messages withheld. These are not fresh-context agents and are labelled
as such. The kind of the diff is
tests-only, so the code review ran the testslens only.
Proved, not assumed:
assertion by name (
AssertionError: expected a ready (warm) device for the dry-run preview), same source tree.2 passedevery time.Timing testsandQualityon the previous head failed withEADDRINUSEinside
src/daemon/relay-promises.timing.test.ts, a file this diff does nottouch (its project covers
src/**/*.timing.test.tsonly). It is a one-offephemeral-port collision in a port pick documented as racy
(
e2e/helpers/port.ts): the test passes at base content locally and on therebased head in CI, and no Timing job failed in the previous 100 CI runs. No
flaky-testissue names it and no base-commit failure exists, so nothing wasfiled; the rebased head is green on its own.
Written by an agent.