GeezerVison is showing github.com — chore(ci): resume WinGet submission by neriousy · Pull Request #62414 · anomalyco/opencode
Conversation
neriousy
commented
Nov 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Resumes submitting the WinGet manifests to microsoft/winget-pkgs, paused in #56262 until the packages were accepted. Both are in now: Anomaly.OpenCode and Anomaly.OpenCode.Desktop 2.0.29 were merged (microsoft/winget-pkgs#452561, microsoft/winget-pkgs#452562).
The commented-out call in script/publish.ts went away with #59046, along with script/publish-winget.ts, so this ports the submission to the new release pipeline instead of uncommenting it:
- New
.github/release/publish-winget.sh reads the manifests render-winget.sh already writes and opens one pull request per package from the WINGET_GITHUB_TOKEN owner's fork. It behaves like the old submit(): it skips versions already in winget-pkgs or with an existing PR, and reuses the branch left by a retried release. It syncs the fork with upstream first: GitHub rejects a tree based on upstream master when the fork is behind (HTTP 422 "base_tree is not a valid tree oid").
- Only stable (
latest) releases that are not dry runs submit. Beta and dev releases skip the Submit step, and dry runs render and upload the manifests and skip without fetching the token.
publish-winget waits for publish-cli and publish-desktop, so the manifests only point at installers that are already published.
- The token comes from AWS Secrets Manager, like the other release secrets since ci: read deploy and release secrets from aws secrets manager #62954: the job assumes
github/opencode-release (stable, non-dry runs only, same condition as tag) and the Submit step reads opencode/release/WINGET_GITHUB_TOKEN through with-secrets.sh.
- The Submit step is
continue-on-error, so a WinGet rejection does not fail the release, which matches the old nothrow warning.
Before merging:
Until the secret exists, the Submit step fails visibly on stable releases but the release still succeeds.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found one ordering problem worth fixing before merge; apart from that, the port works and matches the old submit().
I ran publish-winget.sh on the manifests render-winget.sh writes, with a stubbed gh. Beta releases and dry runs are skipped. A missing token exits with an error, which continue-on-error absorbs. A stable release makes the same API calls as the old script (fork, existing-version and existing-PR checks, tree and commit from upstream master, the PATCH fallback for a branch left by a retry, one PR per package), with the correct manifests/a/Anomaly/OpenCode[/Desktop]/<version> paths. I didn't run the real workflow or touch the real GitHub API.
Public API: unchanged (CI and release scripts only).
Concern: publish-winget doesn't wait for the jobs that upload the installers its manifests point to, so the WinGet PRs can be opened, and fail validation, before the files exist. Details are inline.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ordering problem from my last review is fixed. publish-winget now also waits for publish-cli and publish-desktop, so the WinGet PRs only open once the installers are on opencode.ai. On stable releases both jobs always run (the plan sets cli and desktop to true for latest), and a failure in either stops the submission. Nothing ran end to end, since that needs the release environment and the token.
Public API: unchanged (CI only).
Nothing new to raise.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No new concerns. The ordering fix from my last review (waiting for publish-cli and publish-desktop) is still there after the rebase. The new commit reads the token from Secrets Manager the same way the other publish jobs do. AWS is only set up for stable, non-dry runs, Submit only runs on latest, and with-secrets.sh doesn't fetch the secret on dry runs. I tested it with stubbed aws and gh, not on a real release. A dry run skips without fetching anything. A stable run fetches opencode/release/WINGET_GITHUB_TOKEN from us-east-1, masks it and opens both PRs.
Public API: unchanged (CI only).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
When will this be addressed? I notice Winget is still not in line with the released versions of opencode.
|
Frulfump reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Reviewers
thdxr
Awaiting requested review from thdxr
thdxr is a code owner
At least 0 approving reviews are required to merge this pull request.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|