Skip to content

Rename nightly build to edge, harden tag exclusion - #1088

Merged
cdalar merged 2 commits into
mainfrom
rename-edge-build
Sep 6, 2026
Merged

cdalar merged 2 commits into
mainfrom
rename-edge-build

Conversation

@cdalar

@cdalar cdalar commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Renames the rolling continuous-build pipeline from "nightly" to "edge" — matches Alpine Linux's own term for its continuously-updated rolling branch, and Docker's :edge tag convention. "Nightly" implied a schedule this build doesn't have; it fires on every push to main, not on a timer.
  • .goreleaser.nightly.yml → .goreleaser.edge.yml, .github/workflows/nightly.yml → .github/workflows/edge.yml, tag/release renamed nightly → edge throughout.
  • Generalizes the tag-exclusion fix from Add automated nightly build (rolling GitHub prerelease) #1087 (git tag -d nightly) into deleting any non-vX.Y.Z tag, not one hardcoded name. Found live while testing this rename: deleting only the new edge tag locally still failed the build, because the old nightly tag (this pipeline's previous name, already published to the remote) was still fetched and was even closer to HEAD than edge — a rolling tag always sits near HEAD by construction, which is exactly what makes GoReleaser's version discovery prefer it over the real, further-back semver tags. The general filter survives this pipeline being renamed again later, or any other non-semver tag existing in the repo (this repo already has a few unrelated ones: dev, legacy-cloud-engine, spike/gh-runner-phase2).

Test plan

  • Reproduced the original bug again locally with the renamed config (still failed, as expected, until both old+new rolling tags were removed)
  • Applied the general fix locally with all of this repo's actual stray non-semver tags present (dev, edge, legacy-cloud-engine, nightly, spike/gh-runner-phase2) and confirmed the filter strips all of them, leaving only real semver tags, and the build succeeds
  • YAML validated for both renamed files
  • Will delete the old nightly release/tag from the repo after this merges (superseded by edge), and confirm the first real edge run publishes correctly

🤖 Generated with Claude Code

https://claude.ai/code/session_01F75TsjPk2tV2RD1rizu6eF

…g tag

"nightly" implied a schedule this build doesn't have (it fires on every
push to main, not on a timer) -- "edge" matches Alpine Linux's own term
for exactly this (a continuously-updated rolling branch) and Docker's
:edge tag convention, without the schedule connotation.

Also generalizes the previous fix (exclude the rolling tag from
GoReleaser's version discovery) from hardcoding one tag name to deleting
any tag that isn't vX.Y.Z-shaped. Found live while testing the rename:
deleting only the new `edge` tag locally still failed, because the old
`nightly` tag (this pipeline's previous name) was still on the remote,
got fetched, and was even closer to HEAD -- a rolling tag always points
near HEAD by construction, which is exactly what makes GoReleaser prefer
it over the real, further-back semver tags. The general filter means this
survives any future rename or any other non-semver tag in the repo,
rather than needing another fix the next time the name changes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F75TsjPk2tV2RD1rizu6eF

@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: 1f8a0786a5

ℹ️ 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/edge.yml Resolved
The previous pattern (^v[0-9]+\.[0-9]+\.[0-9]+, unanchored at the end)
would still keep -- and thus still risk breaking the build on -- a tag
like v1.2.3foo or v0.1.33-edge, since it only checked the prefix.
Reproduced live: `v0.1.33-edge` matched the old pattern (wrongly kept)
and doesn't match the fixed one (correctly excluded), while real tags
like `v0.1.33` still match either way.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F75TsjPk2tV2RD1rizu6eF
@cdalar
cdalar merged commit 4894c34 into main Sep 6, 2026
12 checks passed
@cdalar
cdalar deleted the rename-edge-build branch September 6, 2026 17:36
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

⌂ 换网址