Skip to content

Improve fuzz target orchestration#816

Merged
EffortlessSteven merged 4 commits into
mainfrom
codex/improve-fuzzing-techniques
May 19, 2026
Merged

Improve fuzz target orchestration#816
EffortlessSteven merged 4 commits into
mainfrom
codex/improve-fuzzing-techniques

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Motivation

  • Make fuzz orchestration more ergonomic for local and PR workflows by adding list and all modes and a sane default target.
  • Prevent silent drift between fuzz/fuzz_targets/*.rs and fuzz/Cargo.toml so newly added harnesses are not omitted from CI or PR evidence.
  • Avoid expensive key-generation fuzz runs in routine PR evidence while still compiling all harnesses to catch regressions early.

Description

  • Add CLI switches to xtask fuzz: --list to print manifest-declared fuzz targets and --all to run every declared target, and keep rsa_pkcs8_pem_parse as the default when no target is given (DEFAULT_FUZZ_TARGET).
  • Implement manifest-backed discovery and validation in list_fuzz_targets() by parsing fuzz/Cargo.toml, verifying each [[bin]] entry, and rejecting undeclared fuzz_targets/*.rs sources.
  • Centralize cargo-fuzz availability check in ensure_cargo_fuzz_available() so --list can run without cargo-fuzz installed while real fuzz runs still fail fast if missing.
  • Update PR fuzz step (fuzz_pr) to cargo fuzz build all harnesses for compile coverage then run a bounded smoke subset via is_pr_fuzz_target() to skip expensive keygen or chain-building harnesses.
  • Add helper is_pr_fuzz_target() to exclude expensive targets and extend xtask unit tests to cover manifest-backed discovery, manifest-drift detection, PR-target filtering, and list behavior.

Testing

  • Ran cargo test -p xtask fuzz -- --nocapture and cargo test -p xtask fuzz_targets -- --nocapture and all xtask unit tests related to fuzz discovery and filtering passed.
  • Ran cargo run -p xtask -- fuzz --list to exercise the new listing path and it printed the declared fuzz targets (manifest-backed); this succeeded.
  • Ran cargo check -p xtask to verify compilation and static checks; this succeeded.

Codex Task

@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 1 minute and 56 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: 305e9757-ddbb-4bec-88f5-6a2154f501fd

📥 Commits

Reviewing files that changed from the base of the PR and between 2629189 and ae12173.

📒 Files selected for processing (1)
  • xtask/src/main.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/improve-fuzzing-techniques

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 5996b78 into main May 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant