Skip to content

CI: run libFuzzers in PRs, w/o corpus upload - #99530

Merged
yakov-olkhovskiy merged 5 commits into
masterfrom
ci-libfuzzer-for-prs
Mar 16, 2026
Merged

yakov-olkhovskiy merged 5 commits into
masterfrom
ci-libfuzzer-for-prs

Conversation

@yakov-olkhovskiy

@yakov-olkhovskiy yakov-olkhovskiy commented Mar 16, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

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

Version info

  • Merged into: 26.3.1.732

@clickhouse-gh

clickhouse-gh Bot commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d34d31b]

Summary: ❌

job_name test_name status info comment
libFuzzer tests failure
execute_query_fuzzer FAIL cidb
create_parser_fuzzer FAIL cidb
data_type_deserialization_fuzzer FAIL cidb
tcp_protocol_fuzzer FAIL cidb
clickhouse_fuzzer FAIL cidb

AI Review

Summary

This PR enables libFuzzer runs in PR workflow with shorter PR timeout, skips corpus minimization/upload on PR runs, and wires required fuzzer artifacts for the new PR check. I reviewed functional changes in ci/jobs/libfuzzer_test_check.py, ci/workflows/pull_request.py, and tests/fuzz/runner.py (excluding /.github/workflows/* per review policy). I did not find blocker/major issues.

Missing context

  • ⚠️ No CI logs/results were provided in the review input, so runtime behavior was assessed by code inspection only.

ClickHouse Rules

Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ➖
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsHistory.cpp ➖
Safe rollout ✅
Compilation time ✅

Final Verdict

  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Mar 16, 2026
@yakov-olkhovskiy

Copy link
Copy Markdown
Member Author

@cursoragent review

@cursor

cursor Bot commented Mar 16, 2026 •

Copy link
Copy Markdown

Findings (by severity)

  • No ❌ blockers or ⚠️ majors found in the reviewed non-workflow changes.
    • Reviewed: ci/jobs/libfuzzer_test_check.py (around is_master/SKIP_MERGE flow), ci/workflows/pull_request.py (libFuzzer job wiring/artifact provides), tests/fuzz/runner.py (merge-skip behavior).

Open questions / assumptions

  • Assumed Info.git_branch is exactly "master" for scheduled master runs, so corpus upload remains enabled there.
  • Assumed the special build job producing fuzzer artifacts continues to include "fuzzers" in its job name (used in ci/workflows/pull_request.py to attach provides).

Change summary (secondary)

  • PR enables running libFuzzer tests in PR workflow.
  • It skips corpus minimization/upload outside master via SKIP_MERGE=1.
  • It wires libFuzzer artifact production/consumption into PR workflow dependencies consistently with existing nightly fuzzer pattern.

Residual risk / testing gap

  • I did not validate an end-to-end Praktika run in this environment; runtime-only CI wiring issues can still exist even when code wiring looks consistent.

Final verdict

  • Status: ✅ Approve
Open in Web Open in Cursor 

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ yakov-olkhovskiy
❌ cursoragent
You have signed the CLA already but the status is still pending? Let us recheck it.

Comment thread tests/fuzz/runner.py
# arguments as usual, without any special measures, but initialization of libFuzer driver then should take
# arguments from FUZZER_ARGS environment variable.
use_fuzzer_args = parser.getboolean("CI", "FUZZER_ARGS", fallback=False)
# FUZZER_ARGS flag is used to make it deliver libFuzzer arguments throught FUZZER_ARGS environment variable

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: typo in this comment block — throught -> through (and a few lines below, libFuzer -> libFuzzer). Keeping these terms accurate helps avoid confusion when searching docs/logs.

cursoragent and others added 2 commits March 16, 2026 03:56
Use 30 minutes for PR runs and keep 60 minutes for non-PR runs (including `NightlyFuzzers` on `master`).

Co-authored-by: Yakov Olkhovskiy <[email protected]>
Set `TIMEOUT` to `TIMEOUT_MASTER` only on `is_master`; use `TIMEOUT_PR` for all other runs.

Co-authored-by: Yakov Olkhovskiy <[email protected]>
@yakov-olkhovskiy
yakov-olkhovskiy requested a review from maxknv March 16, 2026 05:40
In PR workflow, set `allow_merge_on_failure` for `JobConfigs.libfuzzer_job` while keeping the job enabled and reported.

Co-authored-by: Yakov Olkhovskiy <[email protected]>
@yakov-olkhovskiy
yakov-olkhovskiy marked this pull request as ready for review March 16, 2026 12:22

@maxknv maxknv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, except for failing checks

@yakov-olkhovskiy

Copy link
Copy Markdown
Member Author

except for failing checks

suppose to

@yakov-olkhovskiy
yakov-olkhovskiy added this pull request to the merge queue Mar 16, 2026
Merged via the queue into master with commit d09a387 Mar 16, 2026
159 of 160 checks passed
@yakov-olkhovskiy
yakov-olkhovskiy deleted the ci-libfuzzer-for-prs branch March 16, 2026 22:28
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

5 participants