Merge lp:~frankban/juju-gui/release-process-fixes into lp:juju-gui/experimental

Proposed by Francesco Banconi
Status: Merged
Merged at revision: 297
Proposed branch: lp:~frankban/juju-gui/release-process-fixes
Merge into: lp:juju-gui/experimental
Diff against target: 148 lines (+36/-25)
1 file modified
docs/process.rst (+36/-25)
To merge this branch: bzr merge lp:~frankban/juju-gui/release-process-fixes
Reviewer Review Type Date Requested Status
Juju GUI Hackers Pending
Review via email: mp+141738@code.launchpad.net

Description of the change

Fix release process documentation

And other minor changes, like text formatting fixes
and trailing spaces removal.

https://codereview.appspot.com/7039049/

To post a comment you must log in.
Revision history for this message
Francesco Banconi (frankban) wrote :
Download full text (8.4 KiB)

Reviewers: mp+141738_code.launchpad.net,

Message:
Please take a look.

Description:
Fix release process documentation

And other minor changes, like text formatting fixes
and trailing spaces removal.

https://code.launchpad.net/~frankban/juju-gui/release-process-fixes/+merge/141738

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/7039049/

Affected files:
   A [revision details]
   M docs/process.rst

Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision:
<email address hidden>
+New revision:
<email address hidden>

Index: docs/process.rst
=== modified file 'docs/process.rst'
--- docs/process.rst 2012-12-21 02:16:06 +0000
+++ docs/process.rst 2013-01-03 11:45:17 +0000
@@ -106,8 +106,8 @@
  =====================================

  - Get a clean branch of the trunk:: ``bzr branch lp:juju-gui``.
-- If you are using a pre-existing branch, make sure it is up-to-date::
``bzr
- pull``.
+- If you are using a pre-existing branch, make sure it is up-to-date::
+ ``bzr pull``.
  - Verify that the top-most version in CHANGES.yaml specifies the expected
    version string. It should be bigger than the most recent version found
on
    https://launchpad.net/juju-gui/stable . If the most recent version
