Skip to content

Fix flaky test 04813_gcd_codec_hash_signedness with small index_granularity_bytes - #128024

Merged
alexey-milovidov merged 3 commits into
masterfrom
fix-flaky-04813-gcd-codec-granularity-bytes
Oct 30, 2026
Merged

alexey-milovidov merged 3 commits into
masterfrom
fix-flaky-04813-gcd-codec-granularity-bytes

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

The test compares the compressed size of a Compact part holding two CODEC(GCD, ZSTD) columns against the sum of single-column parts. With a small randomized index_granularity_bytes (e.g. 4497), adaptive granularity gives the combined table (16 bytes per row) granules with half as many rows as the single-column tables, so its compressed blocks are smaller, compress worse, and exceed the 5% bound. The CI diagnosis confirmed --index_granularity_bytes 4497 alone reproduces it (175/175 runs), and it reproduces locally. Pin index_granularity_bytes to the default in all three tables; checked locally with index_granularity from 1 to 30000.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125952&sha=d0a72c3189ee40f5727ba0189b3f36597b852544&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20AsyncInsert%2C%20s3%20storage%2C%20parallel%29
Related: #125952

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

...

🤖 Generated with Claude Code


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

Version info

  • Merged into: 26.11.1.903-master (included in 26.11 and later)

…anularity_bytes`

With a small randomized `index_granularity_bytes` (e.g. 4497), adaptive
granularity gives the combined two-column table granules with half as many
rows as the single-column tables, so its compressed blocks are smaller and
compress worse, and the 5% size bound is exceeded. Pin
`index_granularity_bytes` to the default in all three tables.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125952&sha=d0a72c3189ee40f5727ba0189b3f36597b852544&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20AsyncInsert%2C%20s3%20storage%2C%20parallel%29
PR: #125952

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [fd0993a]

Summary: ✅


AI Review

Summary

PR #128024 stabilizes 04813_gcd_codec_hash_signedness by setting index_granularity_bytes = '10Mi' on all three fixture tables. This removes the adaptive-granularity bias in the compressed-size comparison while preserving the existing assertions. No actionable findings.

Missing context / blind spots
  • ⚠️ Head-commit stateless checks are still pending or running, and the queried flaky-check report contains no test results yet. No local ClickHouse binary is available for an independent rerun; completed CI results would close this verification gap. The original CI diagnosis and the PR's reported local validation support the targeted fix.
Final Verdict

Status: ✅ Approve. No code changes requested; final test execution remains with CI.

@clickhouse-gh clickhouse-gh Bot added pr-ci comp-testing Test content only (no production code). labels Oct 28, 2026

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

LGTM

@alexey-milovidov alexey-milovidov self-assigned this Oct 30, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Oct 30, 2026
Merged via the queue into master with commit 9efc32d Oct 30, 2026
180 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-flaky-04813-gcd-codec-granularity-bytes branch October 30, 2026 07:58
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 30, 2026
@clickhouse-gh clickhouse-gh Bot added comp-codecs Compression/encoding codecs (LZ4/ZSTD/etc.), archive formats (tar/zip/7z), codec selection and IO... 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

comp-codecs Compression/encoding codecs (LZ4/ZSTD/etc.), archive formats (tar/zip/7z), codec selection and IO... 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.

2 participants