GitLab Release and Maintenance Policy
GitLab has strict policies governing version naming, as well as release pace for major, minor, patch and security releases. New releases are usually announced on the GitLab blog.
Our current policy is:
- Backporting bug fixes for only the current stable release at any given time, see patch releases.
- Backporting to to the previous two monthly releases in addition to the current stable release, see security releases.
GitLab uses Semantic Versioning for its releases:
For example, for GitLab version 10.5.7:
10represents the major version. The major release was 10.0.0, but often referred to as 10.0.
5represents the minor version. The minor release was 10.5.0, but often referred to as 10.5.
7represents the patch number.
Any part of the version number can increment into multiple digits, for example, 13.10.11.
The following table describes the version types and their release cadence:
|Major||For significant changes, or when any backward-incompatible changes are introduced to the public API.||Yearly. The next major release is GitLab 13.0 on May 22, 2020. Subsequent major releases will be scheduled for May 22 each year, by default.|
|Minor||For when new backward-compatible functionality is introduced to the public API, a minor feature is introduced, or when a set of smaller features is rolled out.||Monthly on the 22nd.|
|Patch||For backward-compatible bug fixes that fix incorrect behavior. See Patch releases.||As needed.|
Patch releases only include bug fixes for the current stable released version of GitLab.
These two policies are in place because:
- GitLab has Community and Enterprise distributions, doubling the amount of work necessary to test/release the software.
- Backporting to more than one release creates a high development, quality assurance, and support cost.
- Supporting parallel version discourages incremental upgrades which over time accumulate in complexity and create upgrade challenges for all users. GitLab has a dedicated team ensuring that incremental upgrades (and installations) are as simple as possible.
- The number of changes created in the GitLab application is high, which contributes to backporting complexity to older releases. In number of cases, backporting has to go through the same review process a new change goes through.
- Ensuring that tests pass on older release is a considerable challenge in some cases, and as such is very time consuming.
Including new features in patch releases is not possible as that would break Semantic Versioning. Breaking Semantic Versioning has the following consequences for users that have to adhere to various internal requirements (for example, org. compliance, verifying new features, and similar):
- Inability to quickly upgrade to leverage bug fixes included in patch versions.
- Inability to quickly upgrade to leverage security fixes included in patch versions.
- Requirements consisting of extensive testing for not only stable GitLab release, but every patch version.
In cases where a strategic user has a requirement to test a feature before it is officially released, we can offer to create a Release Candidate (RC) version that will include the specific feature. This should be needed only in extreme cases, and can be requested for consideration by raising an issue in the release/tasks issue tracker. It is important to note that the Release Candidate will also contain other features and changes as it is not possible to easily isolate a specific feature (similar reasons as noted above). The Release Candidate will be no different than any code that is deployed to GitLab.com or is publicly accessible.
Backporting to older releases
Backporting to more than one stable release is reserved for security releases. In some cases however, we may need to backport a bug fix to more than one stable release, depending on the severity of the bug.
The decision on whether backporting a change will be performed is done at the discretion of the current release managers, similar to what is described in the managing bugs process, based on all of the following:
Estimated severity of the bug: Highest possible impact to users based on the current definition of severity.
Estimated priority of the bug: Immediate impact on all impacted users based on the above estimated severity.
Potentially incurring data loss and/or security breach.
Potentially affecting one or more strategic accounts due to a proven inability by the user to upgrade to the current stable version.
If all of the above are satisfied, the backport releases can be created for
the current stable release, and two previous monthly releases.
For instance, if we release
11.2.1 with a fix for a severe bug introduced in
11.0.0, we could backport the fix to a new
11.1.x patch release.
To request backporting to more than one stable release for consideration, raise an issue in the release/tasks issue tracker.
Security releases are a special kind of patch release that only include security fixes and patches (see below) for the previous two monthly releases in addition to the current stable release.
For very serious security issues, there is precedent to backport security fixes to even more monthly releases of GitLab. This decision is made on a case-by-case basis.
We encourage everyone to run the latest stable release to ensure that you can easily upgrade to the most secure and feature-rich GitLab experience. In order to make sure you can easily run the most recent stable release, we are working hard to keep the update process simple and reliable.
If you are unable to follow our monthly release cycle, there are a couple of cases you need to consider.
It is considered safe to jump between patch versions and minor versions within one major version. For example, it is safe to:
- Upgrade the patch version:
- Upgrade the minor version:
Upgrading the major version requires more attention. We cannot guarantee that upgrading between major versions will be seamless. As previously mentioned, major versions are reserved for backwards incompatible changes. We recommend that you first upgrade to the latest available minor version within your major version. By doing this, you can address any deprecation messages that could change behavior in the next major release.
It's also important to ensure that any background migrations have been fully completed
before upgrading to a new major version. To see the current size of the
Check for background migrations before upgrading.
Version 12 onwards: Extra step for major upgrades
From version 12 onwards, an additional step is required. More significant migrations may occur during major release upgrades.
To ensure these are successful:
- Increment to the first minor version (
x.0.x) during the major version jump.
- Proceed with upgrading to a newer release.
Upgrades from old versions
8.11.xand earlier: you might have to upgrade to
8.12.0specifically before you can upgrade to
8.17.7. This was reported in an issue.
- CI changes prior to version 8.0 when it was merged into GitLab.
- Version specific changes in the Omnibus documentation.
Example upgrade paths
Please see the table below for some examples:
|Latest stable version||Your version||Recommended upgrade path||Note|
||Four intermediate versions are required: the final 9.5, 10.8, 11.11 releases, plus 12.0.|
NOTE: Note: Instructions for installing a specific version of GitLab or downloading the package locally for installation can be found at GitLab Repositories.
Check our release posts.
Each month, we publish either a major or minor release of GitLab. At the end of those release posts there are three sections to look for: deprecations, important notes, and upgrade barometer. These will draw your attention to:
- Steps you need to perform as part of an upgrade. For example 8.12 required the Elasticsearch index to be recreated. Any older version of GitLab upgrading to 8.12 or higher would require this.
- Changes to the versions of software we support such as ceasing support for IE11 in GitLab 13.
You should check all the major and minor versions you're passing over.