Skip to content

test(daemon): settle capacity refusal before doctor probing - #5006

Merged
ScriptedAlchemy merged 1 commit into
masterfrom
fix/doctor-capacity-admission
Nov 29, 2026
Merged

ScriptedAlchemy merged 1 commit into
masterfrom
fix/doctor-capacity-admission

Conversation

@ScriptedAlchemy

@ScriptedAlchemy ScriptedAlchemy commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

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

  • Formatted the affected file with the workspace-selected rustfmt 1.100.1.
  • Commitlint and git diff --check passed.
  • Independent source review confirmed the real tracked-open path, typed failure preservation, and unchanged assertions.
  • The fresh CI run passed all 182 Linux Bazel test targets. The unfiltered tracedecay:unit_test suite passed in 330.1 seconds, and tracedecay-cli:core_cli_suite passed in 107.9 seconds. Repository gates, Feature gates, Clippy, Dashboard, and harness checks also passed.
  • The required Windows job passed workspace build/type-check and the native Node-addon upgrade-refusal regression (1 test passed). The complete ready CI run succeeded.

Devin Review

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.
@changeset-bot

changeset-bot Bot commented Nov 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: aba5d53

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy
ScriptedAlchemy enabled auto-merge (squash) November 29, 2026 04:43

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

@ScriptedAlchemy
ScriptedAlchemy merged commit 1afcf31 into master Nov 29, 2026
16 checks passed
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