Skip to content

Suppress retryable AWS log noise in tests against the public dataset bucket - #104291

Merged
Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:fix-flaky-public-datasets-tests
May 7, 2026
Merged

Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:fix-flaky-public-datasets-tests

Conversation

@Algunenano

@Algunenano Algunenano commented May 7, 2026 •

Copy link
Copy Markdown
Member

Tests reading from https://clickhouse-public-datasets.s3.*.amazonaws.com/ can flake when AWS returns a transient retryable 5xx mid-stream: the request is retried successfully, but the <Error> line emitted by PocoHTTPClient is captured into *.stderr-fatal via --client_logs_file, and the runner fails the test with having stderror. Worst-affected is 03988_cached_read_big_at, which streams a 14 GiB parquet with max_download_threads = 1.

This raises send_logs_level to fatal for the four tests that read this bucket and have no other guard. Mirrors the existing precedent in 03271_s3_table_function_asterisk_glob.sql and ~130 other stateless tests.

Sample failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=104253&sha=a4ae04d39170c4d2d821aedb448667867bea5497&name_0=PR&name_1=Stateless%20tests%20%28amd_debug%2C%20sequential%29 (PR #104253). Server log shows AWSClient: Response status: 500, Internal Server Error followed by S3ClientRetryStrategy: Attempt 2/501 succeeded with response code 206 and the query returning the correct result; the test still failed because the <Error> line landed in stderr-fatal.

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

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.5.1.413

…bucket

Tests reading from https://clickhouse-public-datasets.s3.*.amazonaws.com/
can flake when AWS returns a transient retryable 5xx mid-stream: the
request is retried successfully, but the <Error> line emitted by
PocoHTTPClient is captured into *.stderr-fatal via --client_logs_file,
and the runner fails the test with "having stderror". Worst-affected is
03988_cached_read_big_at, which streams a 14 GiB parquet with
max_download_threads = 1.

Raise send_logs_level to fatal for the four tests that read this bucket
and have no other guard. Mirrors the precedent in
03271_s3_table_function_asterisk_glob.sql and ~130 other stateless tests.

Sample failure:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=104253&sha=a4ae04d39170c4d2d821aedb448667867bea5497&name_0=PR&name_1=Stateless%20tests%20%28amd_debug%2C%20sequential%29
PR: ClickHouse#104253

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [765fa4c]

Summary: ✅


AI Review

Summary

This PR updates four stateless tests that read from the public S3 dataset bucket to set send_logs_level to fatal, preventing retryable transient AWS 5xx noise from being captured as test-fatal stderr. The change is narrowly scoped to test robustness and is correct.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
No large/binary files ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label May 7, 2026
@alexey-milovidov alexey-milovidov self-assigned this May 7, 2026
@Algunenano
Algunenano added this pull request to the merge queue May 7, 2026
Merged via the queue into ClickHouse:master with commit 0a1a05b May 7, 2026
165 checks passed
@Algunenano
Algunenano deleted the fix-flaky-public-datasets-tests branch May 7, 2026 15:49
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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