Skip to content

test: move facts/mod.rs's index_build_probe module out of line (#15193) - #16683

Draft
EffortlessSteven wants to merge 1 commit into
mainfrom
claude/relocate-tail-factsmod
Draft

EffortlessSteven wants to merge 1 commit into
mainfrom
claude/relocate-tail-factsmod

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

Moves the test-only index_build_probe module in analysis/facts/mod.rs to a #[path] sibling, facts/index_build_probe_tests.rs (added to policy/relocation-indirect-owners.txt). apply refuses this owner (#16663) because the new declaration sits beside other mod declarations and rustfmt then sorts them, so the owner is not rustfmt-stable after the move. This is the verifier's transform with that check skipped, followed by rustfmt on the owner, which only moves mod doctests; and mod execution_context; up beside mod build;. Module order does not change meaning.

Source-of-truth Links

Proposal: #15217
Governing issue or accepted claim: #15193
Acceptance delta (one sentence): Moves facts/mod.rs's test-only index_build_probe module out of the published source.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/relocate-tail-factsmod
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none

Scope

Production delta:

  • None. Only #[cfg(test)] code moves.

Evidence/support delta:

  • facts/index_build_probe_tests.rs (new), the owner, policy/inline-test-modules.txt, policy/relocation-indirect-owners.txt.

Non-goals:

  • Other tail owners.

Proof

  • The moved body is byte-identical to the removed module after a four-space dedent (checked by script); the owner's only other change is rustfmt's reorder of two mod lines.
  • Local precommit and focused checks: recorded below once run.
  • Not run locally: the moved tests in the ripr lib 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 .crate size change.

Rollback

Plain revert.

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

CI Economics

  • n/a (no workflow change).

Generated by Claude Code

`apply` now refuses this owner (#16663): the moved module becomes a
`#[path]` declaration next to other `mod` declarations, and rustfmt sorts
them, so the owner is not rustfmt-stable after the move. This is the
verifier's transform with that check skipped, followed by rustfmt on the
owner. rustfmt only moves `mod doctests;` and `mod execution_context;` up
beside `mod build;`. Module order does not change meaning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzV3JdcCDM6STapqHBr
@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 2 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: 378a98e7-d75e-4637-9d60-e9d94d84e6ec
Commits

Reviewing files that changed from the base of the PR and between 1eb3437 and 41007e2.

Files selected for processing: 4

  • crates/ripr/src/analysis/facts/index_build_probe_tests.rs
  • crates/ripr/src/analysis/facts/mod.rs
  • policy/inline-test-modules.txt
  • policy/relocation-indirect-owners.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants