Skip to content

test(xtask): anchor recommendation calibration fixtures - #2196

Closed
EffortlessSteven wants to merge 1 commit into
mainfrom
fix/xtask-recommendation-calibration-2186
Closed

EffortlessSteven wants to merge 1 commit into
mainfrom
fix/xtask-recommendation-calibration-2186

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for trusted same-repo ripr work.

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

Source-of-truth Links

Proposal: n/a; this restores existing test behavior.
Spec: n/a; no observable product contract changes.
ADR: n/a.
Plan item: n/a; standalone required-test reliability issue.
Active goal: n/a.
Issue: #2186

Scope

One test fixture-root correction in xtask/src/reports/recommendation.rs.

Scope Classification

This PR is scoped by:

  • Docs/spec/test-only evidence package

Production delta:

  • The recommendation_calibration_report_counts_fixture_expectations test now passes an absolute workspace_root() to the existing path resolver.

Evidence/support delta:

  • The test is independent of ambient process cwd and remains covered by the existing recommendation-calibration assertions.

Single acceptance criterion:

  • The focused test passes from both the repository root and xtask/, so cwd-mutating tests cannot redirect its fixture reads.

Non-goals:

  • No production report, output schema, gate, fixture, or path-resolution behavior changes.
  • No cleanup of unrelated legacy cwd-relative tests.

Support-tier Impact

  • none

Claim/proof notes:

  • This improves test determinism only; it does not change RIPR analyzer support claims.

Policy Impact

  • none

Proof

cargo test -p xtask reports::recommendation::tests::recommendation_calibration_report_counts_fixture_expectations -- --exact
cargo test -p xtask reports::recommendation::tests::recommendation_calibration_report_counts_fixture_expectations -- --exact  # from xtask/
cargo test -p xtask recommendation_calibration_
cargo check -p xtask --all-targets
cargo clippy -p xtask --all-targets -- -D warnings
cargo fmt --check
git diff --check
cargo xtask precommit
cargo xtask check-pr

Result, failures, or skipped proof:

  • Pass: focused exact test from repo root (1 passed), focused exact test from xtask/ (1 passed), recommendation suite (8 passed), xtask check, xtask Clippy, formatting, diff check, and precommit.
  • Fail: cargo xtask check-pr reached the workspace test gate but inherited six TypeScript rerun failures. The same six failures reproduce on an untouched origin/main worktree (28 passed; 6 failed in cargo test -p ripr cli::rerun::tests::).
  • Not run: full workspace Clippy, docs, packaging, and release checks; this test-only PR does not change those surfaces.

Claim Boundary

This PR establishes that the targeted recommendation-calibration test no longer depends on ambient cwd. It does not establish that the full workspace is green; the inherited TypeScript rerun failures remain tracked outside this slice.

Rollback

Revert commit 550a322e31950cdf41dd725e4c73b55e89a0634b; no data or generated artifacts are changed.

Spec-Test-Code Traceability

  • Spec: n/a; existing test contract.
  • Tests: xtask/src/reports/recommendation.rs::recommendation_calibration_report_counts_fixture_expectations.
  • Code: xtask/src/reports/recommendation.rs.
  • Golden outputs: unchanged.
  • Metrics: unchanged.
  • ADR/learning: n/a.

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

CI Economics

  • LEM impact: n/a; no workflow or gate changes.
  • Workflows touched: none.
  • Branch protection impact: none.
  • Failure mode caught: ambient-cwd test flakiness.
  • Cheaper signal considered: focused test and package checks are included.
  • Required lanes affected: none by design.
  • Advisory lanes affected: none.
  • On-demand/release lanes affected: none.
  • Labels that alter behavior: none.
  • Artifact families affected: none.
  • Rollback path: revert the one-line test change.

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented.
  • No new non-Rust programming files.
  • Public JSON/schema changes are not present.

Gates

  • cargo fmt --check
  • cargo check -p xtask --all-targets
  • cargo clippy -p xtask --all-targets -- -D warnings
  • cargo xtask precommit
  • cargo test --workspace (blocked by inherited TypeScript rerun failures; reproduced on origin/main)
  • cargo xtask check-pr (blocked by the same inherited failures)

@EffortlessSteven EffortlessSteven added the status/needs-work Actionable and not started. Do not use for partially landed work. label Jul 22, 2026
@coderabbitai

coderabbitai Bot commented Jul 22, 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: 16 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

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: 20b6928b-7ff7-4732-a5e3-0107a004657e

📥 Commits

Reviewing files that changed from the base of the PR and between df495a9 and 550a322.

📒 Files selected for processing (1)
  • xtask/src/reports/recommendation.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/xtask-recommendation-calibration-2186

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

Copy link
Copy Markdown
Member Author

Superseded by merged PR #2194 (27c71f96), which closes #2186 with the final two-test CWD write-guard fix. This PR contains the earlier one-line workspace_root() attempt and is obsolete; its running checks are no longer actionable.

@EffortlessSteven
EffortlessSteven deleted the fix/xtask-recommendation-calibration-2186 branch July 22, 2026 05:14
@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

EffortlessSteven added a commit that referenced this pull request Sep 28, 2026
…llow issues

RIPR-PLAN-0062 still named cargo-allow #2119 as the dialect blocker in
three places after #2119 closed as not planned on 2026-08-25; an agent
following the updated campaign row into this plan would hit the stale
blocker again. All three sites now cite the live #2260/#2196 blockers
and record the #2119 closure with its date.
EffortlessSteven added a commit that referenced this pull request Sep 28, 2026
…argo-allow issues (#4369)

* docs(plan): update the spec-v2 dialect blocker citation to the live cargo-allow issues

* docs(plan): point the campaign's dialect blockers at the live cargo-allow issues

RIPR-PLAN-0062 still named cargo-allow #2119 as the dialect blocker in
three places after #2119 closed as not planned on 2026-08-25; an agent
following the updated campaign row into this plan would hit the stale
blocker again. All three sites now cite the live #2260/#2196 blockers
and record the #2119 closure with its date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/needs-work Actionable and not started. Do not use for partially landed work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant