Skip to content

Commit faea7d2

Browse files
committed
perf: use debug mode for faster fuzzer builds
Use --dev flag for cargo fuzz build and run commands: - Build step: faster compilation - Reproduce step: faster execution - Claude prompt: instruct to use --dev flag Debug builds are much faster than release builds and sufficient for crash reproduction and testing. Signed-off-by: Joe Isaacs <[email protected]>
1 parent 63cdf42 commit faea7d2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/fuzzer-fix-automation.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ jobs:
173173
- name: Build fuzzer target
174174
id: build
175175
run: |
176-
echo "Building fuzzer target: ${{ steps.extract.outputs.target }}"
176+
echo "Building fuzzer target: ${{ steps.extract.outputs.target }} (debug mode for faster build)"
177177
178-
# Build the fuzzer target to ensure it compiles
179-
if cargo +nightly fuzz build --sanitizer=none "${{ steps.extract.outputs.target }}" 2>&1 | tee fuzzer_build.log; then
178+
# Build the fuzzer target in debug mode (faster than release)
179+
if cargo +nightly fuzz build --dev --sanitizer=none "${{ steps.extract.outputs.target }}" 2>&1 | tee fuzzer_build.log; then
180180
echo "✅ Fuzzer target built successfully"
181181
echo "build_success=true" >> $GITHUB_OUTPUT
182182
else
@@ -193,10 +193,10 @@ jobs:
193193
id: reproduce
194194
continue-on-error: true
195195
run: |
196-
echo "Attempting to reproduce crash with fuzzer..."
196+
echo "Attempting to reproduce crash with fuzzer (debug mode)..."
197197
198-
# Run fuzzer with crash file (no sanitizer, full backtrace for debugging)
199-
RUST_BACKTRACE=full timeout 30s cargo +nightly fuzz run --sanitizer=none "${{ steps.extract.outputs.target }}" "${{ steps.download.outputs.crash_file_path }}" -- -runs=1 2>&1 | tee crash_reproduction.log
198+
# Run fuzzer with crash file (debug mode, no sanitizer, full backtrace)
199+
RUST_BACKTRACE=full timeout 30s cargo +nightly fuzz run --dev --sanitizer=none "${{ steps.extract.outputs.target }}" "${{ steps.download.outputs.crash_file_path }}" -- -runs=1 2>&1 | tee crash_reproduction.log
200200
201201
FUZZ_EXIT_CODE=${PIPESTATUS[0]}
202202
@@ -278,6 +278,7 @@ jobs:
278278
- Read the crash log first: `cat crash_reproduction.log`
279279
- Keep fixes minimal - only fix the specific bug
280280
- Follow CLAUDE.md code style guidelines
281+
- **Use `--dev` flag** for faster builds: `cargo +nightly fuzz run --dev --sanitizer=none`
281282
- **YOU MUST post a comment on issue #${{ env.ISSUE_NUMBER }}** using `gh issue comment` when done
282283
283284
## Fixability Guidelines

0 commit comments

Comments
 (0)