CI: stabilize Aiter wheel prebuilds#3126
Merged
Merged
Conversation
Lower prebuild concurrency and emit timing summaries so CI can distinguish runner slowdowns from kernel count changes.
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
Apply Black formatting to keep the CI style check green.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Aiter CI wheel prebuild step to reduce build parallelism via a workflow-level knob and to emit a timing summary from the setup.py build logs, aiming to improve prebuild stability and observability in CI.
Changes:
- Introduces a workflow env knob (
AITER_PREBUILD_MAX_JOBS) to reduce wheel build parallelism (MAX_JOBS) from 128 to 64. - Captures setup.py output via
teeand runs a new parser script to print a prebuild timing summary (runner, wall time, kernel count, and per-module compile costs). - Adds
.github/scripts/aiter_prebuild_summary.pyto parse “finish build [...] cost ...” lines and report compilation timings.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/aiter-test.yaml | Adds env knob for MAX_JOBS and runs a new summary pass over prebuild logs during wheel build. |
| .github/scripts/aiter_prebuild_summary.py | New helper script that parses prebuild logs to print a timing/kernel-count summary. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+118
to
+125
| prebuild_start=$(date +%s) && | ||
| set +e && | ||
| python setup.py bdist_wheel 2>&1 | tee /tmp/aiter-prebuild.log | ||
| build_status=${PIPESTATUS[0]} | ||
| set -e | ||
| prebuild_end=$(date +%s) | ||
| if ! python3 .github/scripts/aiter_prebuild_summary.py \ | ||
| --log /tmp/aiter-prebuild.log \ |
Comment on lines
+119
to
+123
| set +e && | ||
| python setup.py bdist_wheel 2>&1 | tee /tmp/aiter-prebuild.log | ||
| build_status=${PIPESTATUS[0]} | ||
| set -e | ||
| prebuild_end=$(date +%s) |
Persist the prebuild log and timing metadata so the summary is easy to find in the Actions UI.
Raise the prebuild MAX_JOBS default to 96 to recover compiler parallelism while keeping it below the previous 128 setting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan