Repository navigation
Publish MaxText to PyPI when Airflow E2E tests succeed - #3994
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
SurbhiJainUSC
force-pushed
the
pypi_release
branch
5 times, most recently
from
May 30, 2026 00:30
95a5db1 to
4396eda
Compare
SurbhiJainUSC
force-pushed
the
pypi_release
branch
22 times, most recently
from
June 22, 2026 22:12
3368358 to
9f4e2b3
Compare
SurbhiJainUSC
force-pushed
the
pypi_release
branch
from
June 22, 2026 23:37
9f4e2b3 to
0adbeb6
Compare
SurbhiJainUSC
marked this pull request as ready for review
June 24, 2026 00:00
SurbhiJainUSC
requested review from
bvandermoon,
darisoy,
gobbleturk,
khatwanimohit,
parambole,
richjames0 and
shralex
as code owners
June 24, 2026 00:00
YixuanWang-99
approved these changes
Jun 24, 2026
igorts-git
approved these changes
Jun 24, 2026
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.
Description
This PR refactors the MaxText release and CI workflows to automate the E2E release lifecycle. The goal is to connect the GitHub-based build process with the Airflow-based E2E test suite, ensuring that MaxText is only published to PyPI after successful verification.
Key Technical Changes
E2E Automation and Gated Publishing
release_pipeline.ymlto trigger themaxtext_e2e_testsDAG via therun_e2e_tests.ymlworkflow after successful building of package and Docker images.pypi_release.ymlto trigger via arepository_dispatchevent (airflow-dag-complete). This ensures that PyPI publication and final image promotion only occur once the Airflow-based E2E suite reports success.tag_docker_imagejob to promote release-candidate images to PyPI version tag only after the full validation suite passes.Infrastructure Fixes
SHA Pinning: Introduced a
get_maxtext_shajob at the start of the release pipeline to translate a release tag into a Git SHA. This SHA is then propagated to all downstream build and test jobs.Improved Build Logic: Updated
build_package.ymlandci_pipeline.ymlto support amaxtext_shainput, allowing the caller to define the exact code commit to build.Documentation Builds: Updated the documentation analysis logic to always force a build for non-PR events, ensuring docs are verified by the release pipeline.
Tests
pypi_release.ymlto verify that the candidate docker images are tagged correctly.Checklist
Before submitting this PR, please make sure (put X in square brackets):
gemini-reviewlabel.