Repository navigation
test(daemon): settle capacity refusal before doctor probing - #5006
Merged
Merged
Conversation
Await the actual tracked project open and require its retryable capacity refusal before testing socket translation. Preserve ordinary mounting behavior and the single-attempt Doctor assertion.
|
ScriptedAlchemy
enabled auto-merge (squash)
November 29, 2026 04:43
Contributor
There was a problem hiding this comment.
🔍 Devin Review: 1 flag
Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
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.
Why
Release PR #4985 exposed a race in
doctor_probe_preserves_project_server_capacity. The fixture held every project-server slot, but it had not waited for the refused route's background open to record its capacity failure. Both socket requests instead received a legitimate warming response, so the test rejected Doctor's mounting retry before reaching the refusal it intended to verify.Changes
Start the actual tracked open for the refused route and await its recorded outcome. Require the canonical project-server-capacity reason and retryability before running the existing socket journey.
The ordinary client's mounting assertion and Doctor's single-attempt assertion remain unchanged. This changes only fixture synchronization; production behavior, deadlines, and backoff stay unchanged.
Validation
git diff --checkpassed.tracedecay:unit_testsuite passed in 330.1 seconds, andtracedecay-cli:core_cli_suitepassed in 107.9 seconds. Repository gates, Feature gates, Clippy, Dashboard, and harness checks also passed.