Skip to content

refactor(ci): drop full setup-env from prepare-release open-pr job - #1090

Merged
c-vigo merged 3 commits into
release/1.2.0from
feature/1079-slim-open-pr
Jul 14, 2026
Merged

c-vigo merged 3 commits into
release/1.2.0from
feature/1079-slim-open-pr

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Implements #1079 (review follow-up from #1068).

The open-pr job no longer runs the setup-env composite (Nix + uv sync) — audit showed its only consumer was the uv run retry wrapper around gh pr create. Now: bare shallow checkout (fetch-depth: 0 also dropped — no history use), gh from the runner image, and retries via source .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-pr is architecturally different (runs in the consumer's devkit container where retry comes 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.py 14 passed); full just precommit green. Runtime path exercises at the next prepare-release run. Changelog under ## [1.2.0] - TBD ### Changed, root + mirror.

Refs: #1079

c-vigo added 3 commits July 14, 2026 19:45
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
@c-vigo
c-vigo merged commit ce5cdee into release/1.2.0 Jul 14, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/1079-slim-open-pr branch July 14, 2026 18:23
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.

1 participant