Skip to content

fix(cli): return usage code for audit mode conflicts#811

Merged
EffortlessSteven merged 1 commit into
mainfrom
fix/audit-bundle-ci-usage-exit
May 18, 2026
Merged

fix(cli): return usage code for audit mode conflicts#811
EffortlessSteven merged 1 commit into
mainfrom
fix/audit-bundle-ci-usage-exit

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

  • Make audit-bundle --ci --summary a Clap usage/config error so it exits with code 2.
  • Keep audit failures on the existing CI path as exit 1 and successful audits as exit 0.
  • Tighten the regression test for the incompatible audit-mode flags.

Files added/changed

  • crates/uselesskey-cli/src/main.rs
  • crates/uselesskey-cli/tests/cli.rs

Validation

  • cargo test -p uselesskey-cli --all-features audit_bundle_summary_rejects_ci_mode
  • Manual reproduction: cargo run -p uselesskey-cli -- audit-bundle --path target/completion-audit/webhook --ci --summary exits 2
  • cargo test -p uselesskey-cli --all-features audit_bundle
  • cargo fmt --all -- --check
  • git diff --check
  • cargo +nightly xtask pr-lite

Non-goals

  • No release prep, version bump, tag, or publish.
  • No new contract packs or badges.
  • No provider compatibility, production security, or scanner-evasion claims.

What this enables next

  • Completes the downstream CI exit-code contract: pass=0, stable audit failure=1, CLI/config usage error=2.

@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!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented May 18, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@EffortlessSteven has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 37 minutes and 3 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 95c7ea39-5c42-4427-8aa5-994ab4d5accf

📥 Commits

Reviewing files that changed from the base of the PR and between 7996512 and 2d4a1dc.

📒 Files selected for processing (2)
  • crates/uselesskey-cli/src/main.rs
  • crates/uselesskey-cli/tests/cli.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/audit-bundle-ci-usage-exit

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@EffortlessSteven EffortlessSteven merged commit 77f9f0b into main May 18, 2026
6 checks passed
@EffortlessSteven EffortlessSteven deleted the fix/audit-bundle-ci-usage-exit branch May 18, 2026 12:10
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