string
@@ -115,24 +115,25 @@

    * Decide what the next version number should be (see http://semver.org/)
and
      change "unreleased" to that value.
- * Commit to the branch with this checkin message: ``bzr commit -m 'Set
- version for release.'``
- * Push the branch directly to the parent (``bzr push`` should work).
+ * Commit to the branch with this checkin message:
+ ``bzr commit -m 'Set version for release.'``
+ * Push the branch directly to the parent (``bzr push :parent`` should
work).

-- Run the tests and verify they pass: ``make test-prod`` and then
- ``make test-debug``.
+- Run the tests and verify they pass: ``FINAL=1 make test-prod`` and then
+ ``FINAL=1 make test-debug``.
  - Create the tarball: ``FINAL=1 make distfile``. The process will end by
    reporting the name of the tarball it made.
  - In an empty temporary directory somewhere else on your system, expand the
    tarball: ``tar xvzf PATH_TO_TARBALL``
-- In that directory, start a server: ``python -m SimpleHTTPServer 8888``
+- In the ``build-prod`` directory, inside the uncompressed one, start a
server:
+ ``python -m SimpleHTTPServer 8888``
  - In Chrome and Firefox, QA the application. At the very least, load the
app,
    open the charm panel, go to an inner page, and make sure there are no
404s
    or Javascript errors in the console. We want a real QA script for the
    future.
  - For now, we will assume you would like to verify the release on the
    Launchpad staging server. As we become more confident with this process,
- this step may become unnecessary. In the checkout, run ``FINAL=1 make
+ this step may become unnecessary. In the branch, run ``FINAL=1 make
    dis...

Read more...

Revision history for this message
Nicola Larosa (teknico) wrote :

Land with (small) changes.

https://codereview.appspot.com/7039049/diff/1/docs/process.rst
File docs/process.rst (right):

https://codereview.appspot.com/7039049/diff/1/docs/process.rst#newcode109
docs/process.rst:109: - If you are using a pre-existing branch, make
sure it is up-to-date::
No need for double colons in the two lines above.

https://codereview.appspot.com/7039049/diff/1/docs/process.rst#newcode128
docs/process.rst:128: - In the ``build-prod`` directory, inside the
uncompressed one, start a server:
s/inside/under/

https://codereview.appspot.com/7039049/diff/1/docs/process.rst#newcode183
docs/process.rst:183: - If you are using a pre-existing branch, make
sure it is up-to-date::
No need for double colons in the two lines above.

https://codereview.appspot.com/7039049/

297. By Francesco Banconi

Fixes per review

Revision history for this message
Francesco Banconi (frankban) wrote :

Thanks for the review Nicola.

https://codereview.appspot.com/7039049/diff/1/docs/process.rst
File docs/process.rst (right):

https://codereview.appspot.com/7039049/diff/1/docs/process.rst#newcode109
docs/process.rst:109: - If you are using a pre-existing branch, make
sure it is up-to-date::
On 2013/01/03 12:06:30, teknico wrote:
> No need for double colons in the two lines above.

Done.

https://codereview.appspot.com/7039049/diff/1/docs/process.rst#newcode128
docs/process.rst:128: - In the ``build-prod`` directory, inside the
uncompressed one, start a server:
On 2013/01/03 12:06:30, teknico wrote:
> s/inside/under/

Done.

https://codereview.appspot.com/7039049/diff/1/docs/process.rst#newcode183
docs/process.rst:183: - If you are using a pre-existing branch, make
sure it is up-to-date::
On 2013/01/03 12:06:30, teknico wrote:
> No need for double colons in the two lines above.

Done.

https://codereview.appspot.com/7039049/

Revision history for this message
Francesco Banconi (frankban) wrote :
Revision history for this message
Francesco Banconi (frankban) wrote :

Thanks Benji.

https://codereview.appspot.com/7039049/diff/4002/docs/process.rst
File docs/process.rst (right):

https://codereview.appspot.com/7039049/diff/4002/docs/process.rst#newcode123
docs/process.rst:123: ``FINAL=1 make test-debug``.
On 2013/01/03 14:01:52, benji wrote:
> Do you really need "FINAL=1" for tests? The last time I looked at the
Makefile
> it didn't change the way tests worked.

As discussed on IRC, I'll leave this workaround waiting for
https://bugs.launchpad.net/juju-gui/+bug/1095663 to be fixed.

https://codereview.appspot.com/7039049/diff/4002/docs/process.rst#newcode128
docs/process.rst:128: - In the ``build-prod`` directory, under the
uncompressed one, start a server:
On 2013/01/03 14:01:52, benji wrote:
> I can't parse this. The "under the uncompressed one" part is what
throws me
> off. I /think/ this is what it should say: "While still in the
directory where
> you extracted the tar file, change to the build-prod directory and
start a
> server:..."

> That might be better as two steps: one to change to the directory and
one to
> start the server.

Done.

https://codereview.appspot.com/7039049/diff/4002/docs/process.rst#newcode196
docs/process.rst:196: - In the ``build-prod`` directory, start a server:
On 2013/01/03 14:01:52, benji wrote:
> Should this line should be identical to the parallel step in the
stable release
> instructions (line 128)?

You are right, done.

https://codereview.appspot.com/7039049/

298. By Francesco Banconi

Changes per review.

Revision history for this message
Francesco Banconi (frankban) wrote :

*** Submitted:

Fix release process documentation

And other minor changes, like text formatting fixes
and trailing spaces removal.

R=teknico, benji
CC=
https://codereview.appspot.com/7039049

https://codereview.appspot.com/7039049/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'docs/process.rst'
2--- docs/process.rst 2012-12-21 02:16:06 +0000
3+++ docs/process.rst 2013-01-03 14:55:26 +0000
4@@ -106,8 +106,8 @@
5 =====================================
6
7 - Get a clean branch of the trunk:: ``bzr branch lp:juju-gui``.
8-- If you are using a pre-existing branch, make sure it is up-to-date:: ``bzr
9- pull``.
10+- If you are using a pre-existing branch, make sure it is up-to-date:
11+ ``bzr pull``.
12 - Verify that the top-most version in CHANGES.yaml specifies the expected
13 version string. It should be bigger than the most recent version found on
14 https://launchpad.net/juju-gui/stable . If the most recent version string
15@@ -115,24 +115,25 @@
16
17 * Decide what the next version number should be (see http://semver.org/) and
18 change "unreleased" to that value.
19- * Commit to the branch with this checkin message: ``bzr commit -m 'Set
20- version for release.'``
21- * Push the branch directly to the parent (``bzr push`` should work).
22+ * Commit to the branch with this checkin message:
23+ ``bzr commit -m 'Set version for release.'``
24+ * Push the branch directly to the parent (``bzr push :parent`` should work).
25
26-- Run the tests and verify they pass: ``make test-prod`` and then
27- ``make test-debug``.
28+- Run the tests and verify they pass: ``FINAL=1 make test-prod`` and then
29+ ``FINAL=1 make test-debug``.
30 - Create the tarball: ``FINAL=1 make distfile``. The process will end by
31 reporting the name of the tarball it made.
32 - In an empty temporary directory somewhere else on your system, expand the
33 tarball: ``tar xvzf PATH_TO_TARBALL``
34-- In that directory, start a server: ``python -m SimpleHTTPServer 8888``
35+- While still in the directory where you extracted the tar file, change to the
36+ build-prod directory and start a server: ``python -m SimpleHTTPServer 8888``.
37 - In Chrome and Firefox, QA the application. At the very least, load the app,
38 open the charm panel, go to an inner page, and make sure there are no 404s
39 or Javascript errors in the console. We want a real QA script for the
40 future.
41 - For now, we will assume you would like to verify the release on the
42 Launchpad staging server. As we become more confident with this process,
43- this step may become unnecessary. In the checkout, run ``FINAL=1 make
44+ this step may become unnecessary. In the branch, run ``FINAL=1 make
45 dist``. This will step you through signing the tarball, connecting
46 to Launchpad, and uploading the release.
47
48@@ -151,8 +152,9 @@
49 SimpleHTTPServer 8888``, and do a quick double-check in the browser that it
50 is what you expect. Looking at juju-ui/version.js should also show you the
51 version you expect.
52-- This is a final release. Consider asking others to verify the package on staging.
53-- Now it is time for the actual, real release. Head back to your checkout and
54+- This is a final release. Consider asking others to verify the package on
55+ staging.
56+- Now it is time for the actual, real release. Head back to your branch and
57 run ``FINAL=1 PROD=1 make dist``. The computer will again walk you
58 through the process.
59
60@@ -165,32 +167,41 @@
61 - Go to https://launchpad.net/juju-gui/stable and verify that you see
62 a new release and a new download file.
63
64+- Set the version back to ``unreleased`` by doing the following.
65+
66+ * Restore ``- unreleased:`` as most recent version string in CHANGES.yaml.
67+ * Commit to the branch with this checkin message:
68+ ``bzr commit -m 'Set version back to unreleased.'``
69+ * Push the branch directly to the parent (``bzr push :parent`` should work).
70+
71 You are done!
72
73 Checklist for Making a Developer Release
74 ========================================
75
76 - Get a clean branch of the trunk:: ``bzr branch lp:juju-gui``.
77-- If you are using a pre-existing branch, make sure it is up-to-date::
78+- If you are using a pre-existing branch, make sure it is up-to-date:
79 ``bzr pull``.
80 - Verify that the top-most version in CHANGES.yaml is "unreleased."
81-- Run ``bzr revno``. The revno should be bigger than the most recent release found on
82- `Launchpad <https://launchpad.net/juju-gui/trunk>`_.
83-- Run the tests and verify they pass: ``make test``.
84+- Run ``bzr revno``. The revno should be bigger than the most recent release
85+ found on `Launchpad <https://launchpad.net/juju-gui/trunk>`_.
86+- Run the tests and verify they pass: ``make test-prod`` and then
87+ ``make test-debug``.
88 - Create the tarball: ``make distfile``. It will end by reporting the name of
89 the tarball it made.
90 - In an empty temporary directory somewhere else on your system, expand the
91 tarball: ``tar xvzf PATH_TO_TARBALL``.
92-- Looking at juju-ui/version.js should show you a version string that combines
93- the value in the checkout's CHANGES.yaml with the checkout's revno.
94-- In that directory, start a server: ``python -m SimpleHTTPServer 8888``
95+- Looking at ``build-prod/juju-ui/version.js`` should show you a version string
96+ that combines the value in the branch's CHANGES.yaml with the branch's revno.
97+- While still in the directory where you extracted the tar file, change to the
98+ build-prod directory and start a server: ``python -m SimpleHTTPServer 8888``.
99 - In Chrome and Firefox, QA the application. At the very least, load the app,
100 open the charm panel, go to an inner page, and make sure there are no 404s
101 or Javascript errors in the console. We want a real QA script for the
102 future.
103 - For now, we will assume you would like to verify the release on the
104 Launchpad staging server. As we become more confident with this process,
105- this step may become unnecessary. In the checkout, run ``make dist``.
106+ this step may become unnecessary. In the branch, run ``make dist``.
107 This will step you through signing the tarball, connecting to
108 Launchpad, and uploading the release.
109
110@@ -209,7 +220,7 @@
111 SimpleHTTPServer 8888``, and do a quick double-check in the browser that it
112 is what you expect. Looking at juju-ui/version.js should also show you the
113 version you expect, as seen in the similar earlier step above.
114-- Now it is time for the actual, real release. Head back to your checkout and
115+- Now it is time for the actual, real release. Head back to your branch and
116 run ``PROD=1 make dist``. The computer will again walk you through the
117 process.
118
119@@ -228,14 +239,14 @@
120 ======================================
121
122 Within a checkout, a lightweight checkout, or a branch, you may run make as
123-``NO_BZR=1 make [target]`` in order to prevent the Makefile from running
124+``NO_BZR=1 make [target]`` in order to prevent the Makefile from running
125 any bzr commands, all of which access the parent branch over the network.
126 Where bzr may have provided information such as the revno, sensible defaults
127 are used instead. As many of these bzr commands are used to populate
128 variables regardless of the target, defining NO_BZR will have an effect on
129 all targets, except dist, which will refuse to complete.
130
131-- Note that this allows one to run any make target from the working copy,
132+- Note that this allows one to run any make target from the working copy,
133 even if it is a lightweight checkout, by skipping steps that involve
134 network access through bzr. Because of this, make will assume that
135 the revno is 0 and that the branch is clean and up to date without
136@@ -279,9 +290,9 @@
137
138 - Encourage but do not require each person to mention what card they plan to
139 work on for the next 24 hours, if that has not already been discussed.
140- - Ask the person to mention any items that everyone should know: remind people
141- of reduced availability, request help such as code reviews or pair requests,
142- etc.
143+ - Ask the person to mention any items that everyone should know: remind
144+ people of reduced availability, request help such as code reviews or pair
145+ requests, etc.
146
147 Checklist for Running a Weekly Retrospective
148 ============================================

Subscribers

People subscribed via source and target branches