[codex] reuse release artifacts for npm staging - #27312
Merged
Merged
Conversation
The release job downloads all workflow artifacts into dist before it stages npm packages. stage_npm_packages.py then creates a fresh cache and downloads the six final target artifacts again. Allow callers to provide an artifact directory and point the release job at dist. Keep the existing temporary cache and download behavior for standalone callers and for any missing artifacts. Run 27242495616 spent 4 minutes 13 seconds redownloading 3.3 GiB during npm staging. Reusing dist is expected to reduce total workflow time by about 4 minutes.
tamird
marked this pull request as ready for review
June 10, 2026 05:01
anp-oai
approved these changes
Jun 10, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The release job already downloads every workflow artifact into
dist,but npm staging creates a new cache and downloads the six target
artifacts again.
Reuse
distas the staging script's artifact cache while preserving theexisting download fallback for missing artifacts and standalone callers.
The script retains ownership of temporary caches but does not delete a
caller-provided directory.
In https://github.com/openai/codex/actions/runs/27242495616, the duplicate
download transferred 3.3 GiB and took 4 minutes 13 seconds. This should
reduce total release time by about 4 minutes.