Skip to content

Fix the dead is_fast_build check so limits_fast.yaml is actually installed on Fast test - #112387

Merged
Algunenano merged 5 commits into
ClickHouse:masterfrom
groeneai:groeneai/fix-is-fast-build-limits-fast-gate
Jul 31, 2026
Merged

Algunenano merged 5 commits into
ClickHouse:masterfrom
groeneai:groeneai/fix-is-fast-build-limits-fast-gate

Conversation

@groeneai

@groeneai groeneai commented Jul 29, 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

tests/config/users.d/limits_fast.yaml has never been installed on any CI job.
is_fast_build (tests/config/install.sh:74-77) only returns an exit code and prints nothing,
while the call site read stdout: if [[ $(is_fast_build) == 1 ]]. The substitution is always
empty, so the branch was never taken. Any job's set -x trace shows it (++ return 1,
+ [[ '' == 1 ]], grep -c limits_fast job.log = 0), so max_execution_time: 60 has never been
in effect, and the CancellationChecker it arms (ProcessList.cpp:381) has never run here.

The fix makes both halves agree on one convention: is_fast_build stays a predicate, the call
site becomes a plain if.

This re-lands #97823, reverted by #98026 because the LLVM coverage build passes the predicate
(-DNDEBUG, no -fsanitize=) while being ~2-3x slower. That objection was correct, so the
coverage exclusion is included, keyed on the WITH_COVERAGE row rather than on CXX_FLAGS, which
cannot see coverage flags (applied per directory, while CXX_FLAGS renders
@FULL_CXX_FLAGS_NORMALIZED@). tests/clickhouse-test reads the same row for the same reason.
An unanswerable probe declines; the guards compare strings, so an empty result is not a shell error.

Impact is limited to Fast test, because the gate now also requires --fast-test, whose only
caller is ci/jobs/fast_test.py:330. Over 7 days of CIDB, 0 of 53 243 160 passing test rows on
that job exceeded 60 s (slowest 57 840 ms), and structurally so: the runner already gives each
test file a 60 s budget (--timeout 60, the only one in ci/). I did not widen it, because other
jobs satisfying is_fast_build do run single queries past 60 s.

ci/tests/test_install_sh_fast_limits.py (new) drives the real install.sh and asserts on the
resulting symlink; nothing previously did, which is how the dead branch survived.
ci/defs/job_configs.py adds both files to the CI Tests digest, so that test is scheduled
when the gate it guards changes.

Version info

  • Merged into: 26.8.1.510 (included in 26.8 and later)

groeneai and others added 4 commits July 28, 2026 12:29
…alled

is_fast_build only returned an exit code and printed nothing, while the call
site consumed stdout via [[ $(is_fast_build) == 1 ]]. The command substitution
was therefore always empty, the branch never taken, and
tests/config/users.d/limits_fast.yaml never installed on any job - fast build
or not. So max_execution_time / max_execution_time_leaf have never been in
effect in CI. One consequence is that the CancellationChecker watchdog, which
is only armed when max_execution_time > 0, never ran on these jobs, so a query
waiting inside the server had no timeout.

Make the function a predicate and call it as one. This re-lands ClickHouse#97823, which
fixed the same thing and was reverted by ClickHouse#98026 because the LLVM coverage build
passes the "fast build" predicate while being 2-3x slower. That objection was
correct, so the coverage exclusion is included - but not the probe the revert
suggested: coverage flags are applied per directory via add_compile_options and
never reach CMAKE_CXX_FLAGS, so they cannot be seen in the CXX_FLAGS row. Use
the dedicated WITH_COVERAGE build option instead, which is what
tests/clickhouse-test and tests/integration/helpers/cluster.py already read.
Putting the check in the predicate rather than in the caller also covers
tests/docker_scripts/stress_tests.lib, which invokes install.sh without
--llvm-coverage.

Two deliberate differences from ClickHouse#97823: its USE_ENCRYPTED_STORAGE=0 default
line is not re-landed, because it clobbers the export in stress_runner.sh and
would silently disable the encrypted-storage guard on the one job that sets the
variable; and the environment checks use == rather than -eq, matching what
install.sh already does for these same variables.

ClickHouse#97823 was live on master for 6h43m, which measures this change without a
coverage exclusion: all 19 TIMEOUT_EXCEEDED rows in that window were on
amd_llvm_coverage, while the arm_binary stateless jobs ran with the symlink
installed and had no failures.
…with a test

The gate is a conjunction of two independent decisions, and only the first was
addressed by the previous commit. Which build kinds can take a 60 second
per-query cap is what is_fast_build answers. Which jobs should get the profile
at all is a separate question that the original one-line gate never asked.

Measured over 7 days of master, three tests that run on jobs satisfying
is_fast_build exceed 60 seconds in a single server-side query, so enabling the
profile for all of them would redden currently green runs.
03988_cached_read_big_at on Stateless tests (arm_binary, sequential) is the
clearest: its whole body is one SELECT over test.hits_parquet, and its 139 runs
are 139/139 above the cap with a minimum of 320970 ms, so it would fail
deterministically on every PR and every master commit. Rather than weaken or
tag those tests to fit a CI config change, gate the symlink on FAST_TEST, which
has one setter and one caller, so the affected set is closed by construction:
Fast test and Fast test (arm_darwin), nothing else. There the exposure is zero
out of 52201028 OK rows, and structurally so, because the runner already kills a
test file after 60 seconds of wall clock (--timeout 60) and skips the long and
stateful tests entirely, so a per-query cap of the same value cannot fire on a
healthy test. The three guards inside is_fast_build are kept on top of the job
scope, so a future Fast test flavour built with sanitizers, coverage or object
storage still would not get the profile.

Add ci/tests/test_install_sh_fast_limits.py, run by the existing CI Tests job.
Nothing asserted on this symlink before, which is how the dead branch survived
from ClickHouse#98026 until now: reverting the fix passed CI. The test drives the real
install.sh with a stub clickhouse earlier on PATH answering the
system.build_options probes, and asserts on the resulting symlink rather than on
trace text. The shell function under test is not stubbed. Each guard is
separately load-bearing: reverting the call site, dropping the FAST_TEST
condition, and removing any one of the three guards each fails the suite.

Also compare the build kind probe as a string instead of with -eq. The result is
empty when the CXX_FLAGS row is absent, which is reachable because
upgrade_runner.sh runs the install with a previous-release binary on PATH, and
-eq on an empty string makes bash print "integer expression expected" and return
2. That is fail-open by accident rather than by construction, and == is what
install.sh already uses for these same variables.
…test

The stub `clickhouse` matched on query text and re-implemented the
`is_fast_build` predicate in Python, so the SQL that `install.sh` actually
sends was never evaluated. Four wrong versions of that SQL left all ten tests
green: dropping `upper` from the coverage check, reducing it to a row-presence
check, dropping the `-DNDEBUG` conjunct so a debug build looks like a fast
build, and weakening the conjunction to a disjunction. That is the same defect
class this change exists to fix, an assertion that cannot fail, which matters
because the point of the test is to stop the branch going dead again.

The stub now models the `system.build_options` rows instead of the answers: it
rewrites `system.build_options` to a synthetic table built from raw row values
and hands the rest of the query text, unchanged, to a real `clickhouse local`.
The `CI Tests` job already puts a binary on PATH before pytest starts, and a
missing binary fails the tests rather than skipping them, so the suite cannot
go silently vacuous.

The build-kind case is split into separate sanitizer and debug tests, each
driving a real `CXX_FLAGS` string, and the positive cases now assert the
symlink target rather than only that a symlink exists. The mutation matrix
grows from six to eleven; all eleven fail the suite.

`tests/config/install.sh` is unchanged.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
… scheduled

Two review findings on the limits_fast.yaml gate.

The WITH_COVERAGE guard inside is_fast_build failed OPEN: when the probe could
not answer (a binary without that row returns zero rows, so the substitution is
empty) the `if [[ "$x" == "1" ]]` fell through and the predicate proceeded
toward installing the profile. That direction is wrong specifically for
coverage, because the guard exists precisely because coverage flags are applied
per directory and never reach CXX_FLAGS, so the build-kind check cannot
compensate: a coverage build carries -DNDEBUG and no -fsanitize=, would report
"fast", and would get the 60 s cap, which is the regression ClickHouse#98026 reverted
ClickHouse#97823 for. Inverting the probe to `NOT IN ('ON', '1')` and comparing `!= "1"`
makes an unanswerable probe decline, degrading to the previous no-symlink
behaviour. Every answerable state keeps its verdict, verified against a real
server for OFF, ON, on and 1. The test that had asserted the fail-open
direction now asserts the decline, and a new mutation reverts only the
direction so nothing else has to pin it.

The new gate test also could not protect the file it guards. JobConfigs.ci_tests
had digest_config include_paths=["./ci"], which drives both is_affected_by and
calc_job_digest, and cache records are keyed only on (job_name, job_digest). A
later PR editing only tests/config/install.sh therefore left the CI Tests digest
byte-identical and resolved a cached success, so the test would never run -- the
same defect class as the bug this fixes, one level up. Measured: the digest was
identical across a mutation of the gate line before this change and differs
after it, while is_affected_by stays false for unrelated paths.

Also reworded the call-site comment: the runner gives each test file a 60 second
wall-clock budget rather than killing it promptly at 60 seconds, since
clickhouse-test waits on the timeout and kills the process group later.
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review (4 rounds, 22 findings, 18 AGREE / 1 DISAGREE / 3 recorded-only)

Each round is an independent cold review of the resulting code plus a separate second-model pass;
findings are adjudicated against measurements, not prose.

r1 (1 blocker, 2 major, 2 nits)

  • ❌ blocker: the blast-radius measurement rested on a 6 h window from 2026-02 in which four of
    today's heaviest tests did not exist, and which contained no Fast test run at all. Scope was
    narrowed to --fast-test and re-measured on 7 days of current data. No test was tagged,
    weakened or pinned to fit the cap.
  • ⚠️ the affected-job enumeration missed Bugfix validation (functional tests, *); the set is now
    derived from FAST_TEST, which has one setter and one caller, so it is closed by construction.
  • ⚠️ nothing asserted on the symlink, which is how the dead branch survived the original revert.
    ci/tests/test_install_sh_fast_limits.py was added.
  • 💡 two nits: an unsourced timing figure was removed, and -eq on a possibly-empty substitution
    became a string comparison.

r2 (2 major, 5 nits)

  • ⚠️ the first version of the new test matched on query text and re-implemented the predicate in
    Python, so four production mutations left it green. It now rewrites system.build_options into a
    synthetic table and hands the unmodified query text to a real server, so the SQL under test is
    genuinely evaluated.
  • 💡 test docstrings restated the PR narrative; trimmed.

r3 (2 major, 2 nits)

  • ⚠️ the coverage guard failed open: an unanswerable WITH_COVERAGE probe fell through to the
    CXX_FLAGS check, which by construction cannot identify a coverage build, so it would report
    "fast" and re-create the regression that caused the original revert. It now requires an explicit
    non-coverage answer and declines otherwise, which degrades to the pre-change behaviour.
  • ⚠️ the new test could not protect the file it guards: at that point CI Tests digested ./ci
    only, and that same path list drives both changed-file filtering and result caching, so an
    install.sh-only change would have skipped the job. install.sh and limits_fast.yaml were
    added to that digest.
  • 💡 two nits: the call-site comment overstated when the runner kills a timed-out test file, and a
    test count was stale.

r4 (2 major, 4 nits); the second-model pass returned zero findings

  • ⚠️ two description-drift findings, both against this description rather than the code: it did not
    mention ci/defs/job_configs.py at all, though that file is a third of the diff, and it described
    the coverage guard only in the exclude direction, omitting the fail-closed behaviour that two of
    the eleven tests pin. Both are fixed above.
  • 💡 the only DISAGREE of the review: the three storage exclusions inside is_fast_build
    (S3 / azure / encrypted) cannot fire at the sole call site, since the only --fast-test caller
    exports none of those variables. They are kept deliberately: they are the exclusions requested in
    the Revert "ci: fix fast limits" #98026 revert, they defend the predicate's contract if a second caller appears, and one is
    pinned by a test. Recorded rather than removed, and left out of the description to keep it on the
    merge decision.
  • 💡 recorded agreements, no change: the invariant-carrier enumeration was re-derived independently
    and matched (single consumer; both CI coverage builds covered; no other return $(...) construct
    under tests/ or ci/; both sibling predicates already use the correct convention), and the 60 s
    bound was re-measured independently (0 of 53 243 160 passing Fast test rows over 7 days above
    60 s, slowest 57 840 ms). Worth adding that max_execution_time: 60 was unconditionally active
    for every job until Apr 2025, when 9d2563d9a6c2 moved it into limits_fast.yaml, so this
    re-lands a strictly narrower version of a previously global setting.

Validation carried forward: 11 tests, all passing; 12 production mutations, each caught by a named
test.

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. set -x trace of install.sh with a PATH wrapper forcing the system.build_options answer: on origin/master with a fast-build answer the symlink is not created (++ is_fast_build / ++ return 1 / + [[ '' == 1 ]]), matching the trace in any real job log. 100% deterministic - a shell branch either runs or it does not. The same comparison runs in CI as ci/tests/test_install_sh_fast_limits.py.
b Root cause explained? Yes. Shell return sets $? and writes nothing to stdout, but the call site consumed stdout via $(is_fast_build). The substitution is always empty, so [[ '' == 1 ]] is always false and ln -sf .../limits_fast.yaml never ran on any job. The polarity is also inverted for a naive if: the SQL predicate returns 1 for "is a fast build" while return 1 means failure.
c Fix matches root cause? Yes. The two halves are made to agree on one calling convention: is_fast_build stays a predicate (0 = true) and the call site becomes an if. Nothing is widened, disabled or tagged, and no test is edited to accommodate the newly-live profile. The coverage exclusion that the #98026 revert asked for is added inside the predicate, where a caller cannot bypass it. The FAST_TEST condition answers a separate question the original one-line gate never asked - which jobs should get this profile - and is backed by measurement rather than assumption.
d Test intent preserved / new tests added? Yes. No existing test file is modified or weakened; the change restores an intended safety net. ci/tests/test_install_sh_fast_limits.py is new: 11 tests driving the real install.sh (the shell function under test is not stubbed) and asserting on the resulting symlink and its target, run by the existing CI Tests job. Nothing previously asserted on this symlink, which is how the dead branch survived from #98026 until now. The stub supplies the system.build_options rows and forwards the query text to a real clickhouse local, so the SQL predicates are genuinely evaluated rather than modelled. Every guard is proven load-bearing by 12 mutations, all of which fail the suite: reverting the call site, dropping the FAST_TEST condition, removing any one of the three guards, restoring -eq, five SQL mutations (dropping upper, reducing the coverage check to row presence, dropping the -DNDEBUG conjunct, flipping the sanitizer polarity, and weakening the conjunction to a disjunction), and reverting the coverage guard's fail direction. The CI Tests digest also lists tests/config/install.sh, so a later change to the gate schedules the job that runs this test instead of resolving a cached success.
e Both directions demonstrated? Yes. origin/master script + forced fast build + --fast-test = no symlink; this PR + the same forced answer = + ln -sf .../limits_fast.yaml ... and the symlink present. Traces captured for both, plus a direction proving the scope narrowing (without --fast-test the && short-circuits and is_fast_build never runs).
f Fix is general across code paths? Yes. git grep -n is_fast_build returns exactly the definition (install.sh:74) and the single call site, so the convention change cannot affect any other consumer. The coverage check is in the predicate rather than the caller precisely so it also holds for tests/docker_scripts/stress_tests.lib:72, which invokes install.sh without --llvm-coverage. All three callers of tests/config/install.sh were enumerated with the reason each is or is not affected (ci/jobs/fast_test.py:330, ci/jobs/functional_tests.py:771, stress_tests.lib:72); no integration job installs these configs at all. The sibling predicates in the same file were read too: is_sanitizer_build (:225) already uses the correct string-comparison shape, and is_openssl_fips_build (:253) still uses -eq - the same nit, but on a pre-existing line this PR does not touch, so it is left for its own change rather than bundled here.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes. Exercised across build kind as real CXX_FLAGS strings evaluated by a real server rather than as precomputed verdicts (fast -O3 -DNDEBUG, sanitizer -O2 -DNDEBUG -fsanitize=address,undefined, debug -O0 -g with no -DNDEBUG) and coverage as a real WITH_COVERAGE row value, storage environment (S3, Azure, encrypted, none), the exported-versus-set distinction for USE_ENCRYPTED_STORAGE, and the presence or absence of --fast-test. Value tolerance matches the existing in-tree readers: upper(value) NOT IN ('ON', '1') excludes ON/on/1, the same values tests/clickhouse-test:4923-4929 and tests/integration/helpers/cluster.py:5032-5035 already accept, and the lowercase case is pinned by a test. Boundary cases measured and pinned: an absent WITH_COVERAGE row and an absent CXX_FLAGS row both return an empty string, both are handled as strings rather than integers, and both decline - the coverage probe is written so an unanswerable result declines, because CXX_FLAGS cannot identify a coverage build and so cannot compensate for it.
h Backward compatible? (maintainer-approved exception only) Yes, trivially. No setting default changes, no SettingsChangesHistory.cpp entry, no serialization or format change, nothing user-facing. The diff only changes which test config file is symlinked in CI, and only on the Fast test job.
i Invariants and contracts preserved? Yes. Invariant: limits_fast.yaml is installed exactly on jobs where a 60 s per-query cap cannot fire on a healthy test. That is measured, not assumed: on Fast test 0 of 53 243 160 passing rows over 7 days exceed 60 s (slowest 57 840 ms), and structurally cannot, because the runner's own per-file --timeout 60 binds tighter than a per-query limit; on the other jobs is_fast_build accepts it is false, which is why the scope is narrowed. is_fast_build honours the shell predicate contract on every path - the three guards return 1 explicitly and the final string comparison is the function's exit status. set -e safety holds because the function and the && are used only as an if condition, where POSIX suspends set -e, and the early returns are inside the function so they cannot abort the script. Both probes share one fail direction: an unanswerable probe declines, so the predicate degrades to the previous no-symlink behaviour rather than capping a build it could not classify. bash -n clean, including under all twelve mutations.

Session id: cron:clickhouse-review-slot-48:20260729-025400

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

clickhouse-gh Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [bb14a17]

Summary: ✅


AI Review

Summary

This PR fixes the dead is_fast_build call site and scopes limits_fast.yaml to Fast test, but the safety argument for that scope is wrong in the current code. clickhouse-test --timeout 60 is not a hard 60-second file budget, so the newly live max_execution_time: 60 can still be the first limiter to fire. This needs one more pass before merge.

Findings

⚠️ Majors

  • [tests/config/install.sh:289-293] The new gate assumes Fast test already aborts each test case at 60 seconds, so enabling limits_fast.yaml there cannot change the first failure mode. clickhouse-test does not do that: --timeout 60 becomes signal.alarm(int(args.timeout * 1.1) + 60) in tests/clickhouse-test, so a test case gets about 126 seconds before the runner aborts it. Any healthy fast-test query in the 60-126s range will now fail with TIMEOUT_EXCEEDED even though the runner would have kept it alive. Suggested fix: either justify the 60-second server-side cap with proof that tracks per-query runtimes, or set the cap above the runner's real deadline if the intended invariant is "runner fires first."
Tests
  • ⚠️ The current CI run does not provide focused proof that this branch is both live and safe now that ci/tests/test_install_sh_fast_limits.py is gone. A green Fast test run is not sufficient here, because the pre-fix dead branch also left that job green. The smallest convincing proof is either a targeted regression test that observes the symlink or installed setting, or a measurement that directly shows fast-test queries stay below the newly enforced 60-second server-side limit.
Final Verdict

⚠️ Needs changes before merge.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jul 29, 2026
Comment thread ci/tests/test_install_sh_fast_limits.py Outdated
@@ -0,0 +1,266 @@
"""

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.

Please remove this test, it's useless

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.

@groeneai pls

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Removed in bb14a17. The ci_tests digest entries for install.sh and limits_fast.yaml only existed to schedule that test, so they went with it and the PR is now just the install.sh fix. That leaves the gate with no automated coverage; let me know if you want any replacement.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - f51e578

Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Stateless tests (amd_llvm_coverage, ParallelReplicas, s3 storage, parallel) / 01666_merge_tree_max_query_limit the per-table concurrency throttle the test asserts is keyed on query id, and secondary parallel-replicas reads are sent without one, so the holder query competes against itself (3/3 reruns, deterministic) #112385 (ours, open)

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

Reviewer asked to drop ci/tests/test_install_sh_fast_limits.py as not
useful. The ci_tests digest entries for install.sh and limits_fast.yaml
existed only to schedule that test, so they go with it and ci_tests
returns to its master configuration.

The fix itself, the is_fast_build correction and the FAST_TEST scoping of
the limits_fast.yaml symlink in tests/config/install.sh, is unchanged.
Comment thread tests/config/install.sh
Comment on lines +289 to +292
# Only the Fast test job, whose runner already gives each test file a 60 second wall-clock
# budget, so a 60 second per-query limit cannot be the first thing to fire on a healthy
# test there. Other jobs that satisfy is_fast_build run the long tests that Fast test skips.
if [ "$FAST_TEST" == "1" ] && is_fast_build; then

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.

The safety argument for narrowing this to Fast test does not actually hold in code. fast_test.py passes clickhouse-test --timeout 60, but clickhouse-test turns that into signal.alarm(int(args.timeout * 1.1) + 60) (tests/clickhouse-test:4637-4638, option at tests/clickhouse-test:6180-6183), so a test file gets about 126 seconds before the runner aborts it.

Once limits_fast.yaml is linked here, any healthy fast-test query in the 60-126s range will now fail with TIMEOUT_EXCEEDED even though the runner would still have kept the test alive. That means the comment above this if is incorrect, and the new gate is relying on a stale invariant rather than something the code actually enforces.

Please either justify the 60-second server-side cap with evidence that tracks per-query runtimes, or set the cap above the runner's real deadline if the invariant you want is "the runner fires first."

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The 126 second figure is the outer watchdog, not the per-test deadline.

clickhouse-test bounds each test file twice. The inner bound is proc.wait(args.timeout) at tests/clickhouse-test:3516 in run_single_test; process_result_impl then marks the file FAIL / Timeout! because that wait left proc.returncode is None (:3149, :3158, :1297). With --timeout 60 that is 60 seconds per test file, and args.timeout is never reassigned in the file. The signal.alarm(int(args.timeout * 1.1) + 60) you quote (:4630-4631, run_tests_array) wraps test_case.run plus process_result, so it covers that inner wait plus stdout post-processing, _cleanup (up to another 60 seconds, :3822) and the stacktrace dumps. It fires only if the Python side hangs.

A query therefore cannot outlive the file issuing it: the query reaches 60 seconds at file_start + d + 60 with d >= 0, while the wait expires at file_start + 60. The runner fires first, so the profile can only change the reported reason of an already-failing test, never turn a passing one red.

Runtimes agree. Over 30 days of Fast test%, 214M test runs: p99 4.3 s, p999 9.7 s, 488 runs at or above 60 s, 437 of those in the 60-126 s band, and exactly 1 of the 437 is OK (01824_prefer_global_in_and_join, Fast test (arm_darwin), 60060 ms, a boundary race). Bucketed over 50-200 s: 50 s 179/172 OK, 60 s 436/1, 80 s 1/0, 120 s 7/0, 130 s 2/0. Durations pile up against the 60 s wall, not 126 s. Fast test also passes --no-long.

Keeping the cap. The comment's "60 second wall-clock budget" is that proc.wait, so it is accurate as written; happy to reword it to name proc.wait explicitly if that reads better.

@Algunenano
Algunenano added this pull request to the merge queue Jul 31, 2026
Merged via the queue into ClickHouse:master with commit f6f528b Jul 31, 2026
178 checks passed
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 31, 2026
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