Skip to content

🤖 ci: create nightly tags without the v prefix - #8181

Merged
ThomasK33 merged 3 commits into
mainfrom
ethan/nightly-tags-without-v
Nov 18, 2026
Merged

ThomasK33 merged 3 commits into
mainfrom
ethan/nightly-tags-without-v

Conversation

@ethanndickson

@ethanndickson ethanndickson commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Part of MUX-419.

Summary

Nightly tags lose their v prefix (0.32.3-nightly.44, not v0.32.3-nightly.44), so the nightly workflow runs again under the Release tags ruleset. The Linux and Windows release jobs package with --publish never, so electron-builder no longer tries to publish to a v tag.

Background

Since 2026-11-18 01:12 UTC, the Release tags ruleset stops everyone but admins, maintainers and mux-core from creating, moving or deleting refs/tags/v*. nightly.yml created v*-nightly.* tags with GITHUB_TOKEN, so the 2026-11-18 nightly failed with "Cannot create ref due to creations being restricted".

Implementation

  • nightly.yml creates the bare tag. The cleanup job matches old (v) and new nightly tags. It deletes an old nightly's release but keeps its tag, because the token may not delete v* tags.
  • _desktop-release.yml: electron-publish builds its tag as v${version} unless vPrefixedTagName: false (gitHubPublisher.js in 24.13.1). The Linux and Windows jobs ran --publish always, which would hit the ruleset. They now use --publish never, as macOS and Linux arm64 already did. Their gh release upload --clobber steps already attached every asset. Stable releases change only in that electron-builder no longer uploads the same files first.
  • generate-version.sh stamps v + the version, so nightly builds keep the v0.x.y-nightly.n form. It adds the prefix only to a version: Nix builds pass the flake's commit hash as RELEASE_TAG.
  • The updater still accepts the nightly: it needs a semver tag with nightly as the first prerelease part.

Validation

  • scripts/generateVersion.test.ts covers a nightly tag, a stable tag and a Nix revision. scripts/ci/wiring.test.ts pins the new command lines.
  • An independent verifier ran the nightly version step on a clone of the real tag history (bare tag 0.32.3-nightly.44, based on v0.32.2), ran electron-builder --linux --publish never (it still writes nightly-linux.yml), checked that every asset of v0.32.2 and v0.32.3-nightly.43 matches an upload glob, and ran electron-updater 6.8.10's GitHubProvider against a bare-tag nightly: it picks the release and fetches its manifest.

Risks

The nightly and every stable release run through _desktop-release.yml. If an asset that only electron-builder's upload attached exists, it would go missing from releases. The upload globs cover the AppImage, *-linux.yml, the .exe and its blockmap, and every .yml of the Windows job.

A manual release.yml run for a tag that has no GitHub release now fails at gh release upload. Before, electron-builder created the missing release. Normal releases start from a published release.

A manual release.yml run for a tag that has no GitHub release now fails at gh release upload. Before, electron-builder created the missing release. Normal releases start from a published release.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $4.01

@linear-code

linear-code Bot commented Nov 18, 2026

Copy link
Copy Markdown

MUX-419

@ThomasK33
ThomasK33 marked this pull request as ready for review November 18, 2026 09:50
@ThomasK33
ThomasK33 enabled auto-merge November 18, 2026 09:50
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T13:21:48.994232Z 1217b3c Manual request
🔒 Security Review ✅ Completed 2026-11-18T13:23:41.554727Z 1217b3c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e stories (Haiku): 14 passed

22 agent steps · 7 replayed from cache · 15 model calls · 47.3k tokens (23% cached)
Spend: $0.09 of the $1.00 cap (proxy ledger)

