Skip to content

test(doctor): retry the transient probe class in the selected-root test (#3073) - #3122

Merged
EffortlessSteven merged 2 commits into
mainfrom
fix/3073-doctor-selected-root-flake
Aug 11, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
fix/3073-doctor-selected-root-flake

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Fix the load-correlated flake in output::doctor::tests::doctor_rustc_probe_uses_selected_root (#3073).

The test asserted result.evidence.contains("below the minimum supported Rust version") on a probe outcome that, under full-suite parallelism on a loaded host, can be a transient timeout (rustc timed out after 5s) or a transient launch failure (ETXTBSY class, #2242) rather than a shim verdict. The observed failure signature (status Fail, evidence lacking the MSRV string) matches exactly that transient class.

Fix: retry the probe while the outcome carries no shim verdict, bounded at 5 attempts. The oracle is positive, not string-sniffed per transient kind: every definitive shim verdict — pass (rustc 1.96.0 (caller-root)) or version-gate failure (rustc 1.94.0 is below the minimum supported Rust version ...) — contains the shim's own rustc 1. version string, while no transient outcome (timeout, not-available, launch failure) does. Both assertions now also print the full result on failure, the issue's first ask.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Issue: #3073

Proof

  • cargo test -p ripr --lib output::doctor — 22/22 pass
  • cargo test -p ripr --lib (full suite, the issue's reproduction) — 4156/4156 pass
  • cargo clippy -p ripr --lib -- -D warnings — clean

Non-goals

  • No change to the production probe path, timeout, or retry policy; the flake was a test-oracle defect, not a doctor behavior defect.
  • probe_published_tool keeps its deliberate no-timeout-retry policy — there a timeout is a real verdict; here it is not.

Candidate head: 25dffc3

…st (#3073)

doctor_rustc_probe_uses_selected_root asserted on a probe outcome that,
under full-suite load, can be a transient timeout or launch failure
(ETXTBSY, #2242) rather than a shim verdict. Every definitive shim verdict
contains the shim's own `rustc 1.` version string and no transient outcome
does, so retry the transient class (bounded at 5 attempts) and assert only
on a definitive verdict, printing the full result on failure.
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@EffortlessSteven, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: ceac4367-334b-4703-a999-e78d19d07740

📥 Commits

Reviewing files that changed from the base of the PR and between 14ba3a4 and 9de0a13.

📒 Files selected for processing (1)
  • crates/ripr/src/output/doctor.rs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 69.23077% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/ripr/src/output/doctor.rs 69.23% 8 Missing ⚠️

📢 Thoughts on this report? Let us know!

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Exact-head review record (review-pr):

reviewed_head_sha: 9de0a13
integration_basis: origin/main 14ba3a4
claim_boundary: test-oracle repair only for doctor_rustc_probe_uses_selected_root (#3073); no production probe-path change
changed_surfaces_and_semantic_owners_inspected: crates/ripr/src/output/doctor.rs tests module (owner: doctor output surface)
blocking_findings: none
non_blocking_suggestions: none
refuted_or_stale_findings: none (no automated findings posted)
proof_and_ci_observed: required check Ripr Rust Small Result PASS on 9de0a13; rust-tests-junit, rust-coverage, ub-review pass; local cargo test -p ripr --lib output::doctor 22/22, full cargo test -p ripr --lib 4156/4156 (pre-fmt head; subsequent diff is cargo-fmt-only), cargo clippy -p ripr --lib -- -D warnings clean
proof_or_review_missing: none material; the retry bound (5 attempts x 5s worst case) is a documented test-side bound
affected_currentness_dimensions: test stimulus, test oracle, candidate head identity (fmt-only head move 25dffc3 -> 9de0a13)
residual_assumptions_and_non_claims: the fix removes the observed transient-class flake (timeout/ETXTBSY); a genuinely slow shim environment beyond 5 attempts x 25ms spacing would still fail, which is the intended fail-closed behavior; codecov/patch FAILURE is advisory-only (test-file diff), not a required discriminator
disposition: REVIEW_READY

@EffortlessSteven
EffortlessSteven merged commit c425119 into main Aug 11, 2026
23 of 24 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/3073-doctor-selected-root-flake branch August 11, 2026 02:49
EffortlessSteven added a commit that referenced this pull request Aug 11, 2026
* Revert "test(perl): consume one production Perl→domain oracle mapping authority (#3034) (#3126)"

This reverts commit c8e3e18.

* Revert "docs(agent): align pair-currentness claims with the enforced gates (#3061) (#3121)"

This reverts commit f844469.

* Revert "test(doctor): retry the transient probe class in the selected-root test (#3073) (#3122)"

This reverts commit c425119.

* Revert "test(lsp): retain listActionableItems branch/capability mutation receipt (#3032) (#3133)"

This reverts commit d9d4630.

* Revert "fix(analysis): retract unused SeamKind ↔ ProbeFamily crosswalk (#3039) (#3130)"

This reverts commit b8e9d55.

* Revert "test(perl): consume one production Perl→domain oracle authority (#3126)"

* Revert "docs(agent): align pair-currentness claims with the enforced gates (#3121)"

* Revert "test(doctor): retry the transient probe class in the selected-root test (#3122)"
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