author | Tom Henderson <tomh@tomh.org> |
Tue, 09 Jul 2013 06:09:38 -0700 | |
changeset 9911 | 90def6afa747 |
parent 9211 | e5cb7d8ec47c |
child 10188 | f2177f4b2cb1 |
permissions | -rw-r--r-- |
776 | 1 |
Steps in doing an ns-3 release |
2 |
||
8841 | 3 |
We typically post release candidates for testing at the following URL: |
4 |
https://www.nsnam.org/release/ns-allinone-3.X.rcX.tar.bz2 |
|
5 |
||
6 |
This overview covers the following release stages: |
|
7 |
1) new feature additions and bug fixing |
|
8 |
2) preparing release candidates for testing |
|
9 |
3) making the actual release |
|
10 |
4) maintaining the release |
|
11 |
||
12 |
1) new feature additions and bug fixing |
|
13 |
--------------------------------------- |
|
7473 | 14 |
|
8841 | 15 |
During the software development phase, it is important for the release |
16 |
manager to try to maintain the following files with updated information: |
|
17 |
- AUTHORS |
|
18 |
- RELEASE_NOTES |
|
19 |
- CHANGES.html |
|
20 |
||
21 |
otherwise, this becomes painful to edit (and things are forgotten) |
|
22 |
when the release is imminent. |
|
23 |
||
24 |
2) preparing release candidates for testing |
|
25 |
------------------------------------------- |
|
26 |
||
27 |
This step presumes that you have a reasonably solid ns-3-dev that you |
|
28 |
and/or the buildbots have been testing |
|
29 |
- building static, optimized, and debug versions |
|
7473 | 30 |
- try Python visualizer (not tested by buildbots) |
31 |
-- ./waf --pyrun src/flow-monitor/examples/wifi-olsr-flowmon.py --vis |
|
32 |
- ensure that tests pass (./test.py -g) and make sure that the buildbots |
|
8841 | 33 |
are reporting blue based on the tip of the repository |
9211
e5cb7d8ec47c
update release steps documentation
Tom Henderson <tomh@tomh.org>
parents:
9200
diff
changeset
|
34 |
- revise and check in AUTHORS, RELEASE_NOTES, and CHANGES.html |
8841 | 35 |
- required versions for related libraries (nsc, netanim, pybindgen) |
36 |
are correct |
|
6586 | 37 |
- confirm that Doxygen builds cleanly (./waf doxygen), |
9200
445bf62eb5a8
documentation nits on release_steps.txt
Tom Henderson <tomh@tomh.org>
parents:
8842
diff
changeset
|
38 |
- confirm all documents build: './waf docs' and check outputs |
7473 | 39 |
|
8841 | 40 |
Check out a clean ns-3-dev somewhere using ns-3-allinone |
41 |
- hg clone http://code.nsnam.org/ns-3-allinone |
|
7473 | 42 |
- ./download.py |
43 |
- cd ns-3-dev |
|
8841 | 44 |
- edit VERSION such as "ns-3.14.rc1" (DO NOT commit this change to ns-3-dev) |
45 |
- cd .. |
|
46 |
- ./dist.py |
|
47 |
||
48 |
This should yield a compressed tarfile, such as: ns-allinone-3.14.rc1.tar.bz2 |
|
49 |
Test this, and when satisfied, upload it to |
|
50 |
www.nsnam.org:/var/www/html/releases/ (with apache:apache file ownership) |
|
51 |
||
52 |
Announce it to ns-developers as: |
|
9200
445bf62eb5a8
documentation nits on release_steps.txt
Tom Henderson <tomh@tomh.org>
parents:
8842
diff
changeset
|
53 |
https://www.nsnam.org/release/ns-allinone-3.14.rc1.tar.bz2 |
7473 | 54 |
|
8841 | 55 |
Iterate the above as needed during the release testing phase. |
7473 | 56 |
|
8841 | 57 |
Note, in the past we have added mercurial tags to ns-3-dev to denote |
58 |
release candidates, but lately we have not been bothering with this. |
|
59 |
If you would like to tag a release candidate, follow these steps |
|
60 |
-- hg tag "ns-3.X.rcX" (for the appropriate version numbers) |
|
61 |
-- hg push ssh://code@code.nsnam.org/repos/ns-3-dev |
|
7473 | 62 |
|
8841 | 63 |
3) making the release |
64 |
--------------------- |
|
65 |
||
66 |
Follow similar steps for creating the release candidate tarballs, except |
|
67 |
we will work off of a release repository. |
|
7473 | 68 |
|
69 |
At this point, you are ready for final packaging and repository/site work |
|
70 |
||
71 |
tagging ns-3-dev and creating ns-3.X repositories |
|
72 |
------------------------------------------------- |
|
73 |
||
8841 | 74 |
We'll refer to the release number as "X" or "x" below. The steps here |
75 |
involve tagging ns-3-dev, copying over ns-3-dev to ns-3.X on code.nsnam.org, |
|
76 |
cloning it locally, making changes from "3-dev" to "3.X" in various places, |
|
77 |
and checking in those changes to the new ns-3.X repository. |
|
7473 | 78 |
|
8841 | 79 |
1. once you are happy with the most recent release candidate tarball and |
80 |
do not plan to further touch ns-3-dev, tag ns-3-dev |
|
5419
f54e261e92ed
tweak release steps
Craig Dowell <craigdo@ee.washington.edu>
parents:
5411
diff
changeset
|
81 |
- cd into ns-3-dev |
7289 | 82 |
-- hg tag "ns-3.x" |
7473 | 83 |
-- hg push ssh://code@code.nsnam.org//home/code/repos/ns-3-dev |
84 |
||
85 |
2. copy the tagged ns-3-dev and place it on the repository |
|
5419
f54e261e92ed
tweak release steps
Craig Dowell <craigdo@ee.washington.edu>
parents:
5411
diff
changeset
|
86 |
- ssh code.nsnam.org; sudo bash; su code; |
7289 | 87 |
-- cp -r /home/code/repos/ns-3-dev /home/code/repos/ns-3.x |
88 |
-- cd /home/code/repos/ns-3.x/.hg and edit the hgrc appropriately: |
|
89 |
[paths] |
|
90 |
default = /home/code/repos/ns-3.x |
|
91 |
[web] |
|
92 |
description = ns-3.x release |
|
93 |
name = ns-3.x |
|
94 |
contact = <ns-developers@isi.edu> |
|
7473 | 95 |
|
8841 | 96 |
3. check out a clean version of the new release (ns-3.x) |
97 |
to a scratch directory on your local machine |
|
98 |
- hg clone http://code.nsnam.org/ns-3.x |
|
7473 | 99 |
|
8841 | 100 |
5. Update the VERSION for this new release, in the ns-3.x directory (i.e. |
101 |
NOT in ns-3-dev) |
|
3288
8a4b9d15ff04
tweak release steps
Craig Dowell <craigdo@ee.washington.edu>
parents:
3280
diff
changeset
|
102 |
- change the string 3-dev in the VERSION file to the real version |
8841 | 103 |
(e.g. 3.14) This must agree with the version name you chose in the clone. |
7289 | 104 |
- change the version and release string for the documentation in |
8841 | 105 |
doc/manual/source, doc/tutorial/source, doc/tutorial-pt/source, |
106 |
and doc/models/source conf.py files |
|
7289 | 107 |
This should hopefully be updated in the future to simply pull from the |
108 |
VERSION file. |
|
8841 | 109 |
- hg commit -m "update VERSION to ns-3.x" |
5425
7b6a845c956f
release steps tweaks
Craig Dowell <craigdo@ee.washington.edu>
parents:
5419
diff
changeset
|
110 |
- hg push ssh://code@code.nsnam.org//home/code/repos/ns-3.x |
7473 | 111 |
|
112 |
creating the distribution tarball |
|
113 |
--------------------------------- |
|
114 |
||
115 |
1. Create final tarballs |
|
116 |
You need to work with a clean ns-3-allinone-3.x directory |
|
117 |
- hg clone http://code.nsnam.org/ns-3-allinone |
|
118 |
- cd ns-3-allinone |
|
6624
a071889af159
Remove regression tests from waf
Mitch Watrous <watrous@u.washington.edu>
parents:
6586
diff
changeset
|
119 |
- ./download.py -n ns-3.x |
7473 | 120 |
- ./dist.py (notice we did not build here) |
5411
2e293c541a03
tweak release steps
Craig Dowell <craigdo@ee.washington.edu>
parents:
5410
diff
changeset
|
121 |
- this will create an ns-allinone-3.x.tar.bz2 tarball |
7473 | 122 |
- sanity check this tarball just to make sure everything went ok |
123 |
||
124 |
2. upload "ns-allinone-3.x.tar.bz2" to the /var/www/html/releases/ directory on |
|
1789
39a56c382884
more detail in release_steps.txt
Tom Henderson <tomh@tomh.org>
parents:
1286
diff
changeset
|
125 |
the www.nsnam.org server |
5411
2e293c541a03
tweak release steps
Craig Dowell <craigdo@ee.washington.edu>
parents:
5410
diff
changeset
|
126 |
- scp ns-allinone-3.x.tar.bz2 www.nsnam.org:~ |
2e293c541a03
tweak release steps
Craig Dowell <craigdo@ee.washington.edu>
parents:
5410
diff
changeset
|
127 |
- ssh www.nsnam.org |
2e293c541a03
tweak release steps
Craig Dowell <craigdo@ee.washington.edu>
parents:
5410
diff
changeset
|
128 |
- sudo cp ns-allinone-3.x.tar.bz2 /var/www/html/releases |
2e293c541a03
tweak release steps
Craig Dowell <craigdo@ee.washington.edu>
parents:
5410
diff
changeset
|
129 |
- cd !$ |
7473 | 130 |
|
131 |
3. give it 644 file permissions, and user/group = apache if it is not already |
|
5411
2e293c541a03
tweak release steps
Craig Dowell <craigdo@ee.washington.edu>
parents:
5410
diff
changeset
|
132 |
- sudo chown apache:apache ns-allinone-3.x.tar.bz2 |
2e293c541a03
tweak release steps
Craig Dowell <craigdo@ee.washington.edu>
parents:
5410
diff
changeset
|
133 |
- sudo chmod 644 ns-allinone-3.x.tar.bz2 |
7473 | 134 |
|
135 |
4. if this is a final release (not RC) |
|
7289 | 136 |
- delete RC releases from /var/www/html/releases |
7473 | 137 |
|
138 |
preparing the documentation |
|
139 |
---------------------------- |
|
140 |
||
141 |
1. If final release, build release documentation |
|
7289 | 142 |
- sudo bash; su nsnam; cd /home/nsnam/bin |
9211
e5cb7d8ec47c
update release steps documentation
Tom Henderson <tomh@tomh.org>
parents:
9200
diff
changeset
|
143 |
./update-docs -r http://code.nsnam.org/ns-3.x -R |
7473 | 144 |
|
145 |
2. Check if these new files are available on the website |
|
146 |
||
147 |
preparing the Wordpress-based main website |
|
148 |
------------------------------------------ |
|
149 |
||
150 |
1. create a new ns-3.x page which should be visible from |
|
151 |
http://www.nsnam.org/ns-3.x |
|
152 |
- New Features |
|
153 |
- Download |
|
154 |
- Bugs Fixed |
|
155 |
- Documentation |
|
156 |
||
157 |
2. Repoint http://www.nsnam.org/releases/latest to the new page |
|
7869 | 158 |
Repoint /var/www/html/doxygen-release to the new release doxygen. |
7473 | 159 |
|
160 |
3. Update the Older Releases page to create an entry for the previous |
|
161 |
release (there are two such pages, one under Releases and one under |
|
162 |
Documentation) |
|
163 |
||
164 |
4. The main page http://www.nsnam.org should point to |
|
165 |
ns-3.x in the "Download" and "Documentation" boxes |
|
166 |
||
9911
90def6afa747
update release_steps for website
Tom Henderson <tomh@tomh.org>
parents:
9211
diff
changeset
|
167 |
5. The releases page http://www.nsnam.org must be updated (including |
90def6afa747
update release_steps for website
Tom Henderson <tomh@tomh.org>
parents:
9211
diff
changeset
|
168 |
source tarball link) |
90def6afa747
update release_steps for website
Tom Henderson <tomh@tomh.org>
parents:
9211
diff
changeset
|
169 |
|
90def6afa747
update release_steps for website
Tom Henderson <tomh@tomh.org>
parents:
9211
diff
changeset
|
170 |
6. Create a blog entry to announce release |
7473 | 171 |
|
172 |
ns-3 wiki edits |
|
173 |
--------------- |
|
174 |
||
175 |
1. Create ns-3.(X+1) wiki page if not done already. |
|
176 |
||
177 |
2. edit front page and Roadmap |
|
178 |
||
7474
ea33e42de414
add note about updating Bugzilla
Tom Henderson <tomh@tomh.org>
parents:
7473
diff
changeset
|
179 |
Bugzilla |
ea33e42de414
add note about updating Bugzilla
Tom Henderson <tomh@tomh.org>
parents:
7473
diff
changeset
|
180 |
-------- |
ea33e42de414
add note about updating Bugzilla
Tom Henderson <tomh@tomh.org>
parents:
7473
diff
changeset
|
181 |
|
ea33e42de414
add note about updating Bugzilla
Tom Henderson <tomh@tomh.org>
parents:
7473
diff
changeset
|
182 |
1. Add a product version "ns-3.x" to the available versions. |
ea33e42de414
add note about updating Bugzilla
Tom Henderson <tomh@tomh.org>
parents:
7473
diff
changeset
|
183 |
|
7473 | 184 |
Announcing |
185 |
---------- |
|
186 |
||
187 |
1. Final checks |
|
7289 | 188 |
- check manual, tutorial, model, and doxygen documentation links |
6624
a071889af159
Remove regression tests from waf
Mitch Watrous <watrous@u.washington.edu>
parents:
6586
diff
changeset
|
189 |
- download tarball from web, build and run tests for as many |
3289
bd7baccf47a3
tweaks after actually doing it
Craig Dowell <craigdo@ee.washington.edu>
parents:
3288
diff
changeset
|
190 |
targets as you can |
6624
a071889af159
Remove regression tests from waf
Mitch Watrous <watrous@u.washington.edu>
parents:
6586
diff
changeset
|
191 |
- download release from mercurial, build and run tests for as |
3289
bd7baccf47a3
tweaks after actually doing it
Craig Dowell <craigdo@ee.washington.edu>
parents:
3288
diff
changeset
|
192 |
many targets as you can |
bd7baccf47a3
tweaks after actually doing it
Craig Dowell <craigdo@ee.washington.edu>
parents:
3288
diff
changeset
|
193 |
- test and verify until you're confident the release is solid. |
7473 | 194 |
|
195 |
2. announce to ns-developers and ns-3-users, with summary of release notes |
|
196 |
||
8842 | 197 |
|
198 |
4) maintaining the release |
|
199 |
-------------------------- |
|
200 |
||
201 |
First, create skeletal sections in CHANGES.html and RELEASE_NOTES to |
|
202 |
start collecting inputs for the ns-3.(x+1) release. |
|
203 |
||
204 |
The project may decide to make incremental, bug-fix releases from |
|
205 |
time to time, with a minor version number (e.g. ns-3.7.1). To do |
|
206 |
this, changesets may be cherry-picked from ns-3-dev and added to |
|
207 |
ns-3.x repository. Do not move over changesets that pertain to |
|
208 |
adding new features, but documentation fixes and bug fixes are good |
|
209 |
changesets to make available in a minor release. The same steps |
|
210 |
above for making a release are generally followed, although one |
|
211 |
does not need to create a separate repository, but instead just tags |
|
212 |
the existing ns-3-dev and ns-3.x repositories with a "ns-3.x.1" type |
|
213 |
of tag. |
|
214 |
||
215 |
Also, on the main website, make sure that "latest release" points to |
|
216 |
the right page. See how it was handled for ns-3.12 (which made |
|
217 |
a minor release): https://www.nsnam.org/ns-3.12/ |