Skip to content

Fix arm_tidy build - #106609

Merged
davenger merged 1 commit into
masterfrom
davenger-patch-1
Jun 6, 2026
Merged

davenger merged 1 commit into
masterfrom
davenger-patch-1

Conversation

@davenger

@davenger davenger commented Jun 5, 2026 •

Copy link
Copy Markdown
Member

https://s3.amazonaws.com/clickhouse-test-reports/PRs/106020/dcf1fe52292ff9a3425075ba79ee36b2b8767d73/build_arm_tidy/build_clickhouse/build_clickhouse.log

/ClickHouse/src/Storages/ObjectStorage/DataLakes/Iceberg/Mutations.cpp:731:13: error: variable 'last_version' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors]
  731 |         int last_version;
      |             ^           
      |                          = 0
/ClickHouse/src/Storages/ObjectStorage/DataLakes/Iceberg/Mutations.cpp:733:27: error: variable 'compression_method' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors]
  733 |         CompressionMethod compression_method;
      |    

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Version info

  • Merged into: 26.6.1.440

@clickhouse-gh

clickhouse-gh Bot commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [1c0b3c1]

Summary: ✅


AI Review

Summary

This PR initializes last_version and compression_method in the Iceberg alter retry loop to satisfy the arm_tidy uninitialized-variable check. Both values are still overwritten by getLatestOrExplicitMetadataFileAndVersion on every path that reaches FileNamesGenerator, and error paths exit before use, so I do not see a runtime behavior change or a code-review blocker.

Missing context / blind spots
  • ⚠️ Current PR CI still has Build (arm_tidy), Code Review, and Fast test pending; a passing Build (arm_tidy) check would close the CI-only proof gap.
Final Verdict

Status: ✅ Approve

No review changes required.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jun 5, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.40% 84.40% +0.00%
Functions 92.30% 92.30% +0.00%
Branches 77.00% 77.00% +0.00%

Changed lines: Changed C/C++ lines covered by tests: 6/6 (100.00%) | Lost baseline coverage: none · Uncovered code

Full report · Diff report

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.

2 participants