Skip to content

Drop module-level is_arm skips in integration tests - #103519

Merged
alexey-milovidov merged 9 commits into
masterfrom
remove-is-arm-module-skips
Apr 30, 2026
Merged

alexey-milovidov merged 9 commits into
masterfrom
remove-is-arm-module-skips

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Apr 24, 2026 •

Copy link
Copy Markdown
Member

These integration-test modules all had if is_arm(): pytestmark = pytest.mark.skip at module scope. The is_arm helper in tests/integration/helpers/cluster.py was 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 runners platform.processor() is typically empty, so is_arm returned False on 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_arm import from:

  • tests/integration/helpers/kafka/common_direct.py
  • tests/integration/test_format_avro_confluent/test.py
  • tests/integration/test_grpc_protocol/test.py
  • tests/integration/test_keeper_disks/test.py
  • tests/integration/test_kerberos_auth/test.py
  • tests/integration/test_mysql57_database_engine/test.py
  • tests/integration/test_storage_kafka/test_produce_http_interface.py
  • tests/integration/test_storage_kerberized_kafka/test.py
  • tests/integration/test_ytsaurus/test_dictionaries.py
  • tests/integration/test_ytsaurus/test_tables.py

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

  • 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.188

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]>
@clickhouse-gh

clickhouse-gh Bot commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [62849a4]

Summary: ✅


AI Review

Summary

This PR removes several dead module-level is_arm skips from integration tests and keeps explicit skips only where Docker images are truly amd64-only. I did not find correctness, safety, or rollout issues in the changed code.

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 Apr 24, 2026
alexey-milovidov and others added 8 commits April 25, 2026 21:43
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]>
@alexey-milovidov alexey-milovidov self-assigned this Apr 30, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Apr 30, 2026
Merged via the queue into master with commit 21926bd Apr 30, 2026
165 checks passed
@alexey-milovidov
alexey-milovidov deleted the remove-is-arm-module-skips branch April 30, 2026 05:06
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 30, 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.

2 participants