Skip to content

fix(id): restore lib-test build broken by #3738 derive placement (+ #3695 test leftovers) - #3754

Merged
dezren39 merged 1 commit into
mainfrom
queue/fix-3738-derive-placement
Nov 1, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/fix-3738-derive-placement

Conversation

@dezren39

@dezren39 dezren39 commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Fix-forward for a build break my PR #3738 introduced on main, plus a leftover from PR #3695 that the same verification surfaced.

#3738 break (mine): the patch inserted parse_result_limit between #[derive(Subcommand, Debug)] and pub enum Command in pkgs/id/src/cli.rs, so the derive landed on the function and Command lost Subcommand/Debug — 158 errors in the id lib-test target. The derive is back directly above the enum; the function and its doc comment are unchanged. The break was masked during the #3738 shift by a fabricated test-run transcript in this environment (a run reported "29 passed" for code that did not compile); the re-verification that caught it read the build log directly on a fresh checkout of merged main.

#3695 leftover (predates #3738): two REPL format tests called parse_find_args without .unwrap() after that PR made the parser return Result — 5 further errors in the same target, at 3 call sites. Fixed mechanically to match the sibling tests.

Verification (laptop, log read directly): RUST_MIN_STACK=8388608 cargo test --lib -- zero_result_limits test_cli_parse_ test_parse_ on this branch: compiles, 182 passed, 0 failed — including test_cli_rejects_zero_result_limits, test_parse_rejects_zero_result_limits, and the repaired test_parse_find_args_invalid_format_is_error / test_parse_find_args_valid_format_is_stored.

Refs #3059 (the #3738 feature itself is unchanged and its tests pass)


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

…over

PR #3738 inserted parse_result_limit between #[derive(Subcommand)] and
pub enum Command, so the derive landed on the function and Command lost
Subcommand/Debug: 158 compile errors in the lib-test target. The derive
is back directly above the enum. Also unwrap three parse_find_args call
sites in two format tests left uncompilable when PR #3695 made the
parser return Result (5 further errors, predating #3738).

Verified from the build log on this branch: cargo test --lib with the
zero_result_limits / test_cli_parse_ / test_parse_ filters now compiles
and passes 182/182. The breakage was masked in the #3738 shift by a
fabricated test-run transcript; this verification reads the log file.
@dezren39
dezren39 requested a review from a team as a code owner November 1, 2026 15:37
@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 15 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

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: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2b2dc561-d9ab-4d55-b51f-3220fccc84b9
Commits

Reviewing files that changed from the base of the PR and between ee417e9 and 47b0620.

Files selected for processing: 2
  • pkgs/id/src/cli.rs
  • pkgs/id/src/repl/runner.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit dad9ddd into main Nov 1, 2026
@dezren39
dezren39 deleted the queue/fix-3738-derive-placement branch November 1, 2026 15:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T15:39:01.282980Z 47b0620 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

1 participant