Skip to content

Move AST-fuzzer max_threads cap into the shared limit-recursion-settings.xml - #109755

Merged
PedroTadim merged 1 commit into
ClickHouse:masterfrom
groeneai:groeneai/fuzzer-cap-max-threads-shared
Jul 8, 2026
Merged

PedroTadim merged 1 commit into
ClickHouse:masterfrom
groeneai:groeneai/fuzzer-cap-max-threads-shared

Conversation

@groeneai

@groeneai groeneai commented Jul 8, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

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

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Description

Follow-up to #109256 (per @PedroTadim). That PR added the AST-fuzzer max_threads <max>128</max> cap in two places: ci/jobs/scripts/fuzzer/query-fuzzer-tweaks-users.xml and the mirrored copy in the stress-path stress_test_tweaks-users.xml heredoc in tests/docker_scripts/stress_tests.lib.

This moves the cap into ci/jobs/scripts/fuzzer/limit-recursion-settings.xml, which is already cp'd into users.d by every ast_fuzzer_runs entry point (run-fuzzer.sh, clickhouse_proc.py, stress_runner.sh), so one shared location covers both the dedicated AST fuzzer and the stress test. The two duplicated constraints are removed.

No behavior change: the effective cap is still 128 for every ast_fuzzer_runs user.

Version info

  • Merged into: 26.7.1.667 (included in 26.7 and later)

…ngs.xml

Follow-up to ClickHouse#109256. That PR added a max_threads <max>128</max> constraint
in two places (query-fuzzer-tweaks-users.xml and the stress-path
stress_test_tweaks-users.xml heredoc in stress_tests.lib). Consolidate it into
limit-recursion-settings.xml, which is already cp'd into users.d by every
ast_fuzzer_runs entry point (run-fuzzer.sh, clickhouse_proc.py, stress_runner.sh),
so a single location covers the dedicated AST fuzzer and the stress test.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai

groeneai commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? N/A (CI fuzzer-profile setting cap, not a code bug). The underlying hang was reproduced and validated in #109256.
b Root cause explained? Yes. A fuzzed max_threads in the tens of thousands makes one query request more pipeline threads than the global pool (max_thread_pool_size=10000), saturating it (CANNOT_SCHEDULE_TASK), starving the liveness probe. Cap at 128.
c Fix matches root cause? Yes. Same <max>128</max> cap; this PR only relocates it to the shared file so every ast_fuzzer_runs user gets it from one place.
d Test intent preserved? Yes. Effective cap unchanged (128) for the dedicated AST fuzzer and the stress test.
e Demonstrated in both directions? Covered by #109256 (30-run smoke pass + repro). This follow-up is a pure relocation; validated the generated stress XML and both profile XMLs are well-formed and bash -n passes.
f Fix general, not narrow? Yes. The cap now lives in limit-recursion-settings.xml, cp'd into users.d by all three entry points (run-fuzzer.sh, clickhouse_proc.py, stress_runner.sh). No ast_fuzzer_runs>0 profile is left uncapped, and none gets it twice.
g Generalizes across inputs? N/A (CI fuzzer-profile setting cap, not a code bug).
h Backward compatible? N/A (CI-only config; not user-facing).
i Invariants/contracts preserved? N/A (CI-only config).

Session id: cron:clickhouse-worker-slot-2:20260708-095700

@groeneai

groeneai commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

cc @PedroTadim - follow-up to #109256 moving the AST-fuzzer max_threads cap into the shared limit-recursion-settings.xml as you asked. Would you take a look?

@PedroTadim PedroTadim added the can be tested Allows running workflows for external contributors label Jul 8, 2026
@PedroTadim PedroTadim self-assigned this Jul 8, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [9648eed]

Summary: ✅


AI Review

Summary

This PR moves the AST-fuzzer max_threads cap from two duplicated profile snippets into ci/jobs/scripts/fuzzer/limit-recursion-settings.xml. I did not find a contract regression: the shared file is still installed by all three relevant launchers (run-fuzzer.sh, clickhouse_proc.py, stress_runner.sh), the duplicated caps were removed only from profiles that already receive that shared file, and the current PR CI report is clean.

Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jul 8, 2026
@groeneai

groeneai commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

CI finish ledger — 9648eed

CI fully finished (Finish Workflow pass, Mergeable Check pass, 0 checks pending, >20-min CIDB buffer). All jobs green; 0 test-level FAIL/ERROR in CIDB. Nothing to own.

Check / test Reason Owner / fixing PR
(none) all checks passed n/a
Sync - CH Inc sync (private, not actionable)

Session id: cron:our-pr-ci-monitor:20260708-120000

@PedroTadim
PedroTadim added this pull request to the merge queue Jul 8, 2026
Merged via the queue into ClickHouse:master with commit 48d4c3f Jul 8, 2026
175 checks passed
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 8, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…p-max-threads-shared

Move AST-fuzzer max_threads cap into the shared limit-recursion-settings.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors 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