Skip to content

Conversation

@gyohuangxin
Copy link
Member

No description provided.

@gyohuangxin gyohuangxin changed the title CI: parallel build Aiter whl packages for Python 3.10 and 3.12 using matrix strategy CI: parallel build Aiter whl packages for Python 3.10 and 3.12 Oct 16, 2025
@gyohuangxin gyohuangxin marked this pull request as ready for review October 17, 2025 02:18
Copilot AI review requested due to automatic review settings October 17, 2025 02:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the Aiter release workflow to support parallel building of wheel packages for multiple Python versions (3.10 and 3.12). The workflow now uses a matrix strategy to build packages concurrently, with configurable inputs to selectively enable/disable builds for each Python version.

Key Changes:

  • Introduced a matrix build strategy supporting Python 3.10 and 3.12 with version-specific Docker images
  • Added workflow inputs (build_py310, build_py312) to control which Python versions to build
  • Updated container naming and artifact uploads to include Python version identifiers

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +36 to +39
build_enabled: ${{ github.event.inputs.build_py310 == 'true' || github.event.inputs.build_py310 == true }}
- python_version: "3.12"
docker_image: "rocm/pytorch:rocm7.0.2_ubuntu24.04_py3.12_pytorch_release_2.8.0"
build_enabled: ${{ github.event.inputs.build_py312 == 'true' || github.event.inputs.build_py312 == true }}
Copy link

Copilot AI Oct 17, 2025

Choose a reason for hiding this comment

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

The build_enabled expression will always evaluate to true for pull_request events because github.event.inputs will be null. This causes the skip logic in step 46-50 to fail. Consider defaulting to true when inputs are not present: ${{ github.event.inputs.build_py312 != 'false' && github.event.inputs.build_py312 != false }}

Suggested change
build_enabled: ${{ github.event.inputs.build_py310 == 'true' || github.event.inputs.build_py310 == true }}
- python_version: "3.12"
docker_image: "rocm/pytorch:rocm7.0.2_ubuntu24.04_py3.12_pytorch_release_2.8.0"
build_enabled: ${{ github.event.inputs.build_py312 == 'true' || github.event.inputs.build_py312 == true }}
build_enabled: ${{ github.event.inputs.build_py310 != 'false' && github.event.inputs.build_py310 != false }}
- python_version: "3.12"
docker_image: "rocm/pytorch:rocm7.0.2_ubuntu24.04_py3.12_pytorch_release_2.8.0"
build_enabled: ${{ github.event.inputs.build_py312 != 'false' && github.event.inputs.build_py312 != false }}

Copilot uses AI. Check for mistakes.
Comment on lines 46 to 50
- name: Check if build is enabled for this Python version
if: ${{ !matrix.build_enabled }}
run: |
echo "Build for Python ${{ matrix.python_version }} is disabled. Skipping job."
exit 0
Copy link

Copilot AI Oct 17, 2025

Choose a reason for hiding this comment

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

[nitpick] This skip step is unnecessary. When a matrix job should be skipped, use a conditional on the entire job instead: add if: matrix.build_enabled at the job level (line 28) and remove the individual step conditionals. This is cleaner and prevents the job from running at all when disabled.

Copilot uses AI. Check for mistakes.
@gyohuangxin gyohuangxin force-pushed the aiter_release_ci_py3.12 branch from 10c19d8 to b0f6a79 Compare October 17, 2025 02:29
@gyohuangxin gyohuangxin requested a review from Copilot October 17, 2025 02:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gyohuangxin gyohuangxin merged commit 9d14dc3 into main Oct 17, 2025
11 of 13 checks passed
@gyohuangxin gyohuangxin deleted the aiter_release_ci_py3.12 branch October 17, 2025 02:41
eliotwang pushed a commit to eliotwang/aiter that referenced this pull request Oct 21, 2025
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