Skip to content

ci: run nightly fuzzers against the 2.4 branch too - #492

Merged
fcostaoliveira merged 2 commits into
masterfrom
ci/nightly-fuzz-2.4
Jun 26, 2026
Merged

fcostaoliveira merged 2 commits into
masterfrom
ci/nightly-fuzz-2.4

Conversation

@fcostaoliveira

@fcostaoliveira fcostaoliveira commented Jun 25, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The three nightly fuzzers (cli-fuzz @4:47, monitor-fuzz @3:37, soak/stress @2:17) are schedule-triggered. GitHub only runs scheduled workflows from the default branch, and each does a default checkout, so they fuzz master only — the 2.4 maintenance branch gets no nightly fuzz coverage. (A schedule: on 2.4's own copy of these files would never fire.)

Fix

Add a branch matrix [master, 2.4] to each nightly job, gated to non-PR events (cron + manual workflow_dispatch). The checkout step selects the matrix branch via ref; an empty ref on 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_dispatch now 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_dispatch runs execute on master and 2.4, not only the default branch checkout. Each job gets a branch matrix with fail-fast: false; PR label triggers still use a single leg via a __default__ placeholder and an empty checkout ref so 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_OPTIONS detect_leaks=0 while 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.

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]>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

Fix All in Cursor

❌ 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 }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Fix in Cursor Fix in Web

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 || '' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 99f8cf0. Configure here.

@jit-ci

jit-ci Bot commented Jun 25, 2026

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ 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]>
fcostaoliveira added a commit that referenced this pull request Jun 26, 2026
#493)

Test/CI-only backports so the nightly fuzzers pass on 2.4: cli-fuzz --connection-stage-timeout (#449), soak slope/timeout thresholds (#464, #467). Verified: full 500-example cli-fuzz passes on 2.4 (with the master-side per-leg detect_leaks=0 in #492).
@fcostaoliveira
fcostaoliveira merged commit ae03df0 into master Jun 26, 2026
173 of 179 checks passed
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