Repository navigation
test: move inline cfg(test) modules out of line, batch 10 of 27 (#15193) - #16679
EffortlessSteven wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzQrFX3sXvazaKd8CB6
|
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 22 minutes. View limit details
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY for head eff17b0
Inspected on this head (base 4e5afd9):
mechanical_relocation.py verify --base 4e5afd98returns validated for all 28 moves (18 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.
- 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
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Requested by Steven · project thread
Summary
#[cfg(test)]modules of 18 owners (28 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 main4e5afd98from the batch-10 owner list (no hand edits).applyadds two#[path]declarations for non-testsmodules (typescript/parse/injected_worker_panic_tests.rs,analysis/pipeline/injected_adapter_panic_tests.rs) and records both inpolicy/relocation-indirect-owners.txt. 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 10's owners into out-of-line files that the published crates exclude, with token-identical bodies.
Source review: REVIEW_READY eff17b0
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.
https://claude.ai/code/session_01YVdGzQrFX3sXvazaKd8CB6
Generated by Claude Code