Repository navigation
Fix is_arm() to actually detect ARM hosts - #103516
Merged
Merged
Conversation
The previous implementation iterated over the string "arm, aarch" character-by-character, checking each single character against platform.processor().lower(). That never matched real arch names like "aarch64", so is_arm() was effectively dead on arm64 hosts. Switch to platform.machine() which reliably returns "arm64" on macOS Apple Silicon and "aarch64" on Linux arm64. Addresses review: #103248 (comment) Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [e7a1b14] Summary: ✅ AI ReviewSummaryThis PR fixes ClickHouse Rules
Final VerdictStatus: ✅ Approve |
This was referenced Apr 24, 2026
alexey-milovidov
added a commit
that referenced
this pull request
Apr 25, 2026
The arm64 integration runs on PR #103519 (#103519) confirmed that these test modules fail with `no matching manifest for linux/arm64/v8` or `linux/amd64 does not match the detected host platform` because their docker images are not published for arm64: - `test_kerberos_auth/test.py` — `kerberos_kdc` - `test_storage_kerberized_kafka/test.py` — `kafka_kerberos` - `test_mysql57_database_engine/test.py` — `mysql:5.7` - `test_ytsaurus/test_dictionaries.py` — `ytsaurus_backend` - `test_ytsaurus/test_tables.py` — `ytsaurus_backend` Reintroduce a properly-working module-level skip using the now-fixed `is_arm` helper (#103516). Other tests touched by this PR pass on arm64 or are still being stabilised by the broader Kafka-on-arm work, so they remain unskipped.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
is_armhelper intests/integration/helpers/cluster.pywas:("arm, aarch")is a single string, not a tuple, so the generator iterates character-by-character ('a','r','m',',',', ...) and checks each single character againstplatform.processor().lower(). It never matches real arch names likeaarch64, and on many Linux hostsplatform.processor()is empty anyway, sois_armeffectively always returned a meaningless value.Replace with
platform.machine().lower() in ("arm64", "aarch64"), which reliably returnsaarch64on Linux arm64 andarm64on macOS Apple Silicon.Spotted by
clickhouse-gh[bot]while reviewing #103248:#103248 (comment)
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes