Skip to content

ci: skip betas of pushes that change only docs, CI or tests - #309

Merged
M4n0x merged 2 commits into
mainfrom
ci/skip-unchanged-betas
Oct 24, 2026
Merged

M4n0x merged 2 commits into
mainfrom
ci/skip-unchanged-betas

Conversation

@M4n0x

@M4n0x M4n0x commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Once a fix or feature is waiting for a stable release, every push to main publishes a beta, even when the app is the same as in the beta before it. 6 of the 77 betas so far were like that, including v0.8.0-beta.…380 (#297) and v0.8.0-beta.…382 (#308). Beta users get an update prompt for the same app, and CI builds, signs and notarizes it for nothing.

Changes

  • scripts/unchanged-app.sh prints the newest release before HEAD when HEAD ships the same app. That means every commit since then is docs:, ci: or test:, and none of them touches Sources, Resources, Package.swift, Package.resolved or scripts. Merge commits are left out of the type check but not the file check. The file check is needed because a docs: commit can still change the app: the triage playbook is built into Sources/StableBar/Triage.swift.
  • Beta job: when the script finds the app unchanged, it publishes no beta. It compares with the newest release, not with the previous push, so a feature push that was skipped because main moved on still gets its beta from the push after it.
  • Stable job: the newest commit no longer needs its own beta when it comes after a beta with only such commits, so a stable release still works after a docs merge. It still ships an app that beta users have run.
  • refactor:, style:, build: and chore: still publish betas, because they can change the built app.
  • CONTRIBUTING.md describes both rules.

Testing

  • swift test --filter unchangedApp: 5 tests (11 cases) on scratch Git histories. They cover docs, scoped CI and test commits after a beta, including through a merge commit and with the appcast tag nearer to HEAD; a beta on the newest commit; commits that touch Sources, Resources, scripts or Package.resolved; fix:, refactor: and docs!: types; a merge commit that changes Sources; and a history with no release.
  • On this repository's history, the rule skips the betas of docs: help search engines find and describe the landing page #297 and docs: make StableBar easier to find in search #308 and keeps the beta of fix: accept workspace icon drops on every workspace #296, which is a fix.
  • Not checked: a real beta or stable run. The first push to main after merging is itself a ci: change to scripts, so it still publishes a beta. A docs merge after that should log "No beta: the commits since … change only docs, CI or tests."

Merging

Two commits: the change, and a test: commit that gives the new tests 60 seconds per git command, since one took longer than the 10-second default on CI. Either a merge commit or a squash works; neither commit changes the app.

Claude Opus 5.5 via Claude Code

Once a fix or feature waits for a stable release, every push to main published a beta, even one
that ships the same app as the beta before it. 6 of the 77 betas so far were like that, the
betas of #297 and #308 among them: beta users got an update prompt for the same app, and CI
built, signed and notarized it.

scripts/unchanged-app.sh tells when HEAD ships the same app as the newest release: every commit
since is docs, ci or test, and none touches Sources, Resources, Package.swift, Package.resolved
or scripts. The beta job then publishes nothing, and the stable job accepts the beta before such
commits, so a stable release still ships an app beta users have run.
@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner October 24, 2026 09:03
The whole suite runs in parallel, and on CI one git command in the new release history tests
took longer than the 10-second default, failing two of them. Their commands now get 60 seconds,
and only the script's exit status 1 counts as a changed app, so a timeout can't pass for one.
@M4n0x
M4n0x merged commit d6193f5 into main Oct 24, 2026
7 checks passed
@M4n0x
M4n0x deleted the ci/skip-unchanged-betas branch October 24, 2026 10:06
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant