Repository navigation
fix(ci): exclude arm64 wheel artifacts from T-One artifact selection - #4613
Conversation
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
left a comment
There was a problem hiding this comment.
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.
Description
T-One e2e jobs can receive the aarch64 cu13 wheel and then fail at install time with:
Root cause:
integration-test.ymlselects the wheel artifact with a substring filter:Since ci.yml now builds both
mooncake-wheel-cu130-py312(x86_64) andmooncake-wheel-cu130-arm64-py312in the same run, both artifacts match all three substrings ("cu130-arm64" contains "cu130").head -n 1then picks whichever artifact was uploaded first (ascending artifact id). When the arm64 job finishes first — or when the x86_64build-wheel-cu13job 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):
.github/workflows/integration-test.yml— addselect(.name | contains("arm64") | not)to the artifact filter so only the x86_64 cu130 wheel can be selected by the implicit path (explicitARTIFACT_NAME/testpypi_versionpaths unchanged).scripts/e2e/scripts/common.sh(get_whl) — defense in depth: after extracting the artifact, verify the wheel's platform tag matchesuname -mand fail fast with a clear message, instead of letting pip fail later with the cryptic "not a supported wheel on this platform".Validation
mooncake-wheel-cu130-arm64-py312(id first) andmooncake-wheel-cu130-py312: old filter selects the arm64 artifact (bug reproduced), new filter selects the x86_64 one.bash -nand YAML parse pass for both changed files.run-e2e-ci): the job log should showFound wheel file: ...x86_64.whland a successful pip install.Module
Type of Change
Related
Surfaced by #3600 (the arm64-vs-x86_64 artifact ambiguity predates it, but
use-tent: trueslowing/failing the x86_64 cu13 build makes the wrong pick deterministic).