Skip to content

Give each libFuzzer target 5 hours instead of 1 - #117143

Merged
alexey-milovidov merged 4 commits into
masterfrom
libfuzzer-longer-timeout
Sep 5, 2026
Merged

alexey-milovidov merged 4 commits into
masterfrom
libfuzzer-longer-timeout

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Aug 30, 2026 •

Copy link
Copy Markdown
Member

At the current one-hour budget the two slowest targets never reach mutation. On 2026-08-30 execute_query_fuzzer started fuzzing at 04:36:42 and wrote its first new corpus unit at 05:34:36; clickhouse_fuzzer started at 04:49:39 and found its first at 05:45:10. Both spend the hour replaying their existing inputs at 3-5 exec/s under ASan, so their corpora grow by 4 and 26 units per night respectively and neither has reported a finding since mid-May.

Corpus minimization already runs in its own weekly job since #117145, and it keeps its one-hour cap: it is a fixed amount of work proportional to the corpus (the slowest target takes about 40 minutes), so it must not scale with the fuzzing budget.

RUNNERS is now set to the number of fuzzer binaries. It defaulted to 16 for 20 targets, which was a few minutes of queueing at a one-hour budget but would be a five-hour serialization at five hours. The runner is already fully loaded either way; each target is single-threaded in its fuzz loop.

The job timeout has to move with this: praktika's default is exactly 5 hours, so the job would be killed mid-run. Six hours does not exceed GitHub's default job limit, so the generated workflow file is unchanged.

Related: #117145
Related: #117142

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Workflow [PR]
Sync PR [sync-upstream/pr/117143]

Version info

  • Merged into: 26.9.1.748 (included in 26.9 and later)

At the current one-hour budget the two slowest targets never reach mutation.
On 2026-08-30 `execute_query_fuzzer` started fuzzing at 04:36:42 and wrote its
first new corpus unit at 05:34:36; `clickhouse_fuzzer` started at 04:49:39 and
found its first at 05:45:10. Both spend the hour replaying their existing
inputs at 3-5 exec/s under ASan, so their corpora grow by 4 and 26 units per
night respectively and neither has reported a finding since mid-May.

Corpus minimization keeps a separate one-hour cap instead of inheriting the
fuzzing timeout, because it is a fixed amount of work proportional to the
corpus - the slowest target takes 38 minutes - and letting it scale with the
fuzzing budget would just double the length of the job.

`RUNNERS` is now set to the number of fuzzer binaries. It defaulted to 16 for
20 targets, which was a few minutes of queueing at a one-hour budget but would
be a six-hour serialization at five hours. The runner is already fully loaded
either way; each target is single-threaded in its fuzz loop.

The job timeout has to move with this: praktika's default is exactly 5 hours,
so the job would be killed mid-run.
@clickhouse-gh

clickhouse-gh Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [540e258]

Summary: ✅


AI Review

Summary

This PR increases the scheduled libFuzzer tests fuzzing budget from one hour to five hours, keeps --minimize-only runs on their separate one-hour cap, and sets RUNNERS to the number of downloaded fuzzer binaries so targets do not serialize behind the old fixed pool size. The earlier six-hour wall-clock issue was addressed by reducing the Praktika job timeout to 5.5 * 3600, which preserves GitHub-side headroom for setup and upload. I did not find any remaining correctness, reliability, or PR-metadata issues in the current diff.

Final Verdict

✅ Approved.

…n job

After #117145 the nightly fuzzing run sets `SKIP_MERGE=1` and corpus
minimization runs in the weekly `libFuzzer corpus minimization` job, so
the `MINIMIZATION_TIMEOUT` plumbing in `tests/fuzz/runner.py` no longer
has anything to bound. The minimize-only job now simply gets the one-hour
cap through `TIMEOUT`, keeping its behavior unchanged while the fuzzing
job moves to five hours.

The job timeout drops from seven to six hours, because the fuzzing job no
longer contains a minimization phase. Six hours does not exceed GitHub's
default limit, so the generated `nightly_fuzzers.yml` does not change,
which also fixes the `Check Workflows` failure:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=117143&sha=8f63aa320e7dc99a472dddd42707fbe8108d57d0&name_0=PR&name_1=Config%20Workflow
#117143
Comment thread ci/defs/job_configs.py Resolved
@clickhouse-gh clickhouse-gh Bot added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Sep 4, 2026
Comment thread ci/defs/job_configs.py Resolved

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

LGTM

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Sep 4, 2026
Merged via the queue into master with commit 6b5032a Sep 5, 2026
174 checks passed
@alexey-milovidov
alexey-milovidov deleted the libfuzzer-longer-timeout branch September 5, 2026 01:43
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants