Project

Profile

Help

Pulp 2 Release Planning » History » Sprint/Milestone 20

ttereshc, 12/06/2018 08:59 PM

1 1 bmbouter
# Pulp 2 Release Planning
2
3
This serves as a step-by-step guide to coordinating a Pulp 2 release. This is mostly about facilitating the required communication to keep everyone on the same page.
4
5 8 bmbouter
### Preparing a release
6
7 1 bmbouter
1\. Identify that a release needs to happen via pulp-dev. This can be something that is requested by anyone who wants to release bits that have been merged.
8
9 10 bmbouter
2\. Create a Release Planning Page specific for that release. For example here is a [Z Release Status](https://pulp.plan.io/projects/pulp/wiki/2153_Release_Status) page and a [Y Release Status](https://pulp.plan.io/projects/pulp/wiki/2160_Release_Status) page. At a minimum it should contain the following:
10 1 bmbouter
11
  - dev freeze date
12
  - tentative beta date
13
  - tentative RC date (only for Y releases, not Z releases)
14
  - tentative GA date
15
16
3\. Link to the new page made in step (2) from the overall [Release Schedule](https://pulp.plan.io/projects/pulp/wiki/Release_Schedule).
17
18
4\. Communicate the dev feeze datetime to pulp-dev with a link to the new release schedule.
19 2 bmbouter
20 4 bmbouter
5\. Make sure the version being planned has a 'Platform Release' entry in Redmine's custom field. You can edit this here: https://pulp.plan.io/custom_fields/4/edit
21
22 5 bmbouter
6\. Update the relevant Redmine filter for the [next bugfix](https://pulp.plan.io/projects/pulp/issues?query_id=59) or [next feature](https://pulp.plan.io/projects/pulp/issues?query_id=61) release. Update **both** the name and the filter value. These queries are important as they show the set of issues for the upcoming release.
23 2 bmbouter
24 20 ttereshc
7\. If this is a new Y release, You have to also make the "x.y-beta" and "x.y-release" docs builders using Travis. For example for 2.17-beta , when build is triggered, the docs are built and published with a definition of a "PR like this":
25 13 bmbouter
26 2 bmbouter
### Dev Freeze
27
28
To coordinate the dev freeze you should send 2 emails to the pulp-dev list.
29
30
1\. 24 hours (or earlier) prior to dev feeze it's good to send a reminder to pulp-dev. Here is [an example](https://www.redhat.com/archives/pulp-dev/2018-February/msg00027.html)  
31
2\. After the freeze is done you should send an email with a link to the Redmine query showing the list of fixes and features in that release. Here is [an example](https://www.redhat.com/archives/pulp-dev/2018-February/msg00042.html) This email serves also to notify release engineering and QE that development is done for that release and those are the issues.
32
33
Besides sending email, after the dev freeze occurs, you need to update the Release Schedule in two ways.
34
35
1\. strikethrough the dev freeze date since it occurred  
36
2\. Talk with @pcreech or @ehelms to update the page with a firm (not-tentative) beta date.
37 3 bmbouter
38 19 ttereshc
Before Beta create/update release notes for every project which is a part of that release.
39
40 11 bmbouter
### Beta Announcing
41
42
To be ready to announce a Beta, you must first receive an ack that the beta is built and ready to be published from the build team. Prior to acking that it's ready, the built team works with QE to review automated tests ensuring that the beta can be released. Once the build team says it's ready, do the following:
43
44
1\. Move all of the issues from MODIFIED to ON_QA  
45
2\. Trigger the docs build to ensure the beta's docs are pushed to the right place  
46
3\. Create the beta announcements so you're ready to send them. This is a subset of the GA process. Specifically for Betas we only: (a) trigger the docs build, (b) email announce, (c) twitter announce. We do not blog post or update IRC for beta announcements.  
47 14 bmbouter
4\. Add the Beta to the list of Beta/RC on [this page](https://pulpproject.org/docs/) with a PR like [this one](https://github.com/pulp/pulpproject.org/pull/114) You can merge to that without a review if you are handling the release.  
48
5\. Ask the build team to push the bits to the testing repos and wait for the to ack that they did  
49
6\. Publish and send out the announcements  
50
7\. Strike through the Beta on the Wiki Release page and ensure that the next date (either RC or GA depending on if Y or Z release) is firm and accurate not tentative
51 11 bmbouter
52 15 bmbouter
### Release Candidate Announcing
53
54
To be ready to announce a RC, you must first receive an ack that the RC is built and ready to be published from the build team. Prior to acking that it's ready, the built team works with QE to review automated tests ensuring that the RC can be released. Once the build team says it's ready, do the following:
55
56
1\. Trigger the docs build to ensure the RC's docs are pushed to the right place  
57
2\. Create the RC announcements so you're ready to send them. This is a subset of the GA process. Specifically for RC we only: (a) trigger the docs build, (b) email announce, (c) twitter announce. We do not blog post or update IRC for beta announcements.  
58
3\. Add the RC to the list of Beta/RC on [this page](https://pulpproject.org/docs/) with a PR like [this one](https://github.com/pulp/pulpproject.org/pull/114) You can merge to that without a review if you are handling the release.  
59
4\. Ask the build team to push the bits to the testing repos and wait for the to ack that they did  
60
5\. Publish and send out the announcements  
61
6 Strike through the Beta on the Wiki Release page and ensure that the next date (either RC or GA depending on if Y or Z release) is firm and accurate not tentative
62
63 11 bmbouter
### GA Announcing
64 1 bmbouter
65 6 bmbouter
On GA release day, the build team will build the final assets and work with QE to have them tested. Once they are ready a developer needs to trigger a final docs build and then can send the final announcements. There are several announcements: email, blog, twitter, irc, wiki. For the blog you'll need merge rights to the [github.com/pulp/pulpproject.org/](https://github.com/pulp/pulpproject.org/) repo. For twitter, you'll need the pulpproj twitter credentials, or know someone who can post. For irc updating you'll need to become an op in #pulp or know someone who can.
66 5 bmbouter
67 20 ttereshc
#### Update the docs configs in pulp/pulp 2-master branch.
68 1 bmbouter
69 20 ttereshc
1\. In case of a new Y release create new config like [this](https://github.com/pulp/pulp/pull/3593) at the Beta stage and update at later stages accordingly.  
70
In case of a new Z release update that config accordingly at all stages.
71 16 bmbouter
72 20 ttereshc
2\. In case of a new Y release, [update the latest version of the docs](https://github.com/pulp/pulp/pull/3782) and [update the supported releases](https://github.com/pulp/pulp-ci/pull/618), so the warning that new docs are from unsupported version will go away.
73 1 bmbouter
74 20 ttereshc
#### Triggering docs build
75 1 bmbouter
76 20 ttereshc
Use custom travis build to trigger the build:
77 1 bmbouter
78 20 ttereshc
1\. Trigger a build on this page: https://www.travis-ci.org/pulp/pulp/
79 16 bmbouter
80 20 ttereshc
  - In "More Options" choose "Trigger build"
81
  - Choose 2-master branch
82
  - Provide a custom config from [.travis.yml](https://github.com/pulp/pulp/blob/bc148c5bf351995cc5bfc2aa8c78fd7500b3b744/.travis.yml)
83
84
>   - remove [line with cron condition](https://github.com/pulp/pulp/blob/bc148c5bf351995cc5bfc2aa8c78fd7500b3b744/.travis.yml#L23)
85
>   - [change a branch for build-docs.sh](https://github.com/pulp/pulp/blob/bc148c5bf351995cc5bfc2aa8c78fd7500b3b744/.travis.yml#L22) to the release one, e.g. 2.18-release
86
>   - make sure copy-paste doesn't split long lines into multiple ones, that's a typical reason for a build to fail
87
88 16 bmbouter
2\. Ensure it passes  
89
3\. Load https://docs.pulpproject.org/ and ensure it shows the expected new version as the home page docs.
90 3 bmbouter
91 12 bmbouter
#### Move issues to CLOSED - CURRENTRELEASE
92
93
Use the query for all issues in the release to set all issues to CLOSED - CURRENTRELEASE
94
95 3 bmbouter
#### Email announce
96
97
Use the [community_announce.py](https://github.com/bmbouter/pulp_community_tools/blob/master/release_announce.py) tool to produce the email. Send this email to pulp-list
98
99
#### Blog announce
100
101
The same tool above produces a blog post. Post it using these instructions:
102
103
1\. Make a new .md file in the [\_posts](https://github.com/pulp/pulpproject.org/tree/gh-pages/\_posts) directory that is dated and named appropriately. e.g. 2018-02-27-pulp-2.15.2-generally-available.md
104
105
2\. Push a PR with that file and merge it yourself or ask someone in #pulp-dev to merge it. The blog posts do not require review. It should show up on pulpproject.org within a few minutes after you merge it.
106
107
#### Twitter Announce
108
109
Post on twitter. Feel free to personalize it, but the announce tool also produces a generic tweet for you.
110
111
1\. Get the tweet content from the announce tool  
112 1 bmbouter
2\. Add the link to the blog post on the end  
113 3 bmbouter
3\. Post to twitter as @pulpproj
114
115
#### Update IRC
116
117
1\. Become operator in #pulp with: /msg ChanServ op #pulp  
118 1 bmbouter
2\. Post your content by running something like: /topic http://pulpproject.org/ | Current Release: Pulp 2.15.2 | To report a bug: https://pulp.plan.io/projects/pulp/issues/new | Development chat: #pulp-dev | 2.15.2 Generally Available!  
119 6 bmbouter
3\. Take away your op priviledges with: /msg ChanServ op #pulp -username where username is your irc nick, e.g. bmbouter.
120
121
#### Update the Wiki Release Page
122
123 20 ttereshc
Strikethrough the release date since it's completed. A completed page should be fully struckthrough like [this one](https://pulp.plan.io/projects/pulp/wiki/2152_Release_Status)