Skip to content

Development workflow

Branch model

The release branch flow is:

feature/* -> PR -> develop -> merge into release/1.0.0
                                  │
                                  ├─ beta / RC tags
                                  └─ v1.0.0 final tag
                                         │
                                         └─ merge into master and develop

Keep master stable for published releases, and use develop for ongoing feature work and integration. Feature work normally targets develop. The Android PR workflow runs for PRs into develop and builds a debug APK plus quality/tests/device tests.

For 1.0.0, use one release/1.0.0 branch throughout beta, RC and final preparation. Start it from the updated master, merge develop into it, and merge release-specific fixes back into develop. Stable releases and post-release hotfixes update master; see the complete Release process.

Day-to-day loop

  1. Branch from the appropriate integration point.
  2. Implement one cohesive change.
  3. Run focused tests while working.
  4. Before opening/updating the PR, run:
./gradlew qualityCheck
./gradlew allTests
  1. If module dependencies changed:
./gradlew architectureReport
./gradlew verifyArchitectureReport
  1. Open a PR into develop.

Chat changes

Before changing chat behavior, read Chats architecture. Direct and Group behavior must remain separate. A similarly named operation is not enough reason to introduce a generic abstraction.

Server changes

Server services are independent Gradle modules and Docker images. Test the affected service and then run the appropriate smoke test. See Testing.

When Coolify is set up (see Coolify deployment), a push to develop or a feature branch moves the development-* branch of every server it changes, so Coolify redeploys only those servers in the develop environment; the push moved last is the one running. A version tag moves the branch production, which deploys production.

Release lines

Pushes to release/** start no release build. A v* tag runs the release workflow, which makes a complete reproducible release build and moves the branch production. See Release process.