All 14 tests in 9 files
Test Agent Time
🟢 chatRestart.e2e.ts · 1 passed 1 step · 1 call 6.4s
🟢 a chat survives a restart of the server 1 step · 1 call 6.4s
🟢 compaction.e2e.ts · 1 passed 1 step · 1 call 5.1s
🟢 /compact replaces the old chat with a summary 1 step · 1 call 5.1s
🟢 pluginTrustRestart.e2e.ts · 1 passed 4 steps · 2 calls 12.0s
🟢 a trusted plugin hook stays trusted after the server restarts 4 steps · 2 calls 12.0s
🟢 settingsRoundTrip.e2e.ts · 1 passed 2 steps · 1 call 9.9s
🟢 a chat survives trips through Settings 2 steps · 1 call 9.9s
🟢 sidebarPerWorkspace.e2e.ts · 1 passed 4 steps · 1 call 5.4s
🟢 a new workspace starts with its right sidebar collapsed while another keeps it open 4 steps · 1 call 5.4s
🟢 smoke.e2e.ts · 1 passed 2 steps · 1 call 3.0s
🟢 the agent opens the playground workspace 2 steps · 1 call 3.0s
🟢 streamErrors.e2e.ts · 1 passed 1 step · 1 call 7.6s
🟢 stream errors show in the chat, and the chat recovers 1 step · 1 call 7.6s
🟢 todoNudge.e2e.ts · 1 passed 1 step · 1 call 3.5s
🟢 the agent finishes open TODO items after the turn-end nudge 1 step · 1 call 3.5s
🟢 touchAlignment.e2e.ts · 6 passed 6 steps · 6 calls 23.9s
🟢 the Settings close button is level with the title on a touch screen 390px wide 1 step · 1 call 4.1s
🟢 the Settings close button is level with the title on a touch screen 768px wide 1 step · 1 call 4.4s
🟢 Backup settings checkboxes are small and level with their labels on a touch phone 1 step · 1 call 4.4s
🟢 the heartbeat checkbox is small and level with its label on a touch phone 1 step · 1 call 3.8s
🟢 a reply's model and time stay on one line on a touch phone 1 step · 1 call 3.7s
🟢 the workspace actions menu stays on the title row on a touch phone 1 step · 1 call 3.3s

e2e 0.20.0 · 1m 21s · web · run artifacts

🟢 e2e Electron stories (Haiku): 3 passed

3 agent steps · 3 model calls · 7.9k tokens (22% cached)
Spend: $0.02 of the $1.00 cap (proxy ledger)

All 3 tests in 3 files
Test Agent Time
🟢 electron/deepLink.e2e.ts · 1 passed 1 step · 1 call 7.9s
🟢 a deep link of a second launch starts a chat in the running app 1 step · 1 call 7.9s
🟢 electron/menuBar.e2e.ts · 1 passed 1 step · 1 call 7.9s
🟢 the workspace menu bar is the desktop title bar 1 step · 1 call 7.9s
🟢 electron/smoke.e2e.ts · 1 passed 1 step · 1 call 6.9s
🟢 Xum Electron opens the playground workspace 1 step · 1 call 6.9s

e2e 0.20.0 · 25.7s · electron · run artifacts

🟢 e2e agent repros (Haiku): no tests selected

Spend: $0.00 of the $1.00 cap (proxy ledger)

e2e 0.20.0 · 7.9s · 2 targets (web, phone) · run artifacts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f1405a92ab

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/nightly.yml Resolved
Comment thread scripts/generate-version.sh Resolved
electron-builder publishes to the tag v<version>. Nightly tags lose the v
prefix in this PR, and the Release tags ruleset stops GITHUB_TOKEN from
creating v* tags, so --publish always on Linux and Windows would fail every
nightly. The gh release upload steps already attach every asset, so the
jobs now build with --publish never, as macOS and Linux arm64 do.

generate-version.sh adds the v prefix only to a version: Nix builds pass
the flake's commit hash as RELEASE_TAG.

