Repository navigation
Drop module-level is_arm skips in integration tests - #103519
Merged
Merged
Conversation
These tests all had `if is_arm(): pytestmark = pytest.mark.skip` at module scope. Because the old `is_arm` helper in `tests/integration/helpers/cluster.py` iterated the string `"arm, aarch"` character-by-character against `platform.processor()`, it returned `False` on Linux arm64 CI runners, so the skip never fired there and the tests have been running on arm64 regardless. Remove the dead skip (and the associated `is_arm` import). If any of these tests turn out to fail on arm64 after all, we can reintroduce a properly-working skip or fix the underlying arm64 incompatibility. Affected modules: - helpers/kafka/common_direct.py - test_format_avro_confluent - test_grpc_protocol - test_keeper_disks - test_kerberos_auth - test_mysql57_database_engine - test_storage_kafka/test_produce_http_interface - test_storage_kerberized_kafka - test_ytsaurus/test_dictionaries - test_ytsaurus/test_tables Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [62849a4] Summary: ✅ AI ReviewSummaryThis PR removes several dead module-level ClickHouse Rules
Final VerdictStatus: ✅ Approve |
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.
The flaky integration test check on the `CH Inc sync` PR fails on `test_kerberos_auth/test.py` and `test_storage_kerberized_kafka/test.py` because both modules are in the private repo's `SKIP_LIST` (filtered out of pytest discovery) but still appear in `changed_test_modules`, triggering the assertion `Test [<file>] not found` in `get_parallel_sequential_tests_to_run`. The PR's net change to these two files was only an explanatory comment; the actual `if is_arm(): pytestmark = pytest.mark.skip` blocks already exist in master and now work correctly thanks to the `is_arm` fix in ClickHouse#103516. Reverting the comment-only modifications keeps the intended skip semantics and unblocks the sync CI. The underlying private CI bug (changed_test_modules should be filtered through SKIP_LIST) is orthogonal and can be addressed separately. CI report: https://github.com/ClickHouse/clickhouse-private/actions/runs/25075829317/job/73468490103 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
1 task
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.
These integration-test modules all had
if is_arm(): pytestmark = pytest.mark.skipat module scope. Theis_armhelper intests/integration/helpers/cluster.pywas buggy (see #103516):any(arch in platform.processor().lower() for arch in ("arm, aarch"))iterates the single string"arm, aarch"character-by-character, and on Linux arm64 runnersplatform.processor()is typically empty, sois_armreturnedFalseon CI. The skip therefore never fired on arm64 CI, and the tests have been running on arm64 runners regardless — meaning (with caveats about how silently-skipped Docker image pulls are reported) the skip is not actually protecting CI.This PR removes the dead skip and the associated
is_armimport from:tests/integration/helpers/kafka/common_direct.pytests/integration/test_format_avro_confluent/test.pytests/integration/test_grpc_protocol/test.pytests/integration/test_keeper_disks/test.pytests/integration/test_kerberos_auth/test.pytests/integration/test_mysql57_database_engine/test.pytests/integration/test_storage_kafka/test_produce_http_interface.pytests/integration/test_storage_kerberized_kafka/test.pytests/integration/test_ytsaurus/test_dictionaries.pytests/integration/test_ytsaurus/test_tables.pyIf the arm64 integration runs reveal that any of these modules genuinely depend on x86-only docker images (kerberos-kdc, ytsaurus-backend, old Confluent tags, MySQL 5.7, etc.) or on gRPC (which is disabled in the arm build), CI will surface that on this PR and we can either fix the underlying incompatibility or reintroduce a properly-working skip.
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
Version info
26.5.1.188