Skip to content

test: move ci_packet's tests out of line (#15193) - #16672

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

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

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

Moves cli/commands/ci_packet.rs's inline tests to cli/commands/ci_packet_tests.rs (a #[path] sibling, since commands.rs loads ci_packet.rs by #[path]; policy/relocation-indirect-owners.txt gains its row). The verifier refuses this owner because its tests call line!(), each only to make a temp directory name unique with its own prefix plus the process id, so this is the transform with that check relaxed. init_generated_github_workflow_matches_smoke_fixture in commands.rs checks that every artifact path appears in the workflow, the recorded packet or ci_packet's source; eight agent-loop paths appeared only in ci_packet's tests, so the check now reads ci_packet.rs and ci_packet_tests.rs together, as before the move.

Source-of-truth Links

Proposal: #15217
Governing issue or accepted claim: #15193
Acceptance delta (one sentence): Moves ci_packet's inline tests out of the published source and keeps the generated-workflow surface check reading them.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/relocate-tail-pr6
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:

  • ci_packet_tests.rs (new), the owner, commands.rs (one include_str! becomes a concat! of two), policy/inline-test-modules.txt, policy/relocation-indirect-owners.txt, and the traceability rows that name the moved tests.

Non-goals:

Proof

  • Reproduction: mechanical_relocation.py apply on base 3b7bf9e, with only the check named below relaxed, regenerates every file in this commit byte for byte (relaxed: the line! refusal) except the hand edit to crates/ripr/src/cli/commands.rs.
  • mechanical_relocation.py verify refuses it as expected, so this is an ordinary PR under the size cap, not the mechanical route.
  • Local precommit and focused checks: recorded in a comment below.
  • 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

The verifier refuses this owner because its tests call line!(). Each call
only makes a temp directory name unique and each has its own prefix, so a
new line number changes nothing. The move is the verifier's transform with
that one check relaxed; its token-identity check still ran.

init_generated_github_workflow_matches_smoke_fixture checks that every
artifact path appears in the workflow, the recorded packet or ci_packet's
source. Eight agent-loop paths appeared only in ci_packet's tests, so the
check now reads ci_packet.rs and ci_packet_tests.rs together, as before.

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 3 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: bbd15fa2-9688-4709-adfd-f87b5123ad39
Commits

Reviewing files that changed from the base of the PR and between 3b7bf9e and 6e09c18.

Files selected for processing: 6

  • .ripr/traceability.toml
  • crates/ripr/src/cli/commands.rs
  • crates/ripr/src/cli/commands/ci_packet.rs
  • crates/ripr/src/cli/commands/ci_packet_tests.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