Repository navigation
Conversation
13 tasks
neriousy
added this pull request to stack #56077
October 16, 2026 13:20
neriousy
force-pushed
the
publish-setup-trims
branch
from
October 16, 2026 16:08
5bcc04e to
190c874
Compare
The version job no longer clones the full history or installs the opencode CLI, and stops passing OPENCODE_API_KEY: script/version.ts stopped generating the changelog, so it only needs the checked-out branch name. The publish job sets up Docker, the AUR apt packages, the AUR SSH key and the release git identity only when a release is published, since Docker, AUR, Homebrew and the release commits only run then.
neriousy
force-pushed
the
publish-setup-trims
branch
from
October 16, 2026 16:21
190c874 to
509dd7e
Compare
This branch has not been deployed
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.
Stacked on #56073 (
desktop-package-retry) ("chore(ci): retry desktop packaging once after a transient failure"). Below that are #56072 (desktop-early-start), #56071 (desktop-release-files), #56070 (cli-target-jobs) and #55987 (release-runner-moves). Only the last commit belongs to this PR. It does not depend on the PRs below it: the commit also cherry-picks cleanly ontoorigin/dev(d889cb2).Summary
Dev pushes stop paying for setup that only releases use. Releases keep all of it.
versionjob: shallow checkout (dropsfetch-depth: 0, which fetched about 560 MiB of history and tags); dropsInstall OpenCodeandOPENCODE_API_KEY. All three served the changelog, removed in feat(release): isolate v2 stable publishing #48546.publishjob:Login to GitHub Container Registry,Set up QEMU,Set up Docker Buildx,Cache apt packages (AUR)andSetup SSH for AURnow run onlyif: needs.version.outputs.release.Script.release(the same flag) gates everything that uses them: the Docker push, AUR, Homebrew and the commits using the identitySetup SSH for AURsets.Expected effect
Estimates from step timestamps of dev pushes 38814116264 and 38856436871. Nothing has run with this change yet.
versionsaving (full vs depth-1 checkout, inferred)publishsaving (five steps plus post steps)Install OpenCodewas already skipped on dev; on releases it took 2 s.Failed to save: "/usr/bin/tar"warning. The AUR apt cache never saves or restores.Evidence
versionjobs 116694365421, 116832907980;publishjobs 116699353595, 116835502384.publishlogs show"release": falseand no docker, ssh, AUR, Homebrew, commit or push output. A grep of every scriptscript/publish.tsruns finds git, ssh and docker commands only behindScript.release. Without the SSH step, the git identity stays the app bot's.versionworks on a depth-1 checkout.git branch --show-currentstill works (beta run 38847224136, job 116800425738, resolves"channel": "beta"with--depth=1). A scratch depth-1 repo with the workflow's env gave the expected dev, beta andOPENCODE_BUMP=patch(2.0.31) outputs.prettier --checkandbun run lint:changedpass.Things to know
origin/devmerges intoorigin/beta(2fbdff9) cleanly today. This commit adds 5 conflict regions inpublish.yml(7 to 12 on top of the stack), unavoidable because beta changed the same lines (chore(ci): speed up the beta desktop publish #55919):versioncheckout: keep beta'sif: env.BETA != 'true'and drop thewith.if: needs.version.outputs.release && github.ref_name != 'beta'. Keep both comments above the login step, or merge them into one covering both conditions.Beta versionstep always outputsrelease=true, soreleasealone would bring the setup back on every beta push.Install OpenCodeandOPENCODE_API_KEYremoval merges cleanly.publish.yml. Thebetacondition is not added on dev, because a release dispatched frombetawith dev's file publishes onlatestand needs this setup.versionstill creates an unused app token (about 1 s) and runssetup-bun(9 to 19 s); the AUR apt cache still costs about 0.5 s and a warning on releases.Verification
publish.ymlcannot run on a PR. On the first dev push after merge, check:version: checkout log showsfetch --no-tags ... --depth=1; noInstall OpenCodestep; the loggedopencode scriptJSON shows"channel": "dev"and"version": "0.0.0-dev-<run number>"; downstream jobs get the sameOPENCODE_VERSION.publish: the five setup steps show as skipped,@devpackages publish as before, and theFailed to savewarning is gone.versionandpublishare each about 11 to 20 s shorter than in 38814116264 and 38856436871.On the first release dispatch, check that the five steps run,
versioncomputes the bumped version, and the Docker push, AUR, Homebrew and release commits succeed as in 38785024495.Rollback: revert this commit.