Skip to content

Do not run 01304_direct_io_long under ASan - #124328

Merged
alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
groeneai:fix-01304-direct-io-long-no-asan
Oct 7, 2026
Merged

alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
groeneai:fix-01304-direct-io-long-no-asan

Conversation

@groeneai

@groeneai groeneai commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #92063
Related: #92064
Related: #124151

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):

01304_direct_io_long no longer runs in the ASan stateless test jobs, as intended by #92064.

Description

01304_direct_io_long hit its own 300 s max_execution_time on the 50M-row INSERT in Stateless tests (amd_asan_ubsan, distributed plan, parallel) on the 26.8 backport #124151 (Code: 159 ... Timeout exceeded: elapsed 306079.545 ms, maximum: 300000.000 ms).

#92064 meant to stop running this test under ASan, but it added only the explanation comment (# - no-asan - It is slow under ASan and may lead to query timeouts), not the tag. tests/clickhouse-test skips a test only on its # Tags: line, so the test still runs on ASan. On this lane, over the last 14 days on master, the whole test took p95 282 s and max 349 s, while its first client call (the INSERT and OPTIMIZE) has a 300 s limit; on amd_debug it stays at p95 ~60 s.

This PR adds no-asan to the # Tags: line, so the ASan stateless jobs skip it. Stress jobs ignore no-<build> tags by design (tests/clickhouse-test) and keep running it. The test still runs unchanged on debug, release and ARM lanes, and direct IO under ASan stays covered by other tests and by the runner's randomized min_bytes_to_use_direct_io.

Validation, local, master ASan and debug builds: with the new line the runner reports [ SKIPPED ] ... Reason: not running for current build on ASan; with the old line it runs the test; on debug it passes 4/4 with randomized settings.


Workflow [PR]
Sync PR [sync-upstream/pr/124328]

Version info

  • Merged into: 26.10.1.1786-master (included in 26.10 and later)

ClickHouse#92064 meant to exclude this test from ASan builds and added the
explanation comment for `no-asan`, but not the tag itself, so the
runner (which skips only on the `# Tags:` line) kept running it there.

On `Stateless tests (amd_asan_ubsan, distributed plan, parallel)` the
whole test now takes p95 282 s / max 349 s on master (14 days), while
its first client call (50M-row INSERT + OPTIMIZE FINAL) has a 300 s
`max_execution_time`; it timed out on the 26.8 backport ClickHouse#124151.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-request PR origin: a maintainer pinged or directed groeneai labels Oct 6, 2026
@groeneai

groeneai commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator Author
Internal second-model review (click to expand)

Independent review of 52ab137b10631 (own cold review + Gate B, codex): 0 findings (no ❌ blockers, no ⚠️ majors, no 💡 nits).

Checked: the runner's tag parser and no-<build_flag> skip path, ASan detection from CXX_FLAGS, every sanitizer lane in ci/defs/job_configs.py, and that the test keeps running on amd_debug, amd_release and arm_release.

@clickhouse-gh

clickhouse-gh Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [52ab137]

Summary: ✅


AI Review

Summary

This PR adds no-asan to 01304_direct_io_long.sh so the regular functional-test lanes skip a test that is too slow under ASan. That fixes the reported stateless lane, but it does not satisfy the broader "do not run under ASan" contract because the stress harness explicitly ignores no-{build} tags and still has ASan stress jobs.

Findings

⚠️ Majors

  • [tests/queries/0_stateless/01304_direct_io_long.sh:2] no-asan is only honored on the regular functional-test path. clickhouse-test --stress-tests explicitly bypasses no-{build} tags in tests/clickhouse-test:3443, and CI still runs ASan stress jobs in ci/defs/job_configs.py:1208. Because tests/docker_scripts/stress_runner.sh:338 launches stress mode without an explicit skip for this test, the local-storage ASan stress lanes can still execute 01304_direct_io_long.sh, so the PR does not actually stop the test from running under ASan.
    Suggested fix: add an explicit stress-job exclusion for this test (or otherwise make stress mode honor this particular ASan skip); if the intent is only to fix the regular stateless lane, narrow the PR title/body accordingly.
Final Verdict
  • Status: ⚠️ Request changes
  • Minimum required action: either exclude 01304_direct_io_long from ASan stress jobs as well, or narrow the PR contract so it no longer claims the test is disabled on ASan generally.

@alexey-milovidov alexey-milovidov self-assigned this Oct 7, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Oct 7, 2026
Merged via the queue into ClickHouse:master with commit df54ea9 Oct 7, 2026
149 checks passed
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 7, 2026
@clickhouse-gh clickhouse-gh Bot added comp-io IO library: ReadBuffer / WriteBuffer and their implementations over files and memory, read and wr... and removed comp-testing Test content only (no production code). labels Nov 22, 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 comp-io IO library: ReadBuffer / WriteBuffer and their implementations over files and memory, read and wr... groeneai-origin-request PR origin: a maintainer pinged or directed groeneai 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