|
| 1 | +--- |
| 2 | +title: "Releasing Guide" |
| 3 | +date: 2020-12-16T20:35:00+01:00 |
| 4 | +weight: 0 |
| 5 | +geekdocRepo: https://github.com/owncloud/ocis/releasing_guide |
| 6 | +geekdocEditPath: edit/master/docs/ocis |
| 7 | +geekdocFilePath: releasing_guide.md |
| 8 | +--- |
| 9 | + |
| 10 | +{{< toc >}} |
| 11 | + |
| 12 | +To prepare an oCIS production release, you must follow a specific sequence of steps in the correct order. |
| 13 | + |
| 14 | +## New ocis Version |
| 15 | + |
| 16 | +Use this detailed copy/paste checklists for Jira when starting a new release. |
| 17 | + |
| 18 | +{{< hint warning >}} |
| 19 | +* The **examples** use the following versions which will need to be **adapted** for the planned release: |
| 20 | + * For Major and Minor versions: `7.2.0` |
| 21 | + * For Patch releases: `7.2.1` |
| 22 | +* The process differs slighly when creating a patch release only. |
| 23 | +* Changes applied to a `stable-7.2` branch valid for documentation will be processed to the `docs-stable-x.y` branch automatically after merging. |
| 24 | +{{< /hint >}} |
| 25 | + |
| 26 | +### Steps for Major or Minor Releases |
| 27 | + |
| 28 | +{{< hint warning >}} |
| 29 | +* A new production release is being prepared and the implementation of new features has finished in master. |
| 30 | +* `web`, `reva` and `dependencies` have already been bumped. |
| 31 | +* Translations |
| 32 | + * For oCIS, all required translations changes are included. |
| 33 | + * For Web, all translation changes have been applied and are part of the web version provided. |
| 34 | +* **Only** bug fixes to release candidates are allowed. |
| 35 | +{{< /hint >}} |
| 36 | + |
| 37 | +#### Overview |
| 38 | + |
| 39 | +1. Start the Releasing Process |
| 40 | +1. Start the Release Candidates Phase |
| 41 | +1. Prepare Release\ |
| 42 | +Integrate all RC changes and set the final version |
| 43 | +1. Sign-off the Releasing Process |
| 44 | +1. Release the new Version |
| 45 | +1. Postprocessing and Finalization\ |
| 46 | +Backport changes to `master` and create other required stable branches, update cronjobs and clean up |
| 47 | + |
| 48 | +#### Details |
| 49 | + |
| 50 | +``` |
| 51 | +https://owncloud.dev/ocis/releasing_guide/ |
| 52 | +
|
| 53 | +* [ ] Start the Releasing Process |
| 54 | + * [ ] Create a `stable-7.2` branch based on current `master` |
| 55 | + * [ ] Inform documentation that the releasing process has started |
| 56 | +
|
| 57 | +* [ ] Start the Release Candidates Phase |
| 58 | + * [ ] Create a new feature branch based on `stable-7.2` |
| 59 | + * [ ] Move all changelog items from `unreleased` to `7.2.0-rc.1_2025-06-12` |
| 60 | + * [ ] Bump oCIS version in `ocis-pkg/version/version.go` |
| 61 | + * [ ] Bump oCIS version in `sonar-project.properties` |
| 62 | + * [ ] Create PR with `[full-ci][k6-test]` against `stable-7.2` |
| 63 | + * [ ] Get PR approved. **DO NOT MERGE YET** |
| 64 | + * [ ] Wait for pipeline to be green |
| 65 | + * [ ] Create tag: `git tag -s v7.2.0-rc.1 -m "Release 7.2.0-rc.1"` |
| 66 | + * [ ] Push tag: `git push origin v7.2.0-rc.1` |
| 67 | + * [ ] Watch the PR to see pipeline succeed (can be restarted) |
| 68 | + * [ ] Merge PR |
| 69 | + * [ ] Sync with DevOps and Product\ |
| 70 | + Repeat process with `rc.2`,`rc.3`, ... |
| 71 | + * [ ] All required translations from oCIS are included |
| 72 | + * [ ] All issues are fixed, RC phase has finished |
| 73 | +
|
| 74 | +* [ ] Prepare Release |
| 75 | + * [ ] Create a new feature branch based on `stable-7.2` |
| 76 | + * [ ] Move all changelog items from `7.2.0-rc.*` to `7.2.0_2025-04-01` |
| 77 | + * [ ] Bump oCIS version in `ocis-pkg/version/version.go` |
| 78 | + * [ ] Bump oCIS version in `sonar-project.properties` |
| 79 | + * [ ] Create PR with `[full-ci][k6-test]` against `stable-7.2` |
| 80 | + * [ ] Mark PR as **Draft** to avoid accidentially merging |
| 81 | + * [ ] Get PR approved. **DO NOT MERGE YET**\ |
| 82 | + Info: merging will be done in step *Release the new Version* |
| 83 | + * [ ] Wait for pipeline to be green |
| 84 | +
|
| 85 | +* [ ] Get new Release Sign-off (jira) |
| 86 | + * [ ] **EITHER (preferred):** Find someone who wants the release more than you do, and have them sign-off |
| 87 | + * [ ] **OR (not recommended):** Have the appropriate people sign the *release sign-off* document |
| 88 | +
|
| 89 | +* [ ] Release the new Version |
| 90 | + * [ ] Create tag: `git tag -s v7.2.0 -m "Release 7.2.0"`\ |
| 91 | + Note the tag name scheme is important |
| 92 | + * [ ] Push tag: `git push origin v7.2.0` |
| 93 | + * [ ] Watch the PR to see pipeline succeed (can be restarted) |
| 94 | + * [ ] Smoke test docker image `owncloud/[email protected]` |
| 95 | + * [ ] Choose any docker-compose example from oCIS repository |
| 96 | + * [ ] Export `OCIS_DOCKER_IMAGE=owncloud/ocis` |
| 97 | + * [ ] Export `OCIS_DOCKER_TAG=7.2.0` |
| 98 | + * [ ] `docker compose up -d` |
| 99 | + * [ ] Confirm oCIS version in browser and start the `upload-download-awesome` test |
| 100 | + * [ ] Remove the **Draft** state and Merge PR\ |
| 101 | + This is the PR from step *Prepare Release* |
| 102 | + * [ ] Delete the feature branch |
| 103 | + * [ ] Announce release in *Teams channel: oCIS* |
| 104 | +
|
| 105 | +* [ ] Postprocessing and Finalization |
| 106 | + * [ ] Backport `stable-7.2` to the master branch |
| 107 | + * [ ] Create a `docs-stable-7.2` branch |
| 108 | + * [ ] Create orphan branch: `git checkout --orphan docs-stable-7.2` |
| 109 | + * [ ] Initial commit: `git commit --allow-empty -m "initial commit"` |
| 110 | + * [ ] Push it: `git push` |
| 111 | + * [ ] Adjust the `.drone.star` file to write to `docs-stable-7.2` |
| 112 | + * [ ] Find target_branch value in the docs section and change it to `docs-stable-7.2` |
| 113 | + * [ ] Example: https://github.com/owncloud/ocis/blame/56f7645f0b11c9112e15ce46f6effd2fea01d6be/.drone.star#L2249 |
| 114 | + * [ ] Add `stable-7.2` to the nightly cron jobs in drone (`Settings` -> `Cron Jobs`) |
| 115 | +``` |
| 116 | + |
| 117 | +### Steps for Patch Releases Only |
| 118 | + |
| 119 | +{{< hint warning >}} |
| 120 | +* A patch branch is prepared, based off the appropriate stable branch, and contains all the changes including `web`, `reva` and `dependencies` bumps. The patch branch is merged into the corresponding stable branch. No release candidates are used because the changes are known. |
| 121 | +* Translations |
| 122 | + * For oCIS, all required translations changes are included. |
| 123 | + * For Web, all translation changes have been applied and are part of the web version provided. |
| 124 | +* **Only** bug fixes to the patch branch are allowed. |
| 125 | +{{< /hint >}} |
| 126 | + |
| 127 | +#### Overview |
| 128 | + |
| 129 | +1. Prepare Release\ |
| 130 | +Integrate all patches and set the final version |
| 131 | +1. Sign-off the Releasing Process |
| 132 | +1. Release the new Version |
| 133 | +1. Check Forward Porting to Master |
| 134 | + |
| 135 | +#### Details |
| 136 | + |
| 137 | +``` |
| 138 | +https://owncloud.dev/ocis/releasing_guide/ |
| 139 | +
|
| 140 | +* [ ] Prepare Release |
| 141 | + * [ ] Create a new feature branch based on `stable-7.2` |
| 142 | + * [ ] Move all changelog items from `unreleased` to `7.2.1_2025-04-01` |
| 143 | + * [ ] Bump oCIS version in `ocis-pkg/version/version.go` |
| 144 | + * [ ] Bump oCIS version in `sonar-project.properties` |
| 145 | + * [ ] Create PR with `[full-ci][k6-test]` against `stable-7.2` |
| 146 | + * [ ] Mark PR as **Draft** to avoid accidentially merging |
| 147 | + * [ ] Get PR approved **requires 2 approvals**, **DO NOT MERGE YET**\ |
| 148 | + Info: merging will be done in step *Release the new Version* |
| 149 | + * [ ] Wait for pipeline to be green |
| 150 | +
|
| 151 | +* [ ] Get new Release Sign-off (confluence) |
| 152 | + * [ ] **EITHER (preferred):** Find someone who wants the release more than you do, and have them sign-off |
| 153 | + * [ ] **OR (not recommended):** Have the appropriate people sign the *release sign-off* document |
| 154 | +
|
| 155 | +* [ ] Release the new Version |
| 156 | + * [ ] Create tag: `git tag -s v7.2.1 -m "Release 7.2.1"`\ |
| 157 | + Note the tag name scheme is important |
| 158 | + * [ ] Push tag: `git push origin v7.2.1` |
| 159 | + * [ ] Watch the PR to see pipeline succeed (can be restarted) |
| 160 | + * [ ] Smoke test docker image `owncloud/[email protected]` |
| 161 | + * [ ] Choose any docker-compose example from ocis repository |
| 162 | + * [ ] Export `OCIS_DOCKER_IMAGE=owncloud/ocis` |
| 163 | + * [ ] Export `OCIS_DOCKER_TAG=7.2.1` |
| 164 | + * [ ] `docker compose up -d` |
| 165 | + * [ ] Confirm oCIS version in browser and start the `upload-download-awesome` test |
| 166 | + * [ ] Remove the **Draft** state and Merge PR\ |
| 167 | + This is the PR from step *Prepare Release* |
| 168 | + * [ ] Delete the feature branch |
| 169 | + * [ ] Announce release in *Teams channel: oCIS* |
| 170 | +
|
| 171 | +* [ ] Check if Forward Porting to Master is Required |
| 172 | +``` |
| 173 | + |
| 174 | +## Update Documentation Related Data |
| 175 | + |
| 176 | +### Envvar Changes |
| 177 | + |
| 178 | +Follow the [Release Process for Envvars](https://owncloud.dev/services/general-info/envvars/new-release-process/) documentation to update the required environment variable data. These changes **must** be present in the appropriate `stable-7.2` branch and should be applied to the respective feature branch during the development cycle. This **avoids manually backporting** to `stable-7.2` but may be required if changes go to master instead. Changes to envvars are typically found in the `docs` folder. |
| 179 | + |
| 180 | +{{< hint warning >}} |
| 181 | +The admin docs processes access the data via the branch name, not the tag set. Therefore, any changes applied to the stable branch are accessible to the documentation process without the need of a new version. |
| 182 | +{{< /hint >}} |
| 183 | + |
| 184 | +### Prepare Admin Docs |
| 185 | + |
| 186 | +The admin documentation must be prepared for the new release. |
| 187 | + |
| 188 | +Note that this section is only **informational** for oCIS developers and is done by the documentation team. This is why they need to be informed in a timely manner. |
| 189 | + |
| 190 | +* [ ] Create **overview release notes** in the `docs-main` repo based on the changelog\ |
| 191 | +The source is most likely the unreleased folder during the development cycle |
| 192 | +* [ ] For Major and Minor versions: |
| 193 | + * [ ] Add all **documentation changes** including the upgrade guide in the `docs-ocis` repo in master |
| 194 | + * [ ] Create a new release branch in the `docs-ocis` repo based off master |
| 195 | + * [ ] **Update oCIS branches and versions** in the `docs` repo |
| 196 | +* [ ] For Patch releases: |
| 197 | + * [ ] **Update oCIS versions** in the `docs` repo |
| 198 | + |
0 commit comments