Skip to content

fix(ci): exclude arm64 wheel artifacts from T-One artifact selection - #4613

Merged
TTThanos merged 2 commits into
kvcache-ai:mainfrom
TTThanos:fix/tone-wheel-arch-selection
Oct 13, 2026
Merged

TTThanos merged 2 commits into
kvcache-ai:mainfrom
TTThanos:fix/tone-wheel-arch-selection

Conversation

@TTThanos

Copy link
Copy Markdown
Collaborator

Description

T-One e2e jobs can receive the aarch64 cu13 wheel and then fail at install time with:

ERROR: mooncake_transfer_engine_cuda13-0.0.0.dev0-cp312-cp312-manylinux_2_28_aarch64.whl is not a supported wheel on this platform.

Root cause: integration-test.yml selects the wheel artifact with a substring filter:

select(.name | contains("py312")) | select(.name | contains("mooncake")) | select(.name | contains("cu130")) | .id ... | head -n 1

Since ci.yml now builds both mooncake-wheel-cu130-py312 (x86_64) and mooncake-wheel-cu130-arm64-py312 in the same run, both artifacts match all three substrings ("cu130-arm64" contains "cu130"). head -n 1 then picks whichever artifact was uploaded first (ascending artifact id). When the arm64 job finishes first — or when the x86_64 build-wheel-cu13 job fails and never uploads (e.g. the TENT/manylinux2_28 glibc failure surfaced in #3600) — the T-One job downloads the aarch64 wheel onto x86_64 hosts and pip rejects it.

Fix (2 changes):

  1. .github/workflows/integration-test.yml — add select(.name | contains("arm64") | not) to the artifact filter so only the x86_64 cu130 wheel can be selected by the implicit path (explicit ARTIFACT_NAME / testpypi_version paths unchanged).
  2. scripts/e2e/scripts/common.sh (get_whl) — defense in depth: after extracting the artifact, verify the wheel's platform tag matches uname -m and fail fast with a clear message, instead of letting pip fail later with the cryptic "not a supported wheel on this platform".

Validation

  • jq filter unit-tested against a mock artifact list containing both mooncake-wheel-cu130-arm64-py312 (id first) and mooncake-wheel-cu130-py312: old filter selects the arm64 artifact (bug reproduced), new filter selects the x86_64 one.
  • Arch-guard logic tested: aarch64 wheel on x86_64 host → rejected with explicit error; x86_64 wheel → passes.
  • bash -n and YAML parse pass for both changed files.
  • End-to-end confirmation expected from the T-One run on this PR (run-e2e-ci): the job log should show Found wheel file: ...x86_64.whl and a successful pip install.

Module

  • CI/CD

Type of Change

  • Bug fix

Related

Surfaced by #3600 (the arm64-vs-x86_64 artifact ambiguity predates it, but use-tent: true slowing/failing the x86_64 cu13 build makes the wrong pick deterministic).

The py312/mooncake/cu130 substring filter also matches
mooncake-wheel-cu130-arm64-py312, so head -n 1 could pick the aarch64
artifact when it uploads first. T-One hosts are x86_64, and pip then
fails with 'not a supported wheel on this platform'.
Surface a clear error at download time instead of the cryptic pip
'not a supported wheel on this platform' during install.

@koriyoshi2041 koriyoshi2041 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The artifact selector fix is sound: at this head the only CI artifacts matching mooncake + cu130 + py312 are the x86_64 and arm64 variants, so the added exclusion removes the nondeterminism. One non-blocking scope note on the defense-in-depth guard: get_whl() returns immediately from the WHEEL_DIR branch (after copying the single local wheel), before mooncake_whl_file is set and before the new arch check. WHEEL_DIR is a real supported path used by the self-hosted T-One/ROCm scripts. If the intent is for the helper itself to guarantee host/wheel compatibility on every input path, consider moving the common filename/arch validation after the local-vs-artifact acquisition branches; otherwise it may be worth narrowing the comment/description to downloaded GitHub artifacts. This does not block the primary #4613 fix.

@TTThanos
TTThanos enabled auto-merge (squash) October 13, 2026 09:57
@TTThanos TTThanos self-assigned this Oct 13, 2026

@luketong777 luketong777 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@TTThanos
TTThanos merged commit 958392e into kvcache-ai:main Oct 13, 2026
47 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants