Skip to content
Snippets Groups Projects

Update patch release documentation

Merged Mayra Cabrera requested to merge update-patch-release-documentation into master
All threads resolved!
4 files
+ 162
186
Compare changes
  • Side-by-side
  • Inline
Files
4
  • 481e68f2
    Update patch release documentation · 481e68f2
    Mayra Cabrera authored
    Re-structure patch release documentation:
    
    * Moves the 'patch/process_new.md'  to 'patch/patch/engineers.md'.
      Leaves a link in the former since that URL has been shared broadly.
    * Creates a dedicated runbook for release managers and GitLab engineers.
    * Adds a section to specificy the steps for backporting to older
      sections.
+ 106
0
 
# Patch release runbook for GitLab Engineers
 
 
## General guidelines
 
 
As defined on the [maintenance policy], patch releases can only include
 
bug fixes for the current stable released version of GitLab.
 
 
Bug fixes can be backported to the current version if:
 
 
* They have been previously fixed and merged into the GitLab default branch.
 
* They have been deployed to GitLab.com.
 
* They are bug fixes. Per the maintenance policy [patch release guidelines], features can't be backported to previous versions
 
 
To backport bug fixes to older versions, take a look at the [backporting to older versions] section.
 
 
## Backporting a bug fix in the [GitLab project]
 
 
Once it has been deemed a bug fix should be backported, engineers should:
 
 
1. Ensure the bug fixes comply with the [general guidelines]: The original MR is a bug fix that has been deployed to GitLab.com.
 
1. Open up a merge request in the GitLab canonical project, the MR should target the stable branch associated with the current version.
 
* **Note**: For efficiency, a merge request can be created via UI using the [cherry-pick feature].
 
1. Use the [stable branch template] and follow the check list.
 
1. Ensure the merge request is approved by a maintainer. Merge requests targeting stable branches
 
only require one approval.
 
1. Add a [severity label] to the merge request (if applicable). Severity labels helps release managers assess the urgency of
 
a patch release.
 
1. Ensure the [`ee:package-and-test-ee` pipeline] is executed. This pipeline executes end-to-end testing for the GitLab platform
 
guaranteeing the code changes are compliant from the Quality side.
 
1. Verify the `ee:package-and-test-e` is successfully executed. If failures arise, contact a Software in Test (SET) engineer to
 
review if the failure is related to the merge request.
 
 
### Process for maintainers
 
 
When a merge request targeting a stable branch is assigned to maintainers, they should:
 
 
1. Confirm the merge request being backported has been deployed to GitLab.com
 
1. Verify only bug fixes are being backported. Per the [maintenance policy], features can't be backported.
 
1. Ensure the [`ee:package-and-test-ee` pipeline] has been executed.
 
1. Verify if there are failures on the `ee:package-and-test-ee` pipeline. Due to [test flakiness], this
 
pipeline is allowed to fail, and as a consequence, it won't cause a failure on the upstream GitLab pipeline.
 
Failures on this pipeline should be reviewed by a Software Engineer in Test (SET).
 
**Don't merge the backport until a SET has confirmed the failures are not related.**
 
1. Once the above conditions are met, approve and set the merge request to MWPS.
 
 
## Backporting a buf fix on [Managed Versioning] projects
 
 
Once it has been deemed a bug fix should be backported, engineers should:
 
 
1. Ensure the bug fixes comply with the [general guidelines]: The original MR is a bug fix that has been deployed to GitLab.com.
 
1. Open up a merge request in the respective canonical project. The merge request should target
 
the stable branch associated with the current version.
 
1. Use the stable branch template and follow the checklist
 
* [Omnibus](https://gitlab.com/gitlab-org/omnibus-gitlab/-/blob/master/.gitlab/merge_request_templates/Stable%20Branch.md)
 
* [CNG](https://gitlab.com/gitlab-org/build/CNG/-/blob/master/.gitlab/merge_request_templates/Stable%20Branch.md)
 
1. Ensure the merge request is approved by a maintainer. Merge requests targeting stable branches
 
only require one approval.
 
1. Add a [severity label] to the merge request (if applicable). Severity labels helps release managers assess the urgency of
 
a patch release.
 
 
### Process for maintainers
 
 
When a merge request targeting a stable branch is assigned to maintainers, they should:
 
 
1. Ensure the merge request being backported has been deployed to GitLab.com
 
1. Verify only bug fixes are being backported. Per the [maintenance policy], features can't be backported.
 
1. Once the above conditions are met, proceed to merge the merge request.
 
 
## Additional considerations
 
 
1. Per the maintenance policy, continous patch releases will be prepared for the current version. If a patch
 
release for an older version is required, take a look at the [backporting to older versions] section.
 
1. Tooling and guidance for a self-serve approach was introduced on 15.10, this means backports targeting older
 
versions will require release managers' approval.
 
1. Keep an eye in Slack development and releases channels. When a patch release is published a notification
 
is sent to multiple slack channels to broadcast the patch release.
 
1. Delivery is working on generating [long lived enviroments] to be continuously deployed from stable branches,
 
as part of this effort, on the a downstream pipeline called `start-release-environments-pipeline` is automatically
 
triggered on commits on stable branches on the [GitLab canonical project], this one is allowed to fail, and such,
 
failures can be temporarily ignored.
 
 
## Backporting to older versions
 
 
Non-security patches that are outside of our [maintenance policy] must be requested
 
and agreed upon by the Release Managers and the requester. Read through the [backporting to older releases]
 
documentation and open up a [backport request] issue if the bug fix meets the criteria.
 
 
## Feedback and questions
 
 
Reach out the Delivery team on the [#releases] Slack channel for feedback and/or questions.
 
 
[maintenance policy]: https://docs.gitlab.com/ee/policy/maintenance.html
 
[patch release guidelines]: https://docs.gitlab.com/ee/policy/maintenance.html#patch-releases
 
[GitLab project]: https://gitlab.com/gitlab-org/gitlab
 
[`ee:package-and-test-ee` pipeline]: https://docs.gitlab.com/ee/development/testing_guide/end_to_end/package_and_test_pipeline.html
 
[Managed Versioning]: https://gitlab.com/gitlab-org/release/docs/-/blob/master/components/managed-versioning/index.md
 
[GitLab canonical project]: https://gitlab.com/gitlab-org/gitlab
 
[stable branch template]: https://gitlab.com/gitlab-org/gitlab/-/blob/master/.gitlab/merge_request_templates/Stable%20Branch.md
 
[severity label]: https://about.gitlab.com/handbook/engineering/quality/issue-triage/#severity
 
[test flakiness]: https://about.gitlab.com/handbook/engineering/quality/quality-engineering/test-metrics-dashboards/#package-and-test
 
[#releases]: https://gitlab.slack.com/archives/C0XM5UU6B
 
[long lived environments]: https://gitlab.com/groups/gitlab-com/gl-infra/-/epics/837
 
[cherry-pick feature]: https://docs.gitlab.com/ee/user/project/merge_requests/cherry_pick_changes.html#cherry-pick-all-changes-from-a-merge-request
 
[backport request]: https://gitlab.com/gitlab-org/release/tasks/-/issues/new?issuable_template=Backporting-request
 
[general guidelines]: #general-guidelines
 
[backporting to older releases]: https://docs.gitlab.com/ee/policy/maintenance.html#backporting-to-older-releases
Loading