Repository navigation
test: move inline cfg(test) modules out of line, batch 8 of 27 (#15193) - #16657
Merged
Merged
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
Member
Author
There was a problem hiding this comment.
SOURCE_REVIEW_READY for head bff3a32
Inspected on this head (base 593dd0c):
mechanical_relocation.py verify --base 593dd0c2returns validated for all 62 moves (55 owners);indirect-owners --checkis current.- Independent subagent review: every moved module keeps the same test attribute count and the same test fn names as the base inline body; module names are unchanged, so libtest paths stay the same. Declarations keep their attributes and resolve to the new files, including any
#[path]declarations for indirectly loaded owners. No file-relative macros or paths in moved bodies change meaning. - Non-crate rows (traceability, test intent, ratchet, allowlists, indirect owners) are renames or per-file splits that match the moves; split allowlist counts equal the occurrences in each file.
- Local: cargo check -p ripr -p ripr-contract --lib --tests, cargo fmt --check, cargo xtask check-architecture, check-process-policy, check-network-policy, and precommit all exit 0.
- Not run: a base-to-head
--listof theriprlib (its test binary does not build in this container, and hosted shards check only the head). Base-to-head parity rests on the per-module test count and name comparison above; hosted gates confirm the head compiles and passes. - Noted, not changed here: some spec prose still cites old test locations; no gate reads them, and #16547 tracks one docs refresh after the batches so this PR stays purely mechanical. Bot threads are answered and resolved.
Generated by Claude Code
EffortlessSteven
marked this pull request as ready for review
November 30, 2026 01:35
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzQrFX3sXvazaKd8CB6
EffortlessSteven
force-pushed
the
claude/project-thread-1qexgg
branch
from
November 30, 2026 02:26
bff3a32 to
c631a27
Compare
EffortlessSteven
left a comment
Member
Author
There was a problem hiding this comment.
SOURCE_REVIEW_READY for head c631a27
Inspected on this head (base 593dd0c):
mechanical_relocation.py verify --base 593dd0c2returns validated for all 60 moves (53 owners);indirect-owners --checkis current.- Independent subagent review: every moved module keeps the same test attribute count and the same test fn names as the base inline body; module names are unchanged, so libtest paths stay the same. Declarations keep their attributes and resolve to the new files, including any
#[path]declarations for indirectly loaded owners. No file-relative macros or paths in moved bodies change meaning. - Non-crate rows (traceability, test intent, ratchet, allowlists, indirect owners) are renames or per-file splits that match the moves; split allowlist counts equal the occurrences in each file.
- Local: cargo check -p ripr -p ripr-contract --lib --tests, cargo fmt --check, cargo xtask check-architecture, check-process-policy, check-network-policy, check-capability-producers, and precommit all exit 0. This head equals the earlier reviewed head bff3a32 with two owners (analysis/language/read_limit_disclosure.rs and router.rs) restored byte-identical to base and their two ratchet rows restored; xtask capability_producers tests (21) pass locally.
- Not run: a base-to-head
--listof theriprlib (its test binary does not build in this container, and hosted shards check only the head). Base-to-head parity rests on the per-module test count and name comparison above; hosted gates confirm the head compiles and passes. - Noted, not changed here: some spec prose still cites old test locations; no gate reads them, and #16547 tracks one docs refresh after the batches so this PR stays purely mechanical. Bot threads are answered and resolved.
Generated by Claude Code
2 tasks
EffortlessSteven
pushed a commit
that referenced
this pull request
Nov 30, 2026
…ove router and read_limit_disclosure tests out of line (#15193) check-capability-producers counted every directory under analysis/language/ as a language adapter. Moving router.rs's or read_limit_disclosure.rs's inline tests to <stem>/tests.rs created such a directory, and the gate then demanded a `lang-router` feature (#16657). A directory holding only tests.rs is now skipped. With the fix, the two owners move out of line and the gate passes; with the gate reverted, the same tree fails on both directories. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzV3JdcCDM6STapqHBr
1 task done
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
#[cfg(test)]modules of 53 owners (60 modules) in the published crates into owner-local out-of-line files, which the.cratemanifests already exclude (release(packages): enforce that development tests stay out of every shipped package #15216).mechanical_relocation.py applyon main593dd0c2from the batch-8 owner list (no hand edits). Three owners left the batch for the non-mechanical tail (see ci(relocation): flag proptest seed files orphaned when their owner's inline tests move (#15193) #16630):analysis/facts/mod.rs, becauseapplyoutput there is not rustfmt-stable, andanalysis/language/read_limit_disclosure.rsandanalysis/language/router.rs, because their new directories are read as language adapters bycheck-capability-producers. The test(policy): refuse new inline cfg(test) modules in the published crates (#15193) #15221 ratchet rows inpolicy/inline-test-modules.txt, and the.ripr/traceability.toml/ allowlist path keys for moved tests, are rewritten by the same tool.Mechanical relocation: inline-cfg-test-v1
Governing issue or accepted claim: #15193
Acceptance delta (one sentence): Moves the inline cfg(test) modules of batch 8's owners into out-of-line files that the published crates exclude, with token-identical bodies.
Source review: REVIEW_READY c631a27
Source-of-truth Links
Plan item: #15193, v3 series after #16517 (Steven-approved mechanical-relocation lane, #15217 exception; verifier #15235; ratchet #15221)
Candidate Relationships
Candidate branch:
claude/project-thread-1qexggStack parent or prerequisite PR: none. Only one relocation batch should sit in a merge group at a time.
Scope
.cratesize measurement (owned by a separate lane).Proof
Not verified: a base-to-head
cargo test -p ripr --lib -- --list. Theriprlib test binary does not build in this container's memory, and hosted shards check only the head revision. Base-to-head parity rests on the independent review's per-module comparison of test attribute counts and test fn names; hosted gates confirm the head compiles and passes.Spec prose citations of moved tests are left for #16547 so the PR stays inside the mechanical transform.
Claim Boundary
May claim: these owners' inline test modules no longer ship in the published source. Must not claim: any
.cratebyte change or compile-memory change (not measured here).Rollback
Revert the squash commit; the ratchet rows move back with it.
Generated by Claude Code