Repository navigation
test: move ra.rs's main test module out of line (#15193) - #16684
Draft
EffortlessSteven wants to merge 2 commits into
Draft
EffortlessSteven wants to merge 2 commits into
EffortlessSteven wants to merge 2 commits into
Conversation
ra.rs is a tail owner because the verifier and check-allow-attributes count its fixture `allow(dead_code)` text differently. The tests module holds two such fixture literals, and one is spelled `#[cfg_attr /* keep */ (test, ...)]`, which the checker's attribute scanner does not count. So the verifier's split row (2) is stale by one. This moves only `mod tests` (the verifier's transform, with that count check relaxed and the other five test modules held back), and sets the rows to what check-allow-attributes finds: 1 in ra/tests.rs, 1 still in ra.rs. The five remaining modules are under 3,000 changed lines and, after this, match the verifier's count, so they can move mechanically. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzV3JdcCDM6STapqHBr
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 14 seconds. View limit details
|
…test, and repoint the spec citation (#15193) The let_inside_macro row named ra.rs::tests on main, but the test lives in shadow_fact_equivalence_tests, which stays in ra.rs; the rename sent it to ra/tests.rs, which lacks it. RIPR-SPEC-0172 cites a test that moved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzSjosVsQMRGZjsjVDi
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.
Requested by Steven · project thread
Summary
Moves only the main
mod testsofanalysis/syntax/ra.rs(one of its six inline test modules) tora/tests.rs. ra.rs is a tail owner because the verifier andcheck-allow-attributescount its fixtureallow(dead_code)text differently: one of two fixture literals is spelled#[cfg_attr /* keep */ (test, ...)], which the checker's attribute scanner does not count. This sets the.ripr/allow-attributes.txtrows to whatcheck-allow-attributesfinds (1 inra/tests.rs, 1 still inra.rs). The five remaining modules then match the verifier's count and can move mechanically later.Source-of-truth Links
Proposal: #15217
Governing issue or accepted claim: #15193
Acceptance delta (one sentence): Moves ra.rs's main inline test module out of the published source.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication):
claude/relocate-tail-ra-1Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Scope
Production delta:
#[cfg(test)]code moves.Evidence/support delta:
ra/tests.rs(new), the owner,.ripr/allow-attributes.txt,policy/inline-test-modules.txt(6 to 5), and the traceability rows that name the moved tests.Non-goals:
Proof
Err(...)call (checked by script). The handed-off patch needed a three-way apply on current main; the merged.ripr/traceability.tomlhunk re-added three staleoracles.rs::tests::rows and kept the oldra.rs::tests::row, which this PR's commit removes, so the hunk is now only the rename.riprlib binary (it runs out of memory in this container). Hosted CI runs them.Claim Boundary
May claim: these inline tests leave the published source and still compile and run as unit tests.
Must not claim: a measured
.cratesize change.Rollback
Plain revert.
Static Language Check
killed,survived,untested,proven, andadequate.CI Economics
Generated by Claude Code