You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(releases): record what the 2.5.0 release ran into - #14448
Records in docs/releases.md what the 2.5.0 release ran into, so the next release doesn't hit it again. One of them is fixed in bin/release instead.
bin/release push
For a minor, X.Y.x is pushed at main, so GitHub refuses the X.Y.x → main PR ("No commits between main and 2.5.x") and push exited with an error after opening the prep PR. It now prints that the merge-back PR opens after the prep PR merges, and exits cleanly.
Release notes: check each item against the self-hosted console profile. The 2.5.0 draft listed the activity log and the verify-email page, which are Cloud-only, and NATS queues, which self-hosters can't turn on.
Website and docs: check that the newest apps/console/<n> tag doesn't already contain the docs merge before tagging. 1.2.75 was tagged just before docs(console): Appwrite 2.5.0 release #14444 merged, so 2.5.0's docs went out as 1.2.76.
🟢 Cheatsheet still says push opens the minor merge-back PR (releases.md:52) — The bin/release push cheatsheet at docs/releases.md:52 still promises "open the prep PR and the X.Y.x → main PR", but the new guard in bin/release now skips the merge-back PR for a minor whose X.Y.x has no commits beyond main (bin/release:180-181), printing a reminder instead.
🟢 Merge-back check reads a stale origin/{branch} ref (release:178) — The new ahead-count at bin/release:178 runs git rev-list --count origin/main..origin/{branch}, but push fetches only origin main (bin/release:164).
This PR tightens the release script so a minor release whose X.Y.x branch has nothing to merge back no longer gets an empty PR, and updates the docs to describe the new ordering of the minor merge-back step.
Files
Change
bin/release
Counts commits on origin/main..origin/{branch} during push and skips the X.Y.x to main PR (printing a reminder instead) when the branch is not ahead of main.
docs/releases.md
Rewrites release-branch step 3 so the minor merge-back PR is opened after the prep PR merges, and only when the branch has commits.
Updates the release guide with the 2.5.0 lessons and adjusts bin/release push to defer the merge-back PR when a minor branch has no commits beyond main. The guide also adds checks for self-hosted release notes, Cloud signature changes, console tags, and upgrade setup.
Verdict
New comments
Fixed
Still open
✅ Approved
0
0
0
📂 Walkthrough · 2
File
Change
bin/release
Checks whether the release branch has commits beyond main before opening the merge-back PR.
docs/releases.md
Documents the release branch timing and operational lessons from 2.5.0.
🔇 Filtered out · 1
Findings Hansi considered but did not post.
Finding
Why
Fetch the newly pushed minor branch before counting commits
Verifier: The premise about Git push is incorrect. With origin's wildcard fetch refspec (+refs/heads/:refs/remotes/origin/, also present in this checkout), a successful push updates the corresponding local remote-tracking ref. Thus the push at line 169 creates origin/X.Y.x even though its source is a commit SHA, and line 178 can resolve it. Also, prepare performs a full origin fetch at line 80, not only a main fetch. No narrow fetch configuration that would prevent the push from updating this tracking ref is established by the release workflow.
Reviewed e0614f7 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.
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
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.
Records in
docs/releases.mdwhat the 2.5.0 release ran into, so the next release doesn't hit it again. One of them is fixed inbin/releaseinstead.bin/release pushX.Y.xis pushed atmain, so GitHub refuses theX.Y.x→mainPR ("No commits between main and 2.5.x") andpushexited with an error after opening the prep PR. It now prints that the merge-back PR opens after the prep PR merges, and exits cleanly.docs/releases.mdmain,X.Y.xmoves up to it, andX.Y.xis merged intorelease/X.Y.Z. Don't rebase it, becauserelease/*can't be force-pushed. 2.5.0 did this for fix(teams): declare membershipId after the existing createMembership params #14423, test(teams): retry console team creation while the organization lock is held #14427, test(realtime): wait for the matching event when creating an index #14432 and feat(console): email and password only for self-hosted console sign-in #14434.self-hostedconsole profile. The 2.5.0 draft listed the activity log and the verify-email page, which are Cloud-only, and NATS queues, which self-hosters can't turn on.Create(appwrite-labs/cloud#6517).apps/console/<n>tag doesn't already contain the docs merge before tagging.1.2.75was tagged just before docs(console): Appwrite 2.5.0 release #14444 merged, so 2.5.0's docs went out as1.2.76.docker-compose.override.yml, so the upgrade also proves both are kept (fix: keep custom ports and HTTPS on upgrade, allow host-bound ports, resizable row fields #14345, fix(installer): keep docker-compose.override.yml when install and upgrade start the stack #14262). Same-instance migrations on a production.envneed the subnet in_APP_ALLOWED_INTERNAL_ADDRESSES.bin/release check 2.5.0 --ref=origin/mainstill passes, and Pint passes onbin/release.Related: #14424