Skip to content

test: move inline cfg(test) modules out of line, batch 10 of 27 (#15193) - #16679

Open
EffortlessSteven wants to merge 1 commit into
mainfrom
claude/project-thread-1qexgg
Open

EffortlessSteven wants to merge 1 commit into
mainfrom
claude/project-thread-1qexgg

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

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-1qexgg
Stack parent or prerequisite PR: none. Only one relocation batch should sit in a merge group at a time.

Scope

  • Test-only relocation. No production code changes; module bodies are token-identical.
  • Non-goals: the non-mechanical tail owners and .crate size measurement (owned by a separate lane).

Proof

python3 .github/actions/pr-candidate-admission/mechanical_relocation.py apply <batch 10 owners>
python3 .github/actions/pr-candidate-admission/mechanical_relocation.py verify --base origin/main   # status: validated
python3 .github/actions/pr-candidate-admission/mechanical_relocation.py indirect-owners --check     # current
cargo check -p ripr -p ripr-contract --lib --tests                                                  # exit 0
cargo xtask precommit                                                                                # exit 0
cargo xtask check-architecture                                                                       # pass
cargo xtask check-process-policy                                                                     # pass
cargo xtask check-network-policy                                                                     # pass
cargo xtask check-capability-producers                                                               # pass
cargo fmt --check                                                                                    # exit 0

Not verified: a base-to-head cargo test -p ripr --lib -- --list. The ripr lib 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 .crate byte 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

@EffortlessSteven EffortlessSteven self-assigned this Nov 30, 2026
@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!

@coderabbitai

coderabbitai Bot commented Nov 30, 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 22 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 137 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: 4f6ca450-7f74-43eb-9b2a-ec5543f2eed2
Commits

Reviewing files that changed from the base of the PR and between ae7c38b and eff17b0.

Files selected for processing: 59

  • .ripr/traceability.d/10730-py-ts-diff-scope-budget.toml
  • .ripr/traceability.d/12253-row-text-quoted-words.toml
  • .ripr/traceability.d/14139-repo-scope-owner-opt-out.toml
  • .ripr/traceability.d/14429-type-item-declaration.toml
  • .ripr/traceability.d/15000-repo-scope-enclosing-mutants-skip.toml
  • .ripr/traceability.d/15274-inline-tail-if-arm.toml
  • .ripr/traceability.d/15331-ts-expected-value-shape-wording.toml
  • .ripr/traceability.d/15340-mocha-verify-command.toml
  • .ripr/traceability.d/15947-typescript-tool-config-not-product.toml
  • .ripr/traceability.toml
  • crates/ripr/src/analysis/language/typescript/package.rs
  • crates/ripr/src/analysis/language/typescript/package/tests.rs
  • crates/ripr/src/analysis/language/typescript/parse.rs
  • crates/ripr/src/analysis/language/typescript/parse/injected_worker_panic_tests.rs
  • crates/ripr/src/analysis/language/typescript/parse/inline_parse_tests.rs
  • crates/ripr/src/analysis/language/typescript/parse/parse_depth_tests.rs
  • crates/ripr/src/analysis/language/typescript/related_tests.rs
  • crates/ripr/src/analysis/language/typescript/related_tests/adjacency_view_tests.rs
  • crates/ripr/src/analysis/language/typescript/related_tests/constructed_receiver_tests.rs
  • crates/ripr/src/analysis/language/typescript/related_tests/module_extension_tests.rs
  • crates/ripr/src/analysis/language/typescript/related_tests/nested_config_withhold_tests.rs
  • crates/ripr/src/analysis/language/typescript/related_tests/same_line_shadow_tests.rs
  • crates/ripr/src/analysis/language/typescript/related_tests/spread_call_boundary_tests.rs
  • crates/ripr/src/analysis/language/typescript/related_tests/spy_binding_unicode_tests.rs
  • crates/ripr/src/analysis/language/typescript/relation_index.rs
  • crates/ripr/src/analysis/language/typescript/relation_index/tests.rs
  • crates/ripr/src/analysis/language/typescript/rethrow_wrapper.rs
  • crates/ripr/src/analysis/language/typescript/rethrow_wrapper/tests.rs
  • crates/ripr/src/analysis/language/typescript/spread_override_guard.rs
  • crates/ripr/src/analysis/language/typescript/spread_override_guard/tests.rs
  • crates/ripr/src/analysis/language/typescript/static_limit.rs
  • crates/ripr/src/analysis/language/typescript/static_limit/dynamic_why_tests.rs
  • crates/ripr/src/analysis/language/typescript/static_limit/module_identity_tests.rs
  • crates/ripr/src/analysis/language/typescript/table_rows.rs
  • crates/ripr/src/analysis/language/typescript/table_rows/tests.rs
  • crates/ripr/src/analysis/language/typescript/ternary_arm_guard.rs
  • crates/ripr/src/analysis/language/typescript/ternary_arm_guard/array_expectation_tests.rs
  • crates/ripr/src/analysis/language/typescript/tsconfig.rs
  • crates/ripr/src/analysis/language/typescript/tsconfig/tests.rs
  • crates/ripr/src/analysis/language/typescript/workspace_packages.rs
  • crates/ripr/src/analysis/language/typescript/workspace_packages/tests.rs
  • crates/ripr/src/analysis/owner_opt_out.rs
  • crates/ripr/src/analysis/owner_opt_out/tests.rs
  • crates/ripr/src/analysis/path_glob.rs
  • crates/ripr/src/analysis/path_glob/tests.rs
  • crates/ripr/src/analysis/pipeline.rs
  • crates/ripr/src/analysis/pipeline/injected_adapter_panic_tests.rs
  • crates/ripr/src/analysis/pipeline/tests.rs
  • crates/ripr/src/analysis/probes/binding_predicate.rs
  • crates/ripr/src/analysis/probes/binding_predicate/tests.rs
  • crates/ripr/src/analysis/probes/binding_return.rs
  • crates/ripr/src/analysis/probes/binding_return/tests.rs
  • crates/ripr/src/analysis/probes/classify.rs
  • crates/ripr/src/analysis/probes/classify/declarations.rs
  • crates/ripr/src/analysis/probes/classify/declarations/tests.rs
  • crates/ripr/src/analysis/probes/classify/tests.rs
  • policy/inline-test-modules.txt
  • policy/process_allowlist.txt
  • policy/relocation-indirect-owners.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY for head eff17b0

Inspected on this head (base 4e5afd9):

  • mechanical_relocation.py verify --base 4e5afd98 returns validated for all 28 moves (18 owners); indirect-owners --check is 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 --list of the ripr lib (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
EffortlessSteven marked this pull request as ready for review November 30, 2026 07:15
@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!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants