Release process¶
This is the recommended open-source workflow for Sparrow's v1.0.0 beta, release candidates,
final release, and later hotfixes. Keep master stable, use develop for ongoing work, and keep
one release/1.0.0 branch for the entire 1.0.0 lifecycle. GitHub Actions creates a release build
from each pushed v* tag.
1. Branch structure¶
| Branch | Purpose |
|---|---|
master |
Stable published releases and open-source preparation needed before publication |
develop |
Ongoing feature development and integration |
release/1.0.0 |
All 1.0.0 beta, release-candidate, and final-release preparation |
feature/* |
New features; normally merge into develop |
bugfix/* |
Normal bug fixes, branched from the line being fixed |
hotfix/* |
Urgent fixes to a published release, branched from master |
Use release/1.0.0 for v1.0.0-* tags. The release workflow accepts release/<major>.<minor> and
release/<major>.<minor>.<patch> (for example release/1.0 or release/1.0.0); do not create a second release branch
for the same release line. Earlier lines used release/1.0.0.
2. Initial open-source preparation¶
If the license and open-source preparation changes are already merged into develop, identify
only those commit(s) and cherry-pick them into master. This publishes the licensing and project
community files without bringing unfinished development into the stable branch.
git checkout develop
git pull origin develop
git log --oneline
git checkout master
git pull origin master
git cherry-pick <license-commit-hash>
git push origin master
Repeat git cherry-pick <commit-hash> for each required preparation commit. Review each commit
before cherry-picking; do not cherry-pick unrelated feature work. Resolve any conflicts, run the
relevant checks, and confirm the resulting master contains the intended license and community
files.
3. Create the release branch¶
Start the release branch at the updated stable master, then merge the current development state
to create the initial 1.0.0 candidate:
git checkout master
git pull origin master
git checkout -b release/1.0.0
git push -u origin release/1.0.0
git merge develop --no-ff
git push origin release/1.0.0
Resolve merge conflicts deliberately and test the resulting tree. Do not merge unfinished
development into master; the release branch is where develop is stabilized.
4. Beta and release-candidate cycle¶
Keep using release/1.0.0 for all 1.0.0 releases:
| Stage | Example tag | Purpose |
|---|---|---|
| Beta 1 | v1.0.0-beta.1 |
Initial public testing build |
| Beta 2 | v1.0.0-beta.2 |
Bug fixes and improvements |
| Beta 3+ | v1.0.0-beta.3 |
Further testing and fixes as needed |
| Release candidate | v1.0.0-rc.1 |
Final validation and stability checks |
| Final | v1.0.0 |
Stable public release |
After the commit is ready and tested on the release branch, tag that commit and push the tag:
git checkout release/1.0.0
git pull origin release/1.0.0
git status
git tag -a v1.0.0-beta.1 -m "Sparrow v1.0.0 Beta 1"
git push origin v1.0.0-beta.1
Use a new tag for every beta or release candidate, changing the version and message as appropriate.
The tag identifies the complete build, including all fixes merged before it. Do not tag an
individual bugfix branch. The release workflow checks out the exact tagged commit, builds its
release assets, and marks version tags containing a suffix (such as -beta.1 or -rc.1) as
pre-releases on GitHub.
5. Bug fixes during the release¶
Branch bug fixes from the release line they are intended to fix. For a 1.0.0 beta:
git checkout release/1.0.0
git pull origin release/1.0.0
git checkout -b bugfix/registration-error
# Implement and test the fix.
git add .
git commit -m "fix: resolve registration error"
git push -u origin bugfix/registration-error
Merge the fix into the release line and push it:
git checkout release/1.0.0
git pull origin release/1.0.0
git merge bugfix/registration-error --no-ff
git push origin release/1.0.0
Tag and push the next beta (for example v1.0.0-beta.2) from the updated release branch. The
new tag, not a separate bugfix tag, identifies the complete build containing the fix.
Keep develop up to date¶
After merging a release-specific fix, also merge it into ongoing development so it is not lost:
git checkout develop
git pull origin develop
git merge bugfix/registration-error --no-ff
git push origin develop
If the fix is already in develop, do not merge it again. Delete the bugfix branch when it is no
longer needed.
6. Final release¶
Once the release candidate has passed testing, tag the final commit on release/1.0.0:
git checkout release/1.0.0
git pull origin release/1.0.0
git status
git tag -a v1.0.0 -m "Sparrow v1.0.0"
git push origin v1.0.0
After the tagged release succeeds, merge the finalized release line into both stable and ongoing development:
git checkout master
git pull origin master
git merge release/1.0.0 --no-ff
git push origin master
git checkout develop
git pull origin develop
git merge release/1.0.0 --no-ff
git push origin develop
Delete release/1.0.0 after the release is complete if no further 1.0.x maintenance is planned.
7. Hotfixes after the final release¶
For an urgent fix to the published v1.0.0, branch from stable master:
git checkout master
git pull origin master
git checkout -b hotfix/critical-security-fix
# Implement and test the fix.
git add .
git commit -m "fix: address critical security issue"
git push -u origin hotfix/critical-security-fix
Merge the fix into master, then tag and push the patch release from the updated stable branch:
git checkout master
git pull origin master
git merge hotfix/critical-security-fix --no-ff
git push origin master
git tag -a v1.0.1 -m "Sparrow v1.0.1"
git push origin v1.0.1
Also merge the fix into develop:
git checkout develop
git pull origin develop
git merge hotfix/critical-security-fix --no-ff
git push origin develop
Stable release tags can point to commits on master or release/*; beta and RC tags must point
to commits on release/*. This lets the patch tag identify the exact tested hotfix on master
while preserving the release workflow's branch validation.
8. GitHub Actions and GitHub Releases¶
The release workflow listens for all version tags:
It checks out the tagged commit itself, not master. Beta and RC tags (version strings containing
a hyphen) are published as GitHub pre-releases. Final and patch tags without a suffix are
published as stable releases. Pushes to release/1.0.0 do not themselves create the tagged GitHub
release; push a new version tag to build and publish each beta, RC, final, or patch release.
9. Workflow at a glance¶
master
open-source preparation -> stable releases and hotfixes
│ ▲
└── create release/1.0.0 ─┘ merge final release
│
develop ── merge ──> release/1.0.0
beta tags -> RC tag -> v1.0.0
│
└── merge release fixes back into develop
After v1.0.0:
hotfix/* from master -> merge to master -> v1.0.1 tag
└──────> merge fix to develop
Recommendations¶
- Keep
masterstable; do not merge unfinisheddevelopwork into it. - Use one
release/1.0.0branch for the complete 1.0.0 beta, RC, and final cycle. - Give every beta and RC a new tag; each tag builds the complete release.
- Branch bug fixes from the line they are fixing.
- Merge release-specific fixes back to
develop. - Never tag a bugfix branch just to trigger a build.
- Branch urgent post-release hotfixes from
master, and merge their fixes intodevelop.
Repository variables¶
Configure in GitHub Actions Variables:
CONTROL_PLANE_DIRECTORY_URL
CONTROL_PLANE_RELEASE_DIRECTORY_URL
FIREBASE_APP_ID
FIREBASE_API_KEY
FIREBASE_PROJECT_ID
The three FIREBASE_* values are the app's Firebase project for the phone sign-in (no google-services.json; see
Installing the servers). Without them the release APK
builds, but phone verification reports that it is not set up.
The debug/PR workflow reads repository variable CONTROL_PLANE_DIRECTORY_URL and writes the local development property controlPlaneDirectoryUrl=.... The signed release workflow reads CONTROL_PLANE_RELEASE_DIRECTORY_URL and writes CONTROL_PLANE_RELEASE_DIRECTORY_URL=... for the BuildKonfig release flavor. Both flavors expose the selected value to common code as BuildKonfig.CONTROL_PLANE_DIRECTORY_URL.
Android signing secrets¶
Configure GitHub Actions Secrets:
GRADLE_ENCRYPTION_KEY is optional: it encrypts the Gradle configuration cache that the workflows keep between runs
(any Base64 AES key, e.g. openssl rand -base64 16). Without it the cache is not saved and builds are slower.
KEY_STORE_FILE is the Base64-encoded .jks file, not a filesystem path or password. Keep the original keystore in
a secure backup; losing the signing key prevents future APKs from being installed as updates to the same app.
Example key creation in Windows CMD:
keytool -genkeypair -keystore sparrow-release.jks -alias sparrow -keyalg RSA -keysize 4096 -validity 10000
The key password and keystore password may be the same if desired.
Convert the keystore to Base64 for GitHub. Windows PowerShell:
[Convert]::ToBase64String(
[IO.File]::ReadAllBytes("sparrow-release.jks")
) | Set-Content "sparrow-release-keystore-base64.txt"
macOS/Linux:
Paste that file's contents into KEY_STORE_FILE. KEY_STORE_PASSWORD, KEY_ALIAS, and KEY_PASSWORD contain the actual keystore password, alias, and key password. Back up the original .jks offline; do not commit it.
Complete release command sequence¶
Use this sequence when the current develop state is ready to become a release candidate. The normal Sparrow workflow keeps release work flowing in one direction: develop -> master -> release/x.y -> tag.
1. Update local develop from origin¶
Start from the integration branch and pull the current remote state:
git status should be clean before continuing. Do not start the release procedure with an uncommitted working tree.
2. Merge develop into master with the exact develop tree¶
Update local master, create a real merge relationship with develop, then replace the merge result with the exact tree from develop before committing:
git checkout master
git pull origin master
git merge develop -s ours --no-commit --no-ff
git read-tree --reset -u develop
git commit -m "Merge develop into master"
git push origin master
This intentionally avoids manual conflict resolution. git merge ... -s ours --no-commit --no-ff records both branch histories as a merge without trying to combine their file contents. git read-tree --reset -u develop then makes the pending merge tree exactly match develop, and the explicit commit creates the release merge commit Merge develop into master. The result is therefore a real merge commit whose project contents are identical to the tested develop state.
3. Create a new release branch from the updated master¶
For a new release line, here 1.0.0:
git checkout master
git pull origin master
git checkout -b release/1.0.0
git push -u origin release/1.0.0
Pushes to that branch build and publish nothing; only a v* tag starts the release build (step 5).
If the release branch already exists, do not create it again. Update it from master instead:
git checkout release/1.0.0
git pull origin release/1.0.0
git merge master -X theirs
git push origin release/1.0.0
Here release/1.0.0 is ours and master is theirs, so conflicting hunks prefer the newly promoted master state.
4. Stabilize and test the release branch¶
Any release-specific fix is committed and pushed on the release branch:
git checkout release/1.0.0
git pull origin release/1.0.0
# make/fix/test the release changes
git add .
git commit -m "Fix release issue"
git push origin release/1.0.0
Pushes to release/** do not start a release build; release.yml runs only for v* tags. Test the release branch
locally (and in the develop environment by deploying that branch, see Coolify deployment) before tagging.
5. Tag the exact tested release commit¶
For a beta release:
git checkout release/1.0.0
git pull origin release/1.0.0
git status
git tag v1.0.0-beta.1
git push origin v1.0.0-beta.1
For a stable release, use the stable semantic-version tag instead:
git checkout release/1.0.0
git pull origin release/1.0.0
git status
git tag v1.0.0
git push origin v1.0.0
The tag must point at the exact release-branch commit whose candidate was tested. A v* tag triggers the complete release build described below and moves the branch production to the tag, so Coolify deploys it to production (Coolify deployment).
Release automation present in this source snapshot¶
The workflows are checked in under .github/workflows:
| Workflow | Trigger | Purpose |
|---|---|---|
android-pr.yml |
pull requests to develop, manual |
Android build and checks |
server-smoke.yml |
pull requests to develop touching server/build files |
Server smoke test |
server-community-node-smoke.yml |
pull requests to develop touching server/build files |
Community Node smoke test |
sparrow-server-bundle.yml |
pushes touching server/build files | Server bundle artifacts |
coolify-develop.yml |
pushes (not master, release/**) changing server files |
Moves the development-* branch of each changed server, which Coolify's develop environment deploys |
docs.yml |
pushes to master touching docs/** or mkdocs.yml |
Documentation site |
release.yml |
v* tags |
Release build; moves the branch production, which Coolify's production environment deploys |
If a workflow changes, keep this page synchronized with the checked-in workflow files.
Current public server bundle¶
The current server distribution path is a single unified server bundle, not separate public Control Plane and Community Node packages.
Build from the repository root (Windows, Linux or macOS):
This produces:
The bundle contains the cross-platform runtime/manager scripts plus the Control Plane and Community Node Compose/Caddy configuration needed by the unified manager. It does not contain live deployment secrets or state.
Important bundled entry points include:
Start-SparrowServer.cmd,Start-SparrowServer.sh,Start-SparrowServer.command(top level)app/with the manager UI,Invoke-SparrowServer.ps1/.py,Update-SparrowServer.ps1,Manage-SparrowNodes.py, the installer window (manager_window.py) andbundle.json(source repository and image tag)- the Control Plane and Community Node Compose/Caddy templates
- signed-directory client/registration helpers used by the public runtime
- shared-public-proxy definitions used by public Combined deployments
All three launchers open the same cross-platform installer window (Tk, shared ui_window.py); without a desktop the same options appear as a text menu.
Server bundle exclusion: independent Control Plane Directory¶
server/control-plane-directory is public source for a separate operator-managed service. server/installer/build.py deliberately excludes its service and installer from the unified runtime bundle; generated server identities and secrets must never be copied into release assets.
Therefore these are not public Sparrow server release assets:
- the independent directory's separately built operator installer;
- its administrator CLI/token;
- its signing key or SQLite state;
- the persistent
sparrow-central-directory-statevolume.
The public unified runtime may contain directory client helpers, because nodes/Control Planes need to consume/register with a separately operated signed directory. That is different from shipping the directory server itself.
Server image builds¶
Executable Ktor services are built with the shared server/Dockerfile using a SERVICE build argument. Current Gradle server modules are:
:server:node-registry
:server:presence-directory
:server:gateway
:server:federation
:server:mailbox
:server:link-preview
They share :server:protocol, :server:security, :server:persistence and :server:observability as appropriate.
The unified manager is designed to pull/update selected Sparrow backend images while preserving an intact installation's stateful PostgreSQL/Redis/Caddy resources, generated secrets and identities. That lifecycle behavior does not remove the need for a verified backup before an upgrade that may run database migrations.
Android release APK¶
The Android application build uses the androidApp release configuration. Release signing requires the keystore material described earlier on this page. Release builds use the configured R8/resource-shrinking rules from the Android Gradle build.
Before publishing, preserve the release signing keystore independently. If obfuscation is enabled for the release variant, archive the generated mapping file privately for stack-trace de-obfuscation rather than publishing it with the app.
What should be attached to a tagged release¶
The exact GitHub workflow must remain the source of truth for automated release assets. From the current repository tooling, the public server asset is expected to be the unified:
plus its checksum when produced by release automation. Android APK/AAB assets and checksums should correspond to the exact tagged commit. Do not document or publish the separately built server/control-plane-directory installer as part of the normal unified runtime bundle.
Release verification checklist¶
Before tagging/publishing:
- Verify beta/RC tags point at tested
release/*commits and stable tags point at a testedmasterorrelease/*commit. - Build/test the Android release variant with the production discovery configuration.
- Build
dist/sparrow-server.zipfrom the same source revision. - Inspect the ZIP to ensure no deployment secrets, identities, Firebase credentials,
.env.runtime, orserver/control-plane-directoryserver/admin files are present. - Verify server image tags/digests referenced by the released runtime are immutable/reproducible for that release.
- Back up production server state before applying new backend images or migrations.
- Keep release APK mapping/signing material private and backed up.
- Verify checksums after artifact upload/download.
See Server runtime, build and deployment for the operational model implemented by the current scripts.