2014-04-24 11:17:23 -04:00
# Monthly Release
2014-05-27 08:12:15 -04:00
2015-01-10 22:28:50 -05:00
NOTE: This is a guide used by the GitLab B.V. developers.
2014-04-24 11:17:23 -04:00
2015-01-10 22:28:50 -05:00
It starts 7 working days before the release.
The release manager doesn't have to perform all the work but must ensure someone is assigned.
The current release manager must schedule the appointment of the next release manager.
The new release manager should create overall issue to track the progress.
2014-04-24 11:17:23 -04:00
2015-01-09 15:29:48 -05:00
## Release Manager
2014-04-24 11:17:23 -04:00
2014-11-24 08:59:54 -05:00
A release manager is selected that coordinates all releases the coming month, including the patch releases for previous releases.
2014-11-24 06:14:07 -05:00
The release manager has to make sure all the steps below are done and delegated where necessary.
This person should also make sure this document is kept up to date and issues are created and updated.
2014-04-24 11:17:23 -04:00
2015-01-10 22:28:50 -05:00
## Take vacations into account
2015-01-09 15:29:48 -05:00
2015-01-09 21:14:45 -05:00
The time is measured in weekdays to compensate for weekends.
2015-01-10 22:28:50 -05:00
Do everything on time to prevent problems due to rush jobs or too little testing time.
Make sure that you take into account any vacations of maintainers.
If the release is falling behind immediately warn the team.
2015-01-09 15:29:48 -05:00
## Create an overall issue and follow it
2014-10-27 10:02:21 -04:00
2014-10-21 05:04:09 -04:00
Create issue for GitLab CE project(internal). Name it "Release x.x.x" for easier searching.
2014-10-23 10:24:44 -04:00
Replace the dates with actual dates based on the number of workdays before the release.
2015-01-09 15:29:48 -05:00
All steps from issue template are explained below
2014-07-15 15:53:20 -04:00
```
2015-01-10 22:28:50 -05:00
Xth: (7 working days before the 22nd)
2014-07-15 15:53:20 -04:00
2015-01-09 15:29:48 -05:00
- [ ] Code freeze
2014-12-03 09:40:12 -05:00
- [ ] Update the CE changelog (#LINK)
- [ ] Update the EE changelog (#LINK)
- [ ] Update the CI changelog (#LINK)
2014-12-03 08:21:00 -05:00
- [ ] Triage the omnibus-gitlab milestone
2014-07-15 15:53:20 -04:00
2015-01-10 22:28:50 -05:00
Xth: (6 working days before the 22nd)
2014-07-16 05:27:18 -04:00
2015-01-09 15:29:48 -05:00
- [ ] Merge CE master in to EE master via merge request (#LINK)
- [ ] Create CE, EE, CI RC1 versions (#LINK)
2015-01-09 21:14:45 -05:00
- [ ] Determine QA person and notify this person
2014-07-16 05:27:18 -04:00
2015-01-10 22:28:50 -05:00
Xth: (5 working days before the 22nd)
2014-07-15 15:53:20 -04:00
2015-01-09 21:14:45 -05:00
- [ ] Do QA and fix anything coming out of it (#LINK)
2015-01-09 15:29:48 -05:00
- [ ] Close the omnibus-gitlab milestone
2014-07-15 15:53:20 -04:00
2015-01-10 22:28:50 -05:00
Xth: (4 working days before the 22nd)
2014-07-15 15:53:20 -04:00
2015-01-09 21:14:45 -05:00
- [ ] Build rc1 package for GitLab.com (https://dev.gitlab.org/cookbooks/chef-repo/blob/master/doc/administration.md#build-a-package)
2014-12-03 08:21:00 -05:00
- [ ] Update GitLab.com with rc1 (#LINK) (https://dev.gitlab.org/cookbooks/chef-repo/blob/master/doc/administration.md#deploy-the-package)
2015-01-09 21:14:45 -05:00
2015-01-10 22:28:50 -05:00
Xth: (3 working days before the 22nd)
2015-01-09 21:14:45 -05:00
2015-01-09 15:29:48 -05:00
- [ ] Create regression issues (CE, CI) (#LINK)
- [ ] Tweet about rc1 (#LINK)
2015-01-09 21:14:45 -05:00
- [ ] Prepare the blog post (#LINK)
2015-01-10 22:28:50 -05:00
Xth: (2 working days before the 22nd)
2014-07-15 15:53:20 -04:00
2015-01-09 15:29:48 -05:00
- [ ] Merge CE stable branch into EE stable branch
2015-01-09 21:14:45 -05:00
- [ ] Check that everyone is mentioned on the blog post (the reviewer should have done this one working day ago)
2014-07-15 15:53:20 -04:00
2015-01-10 22:28:50 -05:00
Xth: (1 working day before the 22nd)
2015-01-09 15:29:48 -05:00
- [ ] Create CE, EE, CI stable versions (#LINK)
- [ ] Create Omnibus tags and build packages
2014-07-15 15:53:20 -04:00
22nd:
2014-12-03 09:40:12 -05:00
- [ ] Release CE, EE and CI (#LINK)
2014-07-15 15:53:20 -04:00
2015-01-10 22:28:50 -05:00
Xth: (1 working day after the 22nd)
2014-07-15 15:53:20 -04:00
2015-01-10 22:28:50 -05:00
- [ ] Update GitLab.com with the stable version (#LINK)
2014-07-15 15:53:20 -04:00
```
2015-01-09 15:29:48 -05:00
- - -
2013-05-27 03:21:01 -04:00
2015-01-09 15:29:48 -05:00
## Code Freeze
2013-05-27 03:21:01 -04:00
2015-01-09 15:29:48 -05:00
Stop merging code in master, except for important bug fixes
2014-04-24 11:17:23 -04:00
2015-01-09 15:29:48 -05:00
## Update changelog
2014-12-03 09:40:12 -05:00
2015-01-12 22:19:22 -05:00
Any changes not yet added to the changelog are added by lead developer and in that merge request the complete team is
asked if there is anything missing.
2014-12-03 09:40:12 -05:00
2015-01-09 15:29:48 -05:00
There are three changelogs that need to be updated: CE, EE and CI.
2014-07-15 15:53:20 -04:00
2015-01-12 22:26:51 -05:00
Remove the Note text in the stable branches.
2015-01-12 22:19:22 -05:00
2015-01-09 15:29:48 -05:00
## Create RC1 (CE, EE, CI)
2014-07-15 15:53:20 -04:00
2015-01-09 15:29:48 -05:00
[Follow this How-to guide ](howto_rc1.md ) to create RC1.
2014-10-27 10:02:21 -04:00
2015-01-12 22:19:22 -05:00
## Prepare CHANGELOG for next release
Once the stable branches have been created, update the CHANGELOG in `master` with the upcoming version and add 70 empty
lines to it. We do this in order to avoid merge conflicts when merging the CHANGELOG.
Make sure that the CHANGELOG im master contains the following disclaimer message:
2015-01-12 22:26:51 -05:00
> Note: The upcoming release contains empty lines to reduce the number of merge conflicts, scroll down to see past releases.
2015-01-12 22:19:22 -05:00
2015-01-09 21:14:45 -05:00
## QA
Create issue on dev.gitlab.org `gitlab` repository, named "GitLab X.X QA" in order to keep track of the progress.
Use the omnibus packages of Enterprise Edition using [this guide ](https://dev.gitlab.org/gitlab/gitlab-ee/blob/master/doc/release/manual_testing.md ).
**NOTE** Upgrader can only be tested when tags are pushed to all repositories. Do not forget to confirm it is working before releasing. Note that in the issue.
#### Fix anything coming out of the QA
Create an issue with description of a problem, if it is quick fix fix it yourself otherwise contact the team for advice.
**NOTE** If there is a problem that cannot be fixed in a timely manner, reverting the feature is an option! If the feature is reverted,
create an issue about it in order to discuss the next steps after the release.
2015-01-09 15:29:48 -05:00
## Update GitLab.com with RC1
2014-04-24 11:17:23 -04:00
2014-07-16 05:02:41 -04:00
Merge the RC1 EE code into GitLab.com.
Once the build is green, create a package.
2014-08-26 04:20:55 -04:00
If there are big database migrations consider testing them with the production db on a VM.
2014-07-16 05:02:41 -04:00
Try to deploy in the morning.
2014-04-24 11:17:23 -04:00
It is important to do this as soon as possible, so we can catch any errors before we release the full version.
2015-01-09 15:29:48 -05:00
## Create a regressions issue
2014-06-22 08:03:52 -04:00
On [the GitLab CE issue tracker on GitLab.com ](https://gitlab.com/gitlab-org/gitlab-ce/issues/ ) create an issue titled "GitLab X.X regressions" add the following text:
This is a meta issue to discuss possible regressions in this monthly release and any patch versions.
Please do not raise issues directly in this issue but link to issues that might warrant a patch release.
The decision to create a patch release or not is with the release manager who is assigned to this issue.
The release manager will comment here about the plans for patch releases.
Assign the issue to the release manager and /cc all the core-team members active on the issue tracker. If there are any known bugs in the release add them immediately.
2015-01-09 15:29:48 -05:00
## Tweet about RC1
2014-06-27 04:46:52 -04:00
Tweet about the RC release:
2014-07-18 09:15:53 -04:00
> GitLab x.x.0.rc1 is out. This release candidate is only suitable for testing. Please link regressions issues from LINK_TO_REGRESSION_ISSUE
2014-05-22 09:18:28 -04:00
2015-01-09 15:29:48 -05:00
## Prepare the blog post
2014-07-23 03:00:19 -04:00
2015-01-10 20:34:35 -05:00
1. Start with a complete copy of the [release blog template ](https://gitlab.com/gitlab-com/www-gitlab-com/blob/master/doc/release_blog_template.md ) and fill it out.
1. Make sure the blog post contains information about the GitLab CI release.
1. Check the changelog of CE and EE for important changes.
1. Also check the CI changelog
1. Add a proposed tweet text to the blog post WIP MR description.
1. Create a WIP MR for the blog post
1. Ask Dmitriy to add screenshots to the WIP MR.
1. Decide with team who will be the MVP user.
1. Create WIP MR for adding MVP to MVP page on website
1. Add a note if there are security fixes: This release fixes an important security issue and we advise everyone to upgrade as soon as possible.
1. Create a merge request on [GitLab.com ](https://gitlab.com/gitlab-com/www-gitlab-com/tree/master )
1. Assign to one reviewer who will fix spelling issues by editing the branch (either with a git client or by using the online editor)
1. Comment to the reviewer: '@person Please mention the whole team as soon as you are done (3 workdays before release at the latest)'
2014-07-23 03:00:19 -04:00
2015-01-09 15:29:48 -05:00
## Create CE, EE, CI stable versions
2014-08-26 04:04:57 -04:00
2014-11-11 04:47:44 -05:00
Get release tools
2013-10-29 19:46:42 -04:00
2014-05-01 09:05:22 -04:00
```
2014-11-11 04:47:44 -05:00
git clone git@dev.gitlab.org:gitlab/release-tools.git
cd release-tools
2014-05-01 09:05:22 -04:00
```
2014-11-11 04:47:44 -05:00
Bump version, create release tag and push to remotes:
2014-05-01 09:05:22 -04:00
```
2014-11-11 04:47:44 -05:00
bundle exec rake release["x.x.0"]
2014-05-01 09:05:22 -04:00
```
2014-12-03 09:40:12 -05:00
Also perform these steps for GitLab CI:
2015-01-10 20:34:35 -05:00
1. bump version in the stable branch
1. create annotated tag
1. push the stable branch and the annotated tag to the public repositories
2014-05-22 09:18:28 -04:00
2014-11-11 04:47:44 -05:00
Update [installation.md ](/doc/install/installation.md ) to the newest version in master.
2014-04-17 10:30:24 -04:00
2015-01-09 15:29:48 -05:00
## Create Omnibus tags and build packages
2014-11-11 04:47:44 -05:00
Follow the [release doc in the Omnibus repository ](https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/release.md ).
This can happen before tagging because Omnibus uses tags in its own repo and SHA1's to refer to the GitLab codebase.
2014-06-06 03:36:19 -04:00
2014-09-22 11:26:18 -04:00
2015-01-09 15:29:48 -05:00
## Release CE, EE and CI
2014-12-23 17:28:09 -05:00
2015-01-10 20:34:35 -05:00
__1. Publish packages for new release__
2014-09-22 11:26:18 -04:00
Update `downloads/index.html` and `downloads/archive/index.html` in `www-gitlab-com` repository.
2015-01-10 20:34:35 -05:00
__2. Publish blog for new release__
2014-04-17 10:30:24 -04:00
2015-01-09 15:29:48 -05:00
Doublecheck the everyone has been mentioned in the blog post.
2014-05-22 09:18:28 -04:00
Merge the [blog merge request ](#1-prepare-the-blog-post ) in `www-gitlab-com` repository.
2015-01-10 20:34:35 -05:00
__3. Tweet to blog__
2014-04-17 10:30:24 -04:00
2014-07-22 10:36:29 -04:00
Send out a tweet to share the good news with the world.
List the most important features and link to the blog post.
2014-04-17 10:30:24 -04:00
2014-12-23 02:37:26 -05:00
Proposed tweet "Release of GitLab X.X & CI Y.Y! FEATURE, FEATURE and FEATURE < link-to-blogpost > #gitlab "
Consider creating a post on Hacker News.
2014-05-22 09:18:28 -04:00
2015-01-10 22:28:50 -05:00
## Update GitLab.com with the stable version
2014-05-19 05:50:18 -04:00
2014-12-03 08:41:39 -05:00
- Deploy the package (should not need downtime because of the small difference with RC1)