Skip to content

[Bugfix] Fix py3.10 wheel build broken by pandas==3.0.3 pin (#4091) - #4106

Merged
gyohuangxin merged 1 commit into
ROCm:mainfrom
yhl-amd:security/pin-python-deps-py310-fix
Jul 6, 2026
Merged

gyohuangxin merged 1 commit into
ROCm:mainfrom
yhl-amd:security/pin-python-deps-py310-fix

Conversation

@yhl-amd

@yhl-amd yhl-amd commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Hotfix for main. #4091 pinned pandas==3.0.3 (the version shipped by rocm/atom-dev:latest, which is Python 3.12), but the py3.10 wheel-build container cannot install it — pandas 3.0 requires Python >= 3.11. So build_aiter_wheels (3.10, rocm/pytorch:...py3.10..., true) now fails on main:

ERROR: Ignored the following versions that require a different python version: ... 3.0.3 Requires-Python >=3.11
ERROR: No matching distribution found for pandas==3.0.3

(#4091's own checks passed because the py3.10 matrix leg on a PR only runs the prebuild=false no-op build; the real py3.10 build runs on push to main.)

Fix

Use an environment marker so each interpreter pins to a compatible version:

pandas==3.0.3; python_version >= "3.11"   # py3.12 baseline (atom-dev:latest)
pandas==2.3.3; python_version <  "3.11"   # latest pandas supporting py3.10

All other pins are already compatible with the full supported Python range.

Test plan

  • pip install --dry-run -r requirements.txt in python:3.10-slim → resolves pandas==2.3.3 + all others, no error
  • pip install --dry-run -r requirements.txt in rocm/atom-dev:latest (py3.12) → pandas==3.0.3, everything already satisfied
  • CI build_aiter_wheels (3.10, ..., true) green on merge

ROCm#4091 pinned pandas==3.0.3 (the version in rocm/atom-dev:latest, py3.12),
but the py3.10 wheel build container cannot install it — pandas 3.0
requires Python >=3.11 — so `build_aiter_wheels (3.10, ...)` on main
fails with "No matching distribution found for pandas==3.0.3".

The PR's own checks did not catch this: the py3.10 build only runs the
prebuild=false (no-op) matrix leg, while the real py3.10 build runs on
push to main.

Use an environment marker so each interpreter gets a compatible pinned
version:

  pandas==3.0.3; python_version >= "3.11"   # py3.12 baseline (atom-dev)
  pandas==2.3.3; python_version <  "3.11"   # latest pandas supporting py3.10

Verified with `pip install --dry-run -r requirements.txt`:
  - python:3.10-slim -> resolves pandas 2.3.3 + all others, no error
  - rocm/atom-dev:latest (py3.12) -> pandas 3.0.3, all already satisfied

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: yihonglie <[email protected]>
@yhl-amd
yhl-amd requested a review from a team July 6, 2026 15:23
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 4106 --add-label <label>

@gyohuangxin
gyohuangxin merged commit 72f7d79 into ROCm:main Jul 6, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants