Skip to content

Let the Perl producer-failure tests accept the cache-containment refusal - #11822

Merged
EffortlessSteven merged 2 commits into
mainfrom
claude/fix-perl-producer-failure-test
Oct 31, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
claude/fix-perl-producer-failure-test

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #11602 (Test Analytics lane health; main break from #11601)

Acceptance delta (one sentence): The lang-perl-only producer-failure tests pass again in Test Analytics (--all-features) after #11601 moved the Perl cache path through the containment check.

Failure

Test Analytics run 41230079736 (job 124622282693) on #11806 fails app::tests::preview_analyzed_outcome::configured_producer_failure_is_typed_not_misattributed_to_missing_packet: the reason is now refusing to write Perl facts cache: …/blocker.txt/cache cannot be resolved (dangling or looping link), but the test requires failed to create Perl facts cache dir. Cause: #11601 added ensure_path_within_root(…, "Perl facts cache") before create_dir_all in app/check.rs, so on Linux the containment check refuses first. Two sibling assertions in the same file (producer-failure limitation detail, not-enabled variant) have the same text. The required lane never builds lang-perl, so only Test Analytics sees it.

Change

One helper, names_cache_failure, accepts either the containment refusal or the create_dir_all failure (which layer refuses depends on the host); the three assertions use it. The checks that the config advice is not repeated and the run stays fail-closed are unchanged. Test-only; no product code.

Proof

cargo clippy -p ripr --features lang-perl --lib --tests -- -D warnings clean. The test itself is not run locally (the container cannot link the ripr lib tests); Test Analytics on a full-ci head is the proof.


Generated by Claude Code

…sal (#11601)

#11601 checks the Perl facts cache path before create_dir_all, so on Linux the
blocker.txt/cache case now refuses earlier with a different message. Three
lang-perl-only assertions still required the old text and failed in Test
Analytics (--all-features); the required lane does not build lang-perl.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmqErVsKLf9se9gRSKv
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmqErVsKLf9se9gRSKv
@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!

@EffortlessSteven EffortlessSteven added full-ci Run required, advisory, and release-like CI lanes. merge-ready labels Oct 31, 2026 — with Claude
@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

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).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 149 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 1632a884-3071-4410-9648-d11c7344ecf0
Commits

Reviewing files that changed from the base of the PR and between 0f0c68d and 11a3560.

Files selected for processing: 2
  • changelog.d/perl-producer-failure-test-follows-cache-refusal.md
  • crates/ripr/src/app/tests/preview_analyzed_outcome.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions 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.

Refuted

  • The PR body says two Perl producer-failure tests, but the diff changes three assertion sites within two test functions.

Parked follow-ups

  • The changelog says there are two tests, but the diff updates three assertions across two test functions; this wording is potentially misleading but does not weaken the test oracle.

Evidence gaps

  • The lang-perl producer-failure behavior has no completed test receipt in the supplied evidence.
  • The claimed red/green behavior is not fully proven in the available.
  • Model proof intent was rejected by deterministic validation.
  • Focused execution proof for the adjusted assertions is still unavailable.
  • The supplied evidence packet contains a failed ripr run and an absent cargo-test receipt, so runtime success is not established here.

@codecov

codecov Bot commented Oct 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Member Author

Review of record, head 11a3560818c6fb2964be42d3b34b34056cfcddf4.

Angles checked on the exact head:

  • Diff: test-only. One helper names_cache_failure in crates/ripr/src/app/tests/preview_analyzed_outcome.rs, used at the three assertions that required the old create_dir_all text, plus a changelog fragment citing this PR. No product code changed.
  • Cause: fix(security): refuse symlink-redirected writes for perl cache_dir, agent stub and feedback (#11477 items 2, 3, 4) #11601 added ensure_path_within_root(…, "Perl facts cache") before create_dir_all in app/check.rs:936. For cache_dir = "blocker.txt/cache" the path cannot be canonicalized on Linux, so the containment check refuses first. Which layer refuses depends on the host (Windows can reach create_dir_all), so both messages are accepted.
  • Oracle strength kept: the tests still require the failed language run, the producer_failure limitation with inspect_failure recovery, no Perl findings, the partial outcome, and that the "requires a fact packet" advice is absent. Only the accepted cause text widened, to two exact substrings; an unrelated failure still fails the tests.
  • Hosted proof: rust-tests-junit (Test Analytics, --all-features) is green on this head after being red on the previous main, and Ripr Rust Small Result is green with all 4 shards. Clippy with --features lang-perl --lib --tests -D warnings was clean locally.

Findings: none blocking. The advisory review noted the fragment's "two tests / three assertions" wording; it matches the diff (two tests, three assertion sites).

Still red and not this PR's: vscode (#11805, fix #11807) and Perl and release proof (the unicode resolve, fixed by #11818 which landed after this head; a main merge would clear it).


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-ci Run required, advisory, and release-like CI lanes. merge-ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants