Repository navigation
ci: fix fast limits - #97823
Merged
Merged
ci: fix fast limits#97823
Conversation
Contributor
- fix check, previous never enables them (due to `set -e`) - disable them for tests over object storage or encrypted disks, since MinIO and others can be slow [1] [1]: https://github.com/ClickHouse/ClickHouse/pull/75040/changes#r2844883336
azat
force-pushed
the
tests/limits_fast
branch
from
February 24, 2026 10:22
d614443 to
598f554
Compare
tiandiwonder
approved these changes
Feb 25, 2026
pull Bot
pushed a commit
to sowelswl/ClickHouse
that referenced
this pull request
Jul 31, 2026
…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.
pull Bot
pushed a commit
to sowelswl/ClickHouse
that referenced
this pull request
Jul 31, 2026
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
set -e)Changelog category (leave one):
Fixes: #75040 (cc @alexey-milovidov )
Version info
26.3.1.51