Repository navigation
ci: run nightly fuzzers against the 2.4 branch too - #492
Conversation
Scheduled workflows only fire from the default branch, so the three nightly fuzzers exercised master only; the 2.4 maintenance branch had no nightly fuzz coverage. Add a branch matrix [master, 2.4] to each nightly job, active on cron and manual dispatch (PRs keep the event's default checkout so PR-label runs still fuzz the PR's code). The checkout step picks the matrix branch via `ref`; the soak binary/log artifacts are branch-scoped so master and 2.4 don't collide. 2.4 has all the required infra (configure --enable-sanitizers/ --enable-ubsan, cli_fuzz.py, fuzz_monitor_input.py, all 7 soak scenarios), so master's steps run cleanly against the 2.4 checkout. Co-Authored-By: Claude Opus 4.8 <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 99f8cf0. Configure here.
| with: | ||
| name: memtier-soak-binary | ||
| # Branch-scoped so the master and 2.4 binaries don't collide. | ||
| name: memtier-soak-binary-${{ matrix.branch }} |
There was a problem hiding this comment.
One build leg skips all soak
Medium Severity
The build job now uses a branch matrix, but soak still depends on the whole build job. If either master or 2.4 fails to build, GitHub marks build failed and skips every soak matrix job, including scenarios for the branch that built successfully.
Reviewed by Cursor Bugbot for commit 99f8cf0. Configure here.
| with: | ||
| # Empty ref => the event's default checkout (PR merge ref / default | ||
| # branch); a named branch => that maintenance branch on cron. | ||
| ref: ${{ matrix.branch != '__default__' && matrix.branch || '' }} |
There was a problem hiding this comment.
Failure artifacts share matrix names
Low Severity
Nightly runs now execute two parallel matrix jobs per workflow, but failure uploads still use fixed artifact names (cli-fuzz-hypothesis-db, monitor-fuzz-repros). upload-artifact@v4 cannot accept the same name from multiple jobs in one run, so dual failures can break the second upload or drop one branch’s repro data.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 99f8cf0. Configure here.
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
cli-fuzz fuzzed 2.4 and hit a benign exit-time leak (96 bytes in shard_connection::send_conn_setup_commands: a pending setup request is not freed when the connection-stage supervisor aborts on AUTH failure, e.g. --authenticate '' --cluster-mode). master no longer leaks it (fixed under the #456 read-preference refactor, out of scope to backport), so keep detect_leaks=1 on the default branch and set detect_leaks=0 only on the 2.4 matrix leg -- cli-fuzz still catches real crashes there. Co-Authored-By: Claude Opus 4.8 <[email protected]>


Problem
The three nightly fuzzers (
cli-fuzz@4:47,monitor-fuzz@3:37,soak/stress @2:17) areschedule-triggered. GitHub only runs scheduled workflows from the default branch, and each does a defaultcheckout, so they fuzz master only — the 2.4 maintenance branch gets no nightly fuzz coverage. (Aschedule:on 2.4's own copy of these files would never fire.)Fix
Add a
branchmatrix[master, 2.4]to each nightly job, gated to non-PR events (cron + manualworkflow_dispatch). The checkout step selects the matrix branch viaref; an emptyrefon PRs preserves the existing PR-label behaviour (fuzz the PR's own code). Soak's binary and log artifacts are branch-scoped so master/2.4 don't collide.2.4 was verified to have all required infra:
configure --enable-sanitizers/--enable-ubsan,tests/cli_fuzz.py,tests/fuzz/fuzz_monitor_input.py, and all 7 soak scenario files — so master's workflow steps run cleanly against the 2.4 checkout.Validated with
actionlint(clean).workflow_dispatchnow also covers both branches, so the 2.4 leg can be exercised on demand without waiting for cron.🤖 Generated with Claude Code
Note
Low Risk
Changes are limited to GitHub Actions workflow configuration with no application code or runtime behavior changes.
Overview
Extends cli-fuzz, monitor-fuzz, and soak so scheduled and
workflow_dispatchruns execute onmasterand2.4, not only the default branch checkout. Each job gets abranchmatrix withfail-fast: false; PR label triggers still use a single leg via a__default__placeholder and an empty checkoutrefso behavior stays “fuzz the PR.”Soak builds and tests per branch: artifact names (
memtier-soak-binary-${{ matrix.branch }}), soak job matrix cross-product (branch × scenario), matching checkouts/downloads, and failure log artifacts include the branch prefix.CLI fuzz on 2.4 sets
ASAN_OPTIONSdetect_leaks=0while master keeps leak detection, documented as working around a known benign exit-time leak on 2.4 that is already fixed on master.Reviewed by Cursor Bugbot for commit 7feab9f. Bugbot is set up for automated code reviews on this repo. Configure here.