Repository navigation
refactor(ci): drop full setup-env from prepare-release open-pr job - #1090
Merged
Merged
Conversation
The open-pr job's only real work is gh pr create (gh is preinstalled on GitHub-hosted runners), yet it stands up the full setup-env composite (Nix + uv sync) on the release critical path just to reach the uv run retry wrapper. Pin the slim shape first: no local composite actions and no uv run in the job, with retries still present via the canonical bash helper. Refs: #1079
The open-pr job only runs gh pr create, which needs no toolchain: gh is preinstalled on GitHub-hosted runners and the retry semantics move from the uv run retry wrapper to sourcing the canonical bash retry() helper (.github/scripts/retry.sh) from the checkout. Use a bare shallow checkout (no fetch-depth: 0, no Nix + uv sync), removing minutes of environment setup from the release critical path. Refs: #1079
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.
Implements #1079 (review follow-up from #1068).
The
open-prjob no longer runs thesetup-envcomposite (Nix + uv sync) — audit showed its only consumer was theuv run retrywrapper aroundgh pr create. Now: bare shallow checkout (fetch-depth: 0also dropped — no history use),ghfrom the runner image, and retries viasource .github/scripts/retry.sh(the canonical bash helper with identical flags:--retries 3 --backoff 5 --max-backoff 60). Cuts minutes of Nix/uv setup from the release critical path.Scope note: devkit's workflow only. The scaffolded twin's
open-pris architecturally different (runs in the consumer's devkit container whereretrycomes from the toolchain) — slimming it would be a separate issue. The new shape test (test_devkit_open_pr_needs_no_toolchain) is scoped to the devkit copy.TDD: RED → GREEN (
test_workflow_prepare_extension.py14 passed); fulljust precommitgreen. Runtime path exercises at the next prepare-release run. Changelog under## [1.2.0] - TBD### Changed, root + mirror.Refs: #1079