Skip to content

ci: fix fast limits - #97823

Merged
azat merged 1 commit into
ClickHouse:masterfrom
azat:tests/limits_fast
Feb 25, 2026
Merged

azat merged 1 commit into
ClickHouse:masterfrom
azat:tests/limits_fast

Conversation

@azat

@azat azat commented Feb 24, 2026 •

Copy link
Copy Markdown
Member
  • 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

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Fixes: #75040 (cc @alexey-milovidov )

Version info

  • Merged into: 26.3.1.51

@azat azat mentioned this pull request Feb 24, 2026
7 tasks
@clickhouse-gh

clickhouse-gh Bot commented Feb 24, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [598f554]

Summary: ✅

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Feb 24, 2026
- 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
azat force-pushed the tests/limits_fast branch from d614443 to 598f554 Compare February 24, 2026 10:22
@tiandiwonder tiandiwonder self-assigned this Feb 25, 2026
@azat
azat added this pull request to the merge queue Feb 25, 2026
Merged via the queue into ClickHouse:master with commit addb768 Feb 25, 2026
144 checks passed
@azat
azat deleted the tests/limits_fast branch February 25, 2026 23:26
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog 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