---
_Generated with [`xum`](https://github.com/coder/xum) • Model: `anthropic:claude-opus-5-5` • Thinking: `high`_
@ThomasK33

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4af1dbc32a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/_desktop-release.yml Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 4af1dbc32a

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@ThomasK33

Copy link
Copy Markdown
Member

FAIL — independent verification of head 4af1dbc32a65805f4a60f1b32d82b1ffc6369c25

Blocker: scripts/ci/wiring.test.ts:377 and :384 still expect --publish always for _desktop-release.yml#build-linux and #build-windows. The test fails at this head and passes on base 70ab64f4d:

  • CI: Test / Unit (1/6) fails on (fail) the Electron zip wiring > a step that runs electron-builder directly hands it the zip directory (run 44309707527, job 134820467986).
  • Local, at this head: bun test ./scripts/ci/wiring.test.ts gives 45 pass, 1 fail. On base: 46 pass, 0 fail.
  • Fix: change those two strings to --publish never. I made that edit in a scratch worktree, did not push it, and the test then gave 46 pass, 0 fail. Codex's unresolved P1 on _desktop-release.yml:132 reports the same failure.

Every other check passed. Once the test is updated, I expect PASS+NOTES.

Checks and evidence

1. Nightly version step. I extracted the step's run: verbatim with PyYAML and ran it on a clone of origin/main with all tags (113 v*-nightly.* tags).

  • On 70ab64f4d it printed release_tag=0.32.3-nightly.44 (base v0.32.2). The nearest tag of any kind there is v0.32.3-nightly.43, which the step correctly skips.
  • With simulated bare tags 0.32.3-nightly.44 and .45 and one more commit: 0.32.3-nightly.46, still based on v0.32.2. Base main's step gives v0.32.3-nightly.46 for the same input.
  • With a simulated v0.32.3 and v0.33.0-rc.1: 0.32.4-nightly.1.
  • Cleanup jq, run live with gh api --paginate .../releases --jq and on samples: it matches v0.32.3-nightly.43 and 0.32.3-nightly.44, and skips v0.32.2, v0.33.0-rc.1, …nightly.44x and non-prereleases.
  • Refs: the create, reuse and delete steps only touch the bare tag. Cleanup does call DELETE git/refs/tags/v0.32.3-nightly.43 for each old nightly. The ruleset ("Release tags", refs/tags/v*: creation/update/deletion, observed through the API) refuses it, and || true swallows the error. The release itself is deleted, so the attempt happens once per old nightly. The old v*-nightly tags stay forever.
  • The 2026-11-18 failure (run 44265195636) was pre_receive Repository rule violations found at gh release create v0.32.3-nightly.44.

2. electron-builder with --publish never.

  • Observed: bun run build, then env -u GH_TOKEN CI=true GITHUB_ACTIONS=true bun x electron-builder --linux --publish never (version patched to 0.32.3-nightly.99 with set-package-version.js). release/ held nightly-linux.yml, the AppImage and builder-debug.yml. The yml's sha512 equals the AppImage's. The x64 globs pick the AppImage, the mux alias and nightly-linux.yml.
  • --win needs wine on Linux (ERR_ELECTRON_BUILDER_CANNOT_EXECUTE), so I verified Windows from source instead. In app-builder-lib 24.13.3, PublishManager.js:158-164 queues update-info tasks whatever isPublish is (for nsis, isSuitableWindowsTarget), and :182-188 writes them. updateInfoBuilder.js:182 writes the file to release/, and NsisTarget.js:299 sets isWriteUpdateInfo: !isPortable. Only the upload depends on isPublish (:96).
  • Production also shows it: macOS has always run --publish never (make dist-mac), and nightly-mac.yml is on the nightly releases.
  • Why never is needed (observed in source): electron-publish/out/gitHubPublisher.js:35 builds the tag as v${version}.
  • Assets: every one of the 33 assets of v0.32.2 and the 33 of v0.32.3-nightly.43 matches an upload glob of some job. None is lost.

3. Updater. I ran electron-updater 6.8.10's real GitHubProvider with a stub HTTP executor against today's releases.atom, with a bare-tag entry added (observed).

  • With channel nightly, it picks 0.32.3-nightly.44 and fetches /releases/download/0.32.3-nightly.44/nightly-linux.yml (nightly.yml on win32, nightly-mac.yml on darwin). The same holds when the old release is deleted, and when the current version is the stable 0.32.2.
  • hrefRegExp = /\/tag\/(v?[^/]+)$/ accepts both forms, semver.valid accepts both, and the tag goes into the URL as it is. updater.ts:194-215 sets the feed explicitly, so app-update.yml does not matter.

4. generate-version.sh.

  • 0.32.3-nightly.44 gives v0.32.3-nightly.44; v0.32.2 gives v0.32.2; v0.32.3-nightly.43 is unchanged.
  • 40-char hashes stay as they are. -dirty and dev cannot match the regex either.
  • bun test ./scripts/generateVersion.test.ts: 3 pass.

5. Other tag parsers.

  • publish-npm.yml tag triggers are v[0-9]*… and skip prereleases, and the GITHUB_TOKEN does not trigger workflows anyway.
  • _npm-publish.yml's git describe --tags already lands on nightly tags today (no change).
  • _docker-release.yml:102 adds v itself.
  • updater.test.ts URLs are fixtures.
  • git_describe consumers are display only, and the PR keeps the v stamp.

make lint-actions (actionlint + zizmor) passes.

Notes (none blocks):

  • With --publish always, electron-builder created a missing release (gitHubPublisher.js:103). A release.yml workflow_dispatch for a tag that has no GitHub release now fails at gh release upload. The usual release: published path is unaffected.
  • The comments in _desktop-release.yml:78 ("--publish always silently skips") and :154 ("latest-linux.yml is published first") are now stale.

Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

scripts/ci/wiring.test.ts pins the electron-builder command lines of the
release jobs. The macOS upload comment and the arm64 job comment still
described electron-builder publishing.

---
_Generated with [`xum`](https://github.com/coder/xum) • Model: `anthropic:claude-opus-5-5` • Thinking: `high`_
@ThomasK33

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 1217b3c3f6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 1217b3c3f6

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@ThomasK33
ThomasK33 added this pull request to the merge queue Nov 18, 2026
@ThomasK33

Copy link
Copy Markdown
Member

PASS+NOTES — independent re-verification of head 1217b3c3f6a58bcb2b05f8eab8cecac4cb1b3bca

This head clears the blocker from my FAIL at 4af1dbc32.

What changed since 4af1dbc32 (git diff 4af1dbc32 1217b3c3f, 2 files):

  • scripts/ci/wiring.test.ts:377,384 now expect --publish never.
  • _desktop-release.yml has new comments on the macOS upload step and the arm64 job. No line outside a comment changed (counted: 0).
  • nightly.yml, generate-version.sh and generateVersion.test.ts are byte-identical to 4af1dbc32. My earlier checks 1–5 therefore still hold (comment 6979701700):
    1. The nightly step yields 0.32.3-nightly.N, based on v0.32.2.
    2. electron-builder with --publish never still writes the update manifests, and no release asset is lost.
    3. The real electron-updater GitHub provider resolves bare nightly tags.
    4. generate-version.sh adds a v only to a version tag.
    5. No other code in the repo parses nightly tags with a v.
  • The new comments are accurate. The arm64 job uploads only the AppImage, and the x64 job uploads *-linux.yml.

Run at this head (local, detached worktree):

  • bun test ./scripts/ci/wiring.test.ts: 46 pass, 0 fail.
  • bun test ./scripts/generateVersion.test.ts: 3 pass, 0 fail.
  • make lint-actions (actionlint + zizmor) passes.

CI at this head (run 44312606063): all six Test / Unit shards succeeded. The shard 1/6 log shows (pass) the Electron zip wiring > a step that runs electron-builder directly hands it the zip directory. No check has failed. When I posted this, Visual Regression Testing and Quality / Mutation were still pending.

Notes (unchanged, none blocks):

  • Cleanup still sends DELETE git/refs/tags/v…-nightly.N for each old nightly. The v* tag rule refuses it and || true absorbs the error. The old v*-nightly tags stay forever; only their releases go.
  • A release.yml workflow_dispatch run for a tag that has no GitHub release now fails at gh release upload. Before, electron-builder's --publish always created a missing release (gitHubPublisher.js:103). The release: published path is unaffected.

Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Merged via the queue into main with commit 3f232ff Nov 18, 2026
40 checks passed
@ThomasK33
ThomasK33 deleted the ethan/nightly-tags-without-v branch November 18, 2026 13:46
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.

2 participants