Skip to content

Release automation for DocumentServer and DesktopEditors #1

Open

Description

@juliusknorr

Release DocumentServer and DesktopEditors together, with the same version and tags across all submodules. Where the builds publish their assets: #2. Pending changes for the next release: #4.

Flow

  1. Prepare (workflow_dispatch, inputs version and products: both|ds|de): pin one commit per shared submodule for both products, bump VERSION / VERSION.txt, generate CHANGELOG.md (grouped by conventional-commit type, compare links per repo), open linked release/vX PRs (against stable-X.Y.Z once it exists). bump_submodules: false keeps the current submodule commits.
  2. Review and test the release PRs. release/* PRs get test packages linked in a PR comment: DocumentServer also a pr-<n> image (ci: keep :latest for stable tags, add test build outputs DocumentServer#431), DesktopEditors a table per brand and arch (ci: link release PR artifacts and shorten their retention DesktopEditors#162).
  3. Tag (workflow_dispatch, release environment): check the PRs are merged, versions match and shared commits are identical; abort if any tag exists; tag submodules first, then the products; the first tag of a version creates stable-X.Y.Z in every repo.
  4. Build: the existing build.yml files publish directly, with CHANGELOG.md as the release body.
Decisions
  • v9.3.6 is stable; any suffix (-rc.N, -beta.N, -test.N) is a prerelease.
  • Tags carry no build id (no +N, no -N). Rebuilding the same commits re-runs the workflow on the same tag; any content change gets a new patch version. Once a version is in the APT/DNF archive, a fix always needs a new patch version.
  • Package versions are derived by CI: stable 9.3.6-0, prerelease 9.3.6-0~rc.1, so dpkg and rpm sort prereleases before the final release. GitHub renames ~ to . in release asset filenames; apt and dnf read the version from the package metadata, so this only affects the file name.
  • release.sh is the only tagging tool. DesktopEditors' tag_release.sh is removed; DocumentServer's stays as a fallback until 9.3.6-rc.1 has been tagged through the workflow.
  • -test.N checks the process only: real prepare with release PRs, then tag --dry-run. No tags are pushed. -rc.N is the first real tag and is published as a prerelease.
  • Both products follow the DocumentServer version. A skipped product skips that version number.
  • Each version gets a stable-X.Y.Z branch in all 15 repos, created at the first tag (-rc.1), so later rounds only get what is backported. prepare pins from it and opens the release PRs against it. Fixes land on main first and are backported with the Nextcloud backportbot (/backport to stable-X.Y.Z). stable- because upstream's release/vX and hotfix/vX branches still exist in the submodules and the release PR branches are release/vX.
  • main is not synced back from stable-X.Y.Z: its VERSION / CHANGELOG.md skip the rounds released from the branch; tags and GitHub releases carry the notes.
  • Hotfixes after a final release are built from latest main.
  • prepare can skip the submodule bump (bump_submodules: false, --no-bump) and then fails early if shared submodules differ between the products (usual on main, since the nightly bumps run per product).
  • The nightly submodule bump keeps running.
  • Credentials: org secret EO_ROBOT_GITHUB_TOKEN, so PRs, commits and tags appear as the robot account. Nextcloud Office publishing uses a classic PAT of the nextcloud-releases bot (NEXTCLOUD_RELEASES_TOKEN / NEXTCLOUD_RELEASES_USER), because GHCR does not accept GitHub App tokens.
  • fix(deps) PRs (Renovate) are listed under Other changes.
  • Changelogs link PRs as [repo#N](url) with plain author names and compare links as <url>, so they neither cross-reference nor mention anyone and pass markdownlint.
  • publish-nextcloud-apt-dnf keeps waiting for the SSH upload for now (feat: add nextcloud release workflow, put nextcloud office ssh push into separate step DocumentServer#421 unchanged).
Done

Left

Before 9.3.6-test.1 `-test.1` runs a real `prepare` with release PRs, then `tag --dry-run`. No tags are pushed, nothing is published.

Before 9.3.6-rc.1

-rc.1 is the first real tag and publishes to every location in #2, as a prerelease.

Release flow:

  • Protect v* tags in both products: release-tags ruleset (creation/update/deletion of refs/tags/v*) on both products, all 13 submodules and Euro-Office/release; eo-robot bypasses through the release team

Release assets:

  • NEXTCLOUD_SSH_REMOTE_PATH is the same in both repos (shared APT/DNF archive and lock)

Nextcloud Office publishing:

Afterwards

Right after the -rc.1 build:

  • Make ghcr.io/nextcloud-releases/office-documentserver public and link it to nextcloud-releases/Office-DocumentServer

    Note: the package does not exist yet. The first tag push creates it as private, so the docker pull in the release body fails until someone with admin on nextcloud-releases changes the visibility (Package settings → Change visibility → Public, and connect the repository).

  • stable-* branch ruleset (no deletion or force push, PR required) on both products and all 13 submodules; per repo, org rulesets need GitHub Team
  • Nextcloud backportbot installed on the Euro-Office org, with access to the private submodules
  • Tell the team: fixes for 9.3.6 go to main first, then /backport to stable-9.3.6; rc.2 and the final are prepared from the branch
  • Check all locations in Release assets overview #2. Prerelease assets are named ..._9.3.6-0.rc.1_..., because GitHub renames ~ to .; the download server path is <ver>/0~rc.1/

Before 9.3.6 (stable goes into the APT/DNF archive):

  • Review and merge ci: name releases and use the changelog as release notes DesktopEditors#169: release names, the tag's CHANGELOG.md section as release notes, prerelease/latest from the tag. Until then the DesktopEditors -rc.1 releases keep the old name and body (prerelease is still set correctly).
  • The stable archive has nextcloud-office-desktopeditors 9.3.1-dev.1 next to nextcloud-office-nextcloudoffice 9.3.5-2: the DesktopEditors Linux package was renamed in 9.3.5, and the old name (a dev build) is still there. The install instructions in nextcloud-releases/Office-DesktopEditors still say apt install nextcloud-office-desktopeditors, which installs 9.3.1-dev.1. Decide on the package name, add Replaces/Obsoletes if it stays renamed, remove the dev build, update the README.
  • nextcloud-releases/Office-DesktopEditors README: vX.Y.Z tags are stable (6384b9c)
  • Release 9.3.6

Later:

  • Add required reviewers to the release environment (skipped for now; the first tag run creates it without protection). It only adds an approval step, since EO_ROBOT_GITHUB_TOKEN is an org secret that prepare also uses.
  • Drop DocumentServer's scripts/tag_release.sh (fallback until -rc.1 was tagged through the workflow)
  • After 9.3.6: drop the vX.Y.Z-N compat in release.sh is_stable / previous_tag (f4fecfd)
  • Push the Nextcloud image to the private build cache with GITHUB_TOKEN and copy it in the publish job, so the PAT stays in publish jobs behind an environment and continue-on-error goes away. Today a failed GHCR push can only be recovered with "Re-run all jobs".
  • Optional: fine-grained PAT for DesktopEditors (it only creates the release, no GHCR push)
  • Decide whether the Nextcloud image needs :nightly from main (not in feat: add nextcloud release workflow, put nextcloud office ssh push into separate step DocumentServer#421)
  • DesktopEditors: hardcoded 9.3.1 defaults in build/docker-bake.hcl, build/linux/docker-bake.hcl, build/windows/build.ps1 should read VERSION.txt
  • DesktopEditors: drop advinst/*.msi from the upload glob (no MSI is built)
  • DesktopEditors: remove or rebrand winget.yml (ONLYOFFICE.DesktopEditors)
  • Optional: enforce conventional PR titles in all repos, so the changelog grouping does not depend on discipline

Known limits

  • main keeps VERSION 9.3.6-rc.1 while -rc.2 and the final are released from stable-9.3.6, so nightly builds from main report that version.
  • garm self-hosted runners sometimes get a shutdown signal mid-build; re-run the failed jobs. Jobs also wait 10 to 20 minutes for a runner when the release builds are running.
  • Hosts that installed an old-scheme 9.3.5-rc.1 .deb don't get 9.3.5-0 through APT; they are fixed once 9.3.6 ships.
  • Prerelease suffixes sort alphabetically among themselves (beta < rc < test); all sort before the final release.
  • Windows FILEVERSION is broken for any prerelease suffix with the pinned desktop-apps; fixed on desktop-apps main, lands with the next submodule bump.

Activity

  1. added a commit that references this issue on Oct 19, 2026
  2. juliusknorr commented on Oct 20, 2026

    @juliusknorr
    MemberAuthor
    • Come up with release branches to not risk landing unwanted changes after rc, ensure that we have a process for backporting
    • Backport bot for euro-office: Nextcloud backportbot, needs installing on the org (tracked in the issue body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions