2 @page inside_release Releasing SimGrid
4 @section inside_release_c Releasing the main library
6 @subsection inside_release_c_preconditions Before releasing
8 Please apply the following checklist before releasing.
11 - The external patches (Debian, etc) are integrated.
12 The COPYING file is aligned with Debian's copyright file, and the
13 dates of SimGrid chunks are accurate.
14 - The version number is correctly marked in
15 - CMakeLists.txt (in macros SIMGRID_VERSION_*)
16 - sonar-project.properties
20 - The "make distcheck" target works (tested by jenkins)
21 - All tests pass oneverything on ci + travis/macOS + AppVeyor
22 - Tutorials and derivative projects build correctly
23 https://framagit.org/simgrid/simgrid-template-s4u/pipelines
24 https://framagit.org/simgrid/external-projects-ci/pipelines
26 - All changes are documented
27 - The release date is indicated below the changes
28 - The release is marked as stable above the changes (remove the UNRELEASED marker)
29 - The release dub name matches the one given in NEWS file
31 - The most notable changes of the version are documented
32 - The release date is indicated right below the version name
33 - The release dub name matches the one given in ChangeLog file
35 @subsection inside_release_c_source Building the source archive
37 This should be done from a clean git repository because some files are
38 included through globbing. The best is to use a clean checkout:
41 git clone --depth=1 ~/Code/simgrid
46 If you prefer, you can clean your repository the hard way:
48 git reset --hard master # remove all uncommited changes to the files tracked by git
49 git clean -dfx # delete all files and directories that are not tracked by git
53 @subsection inside_release_c_jarfile Building the binary jarfile
55 Get the jarfiles for several OSes on the CI slaves. Use Save under to
56 give a separate name to each of them.
58 - macOS, FreeBSD: on Jenkins
59 - Windows: on AppVeyor
60 - Linux: it is safer to rebuild them in a chroot (to avoid
61 boost-context and all other optional dependencies):
64 mkdir /tmp/build-amd64
65 cp SimGrid-3.*.tar.gz /tmp/build-amd64
66 sudo debootstrap --arch amd64 --variant=buildd testing /tmp/build-amd64 http://deb.debian.org/debian/
67 sudo chroot /tmp/build-amd64
68 echo "proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0" >> /tmp/fstab
69 mount proc /proc -t proc
70 apt-get install -y cmake default-jdk libboost-dev python3 doxygen
72 tar xfz ../SimGrid*tar.gz && cd SimGrid-*
73 cmake . -Denable_documentation=ON -Denable_java=ON
74 make -j4 && LC_ALL=C ctest -R java
77 Once all jarfiles are in a separate directory, run the following to
80 mkdir content ; cd content
82 for j in ../simgrid-linux64.jar ../simgrid*.jar ; do unzip -n $j ; done
83 # The content of all jar should be the same, but I prefer using the Linux64 version by default
84 # => unpack it first, and unpack the others with -n (never overwrite)
86 test -e doc/javadoc || echo "YOU ARE MISSING THE DOC"
88 du -sh . # 273M here. Let's strip (Darwin is already good)
89 strip NATIVE/*/*/*.so # Gets BSD and Linux versions, down to 116M
90 x86_64-linux-gnu-strip NATIVE/*/*/lib*dll # Gets Windows, down to 22M
93 zip -r ../simgrid-3_XX.jar * # Produced ../simgrid-3_XX.jar is 7.7M
96 To upload the file on gforge, you need to go to Files/Admin then clic
97 on the Settings icon near to the "Add a version" button, and then on
98 the settings icon of the release you want to change.
100 @subsection inside_release_c_postchecks Check list after releasing
102 - Tag the git repository (don't forget to push the tags to the main repo)
103 - Push the archive files (tar.gz and jar) on gforge
104 - #Post a news on gforge (before updating the website)
105 - Document the tag on https://github.com/simgrid/simgrid/releases and
106 on https://framagit.org/simgrid/simgrid/tags
107 - Upload the files SimGrid-3.XX.tar.gz, simgrid-3_XX.jar and
108 SimGrid-doc-3_XX.zip (that is the artefact of the pages job on framagit) files to the changelog.
109 - Update the .gitlab-ci.yml on the website
110 - Download the simgrid-doc from framagit and unpack it in position
111 - Only keep 2 versions so that people don't find older ones in google
112 - Rebuild and resynchronize the website so that the file gets visible from our download page.
113 - Edit org/org-templates/level-0.org to change the release version, the tgz link and the jar link.
114 - emacs org/site/index.org and C-c C-c the first source block to refresh the news; fake the date in the result.
115 - emacs org/site/download.org and C-c C-c the first source block to refresh the download.
116 - emacs org/site/documentation.org and edit the version links.
117 - make -C org all sync
119 - Change the link to the SimGrid-doc-3_XX.zip file
120 - Change the version number
121 - Change the link to latest
122 - git commit -a && git push
123 - Announce the release
124 - Mail the simgrid-user mailing list
125 - the NEWS chunk in the mail;
126 - Hall of Fame in the mail@n
127 git shortlog -se v3.21..
128 - Link to the ChangeLog on framagit (the version of that tag)
129 - Also mail some other lists (G5K users)
130 - Release the debian package
131 - rm -f ../simgrid_3.*+dfsg.orig.tar.xz
132 - uscan # download the new version
133 - gbp import-orig ../simgrid_3.*+dfsg.orig.tar.xz
134 - dch -i "New upstream release" # + copy the NEWS into debian/changelog
135 - git mv debian/libsimgrid3.XX.install debian/libsimgrid3.XY.install
136 - edit debian/control: s/simgrid3.XX/simgrid3.XY/
137 - Update the simgrid/package.py for spack: https://gitlab.inria.fr/solverstack/spack-repo
138 - Create the template for the next release in ChangeLog and NEWS files
139 Release Target date: https://en.wikipedia.org/wiki/Equinox
140 - Bump elease number to 3.X.1 in CMakeLists.txt sonar-project.properties docs/source/conf.py setup.py
141 - Deal with deprecations:
142 - Introduce the XBT_ATTRIB_DEPRECATED_v??? macro for the next release.
143 - Kill the one for the current release and remove all code that were
144 mandated by the deprecated functions (both in source and headers).
145 - Do the possible cleanups now that these features are gone.
146 - Update the Docker images (after pushing to the git)
147 - cd tools/docker && make stable tuto-s4u push
148 - Update the simgrid-template-s4u repository to test against this new release
149 jed ~/Code/simgrid-template-s4u/.gitlab-ci.yml
151 Release numbering semantic:
152 - 3.X is a named release.
153 - We have 4 named releases per year (for each equinox and solstice)
154 - The ChangeLog and NEWS are complete and informative
155 - All tests pass on all ci systems (or the workarounds are documented)
156 - We provide and store a source .tar.gz and a full jarfile on framagit
157 - Deprecated symbols remain usable for at least 3 named releases (~1 year)
158 - These releases are announced to the users
159 - 3.X.Y where Y is even: dot release of 3.X, prerelease of 3.(X+1)
160 - We provide and store a source .tar.gz and a full jarfile on framagit
161 - These releases are NOT announced publicly, nor really documented.
162 The idea is to have something close to a rolling release.
163 - External projects can depend on dot releases to loosen their
164 release process from ours, when 4 release a year is not enough
165 - 3.X.Y where Y is odd: git current status between two releases
166 - No expectations on such versions
168 - 3.22.4: unannounced/losely documented stable release
169 - 3.22.5: git status somewhere between the release of 3.22.4 and the next one
170 - 3.23: Documented and announced stable release
173 - Update the version number in:
174 - CMakeLists.txt (in macros SIMGRID_VERSION_*)
175 - sonar-project.properties
176 - docs/source/conf.py
178 - Commit and push to both framagit and github
179 - Wait for both appveyor and jenkins/highsierra to complete the build
180 - If it's not successful, fix it and push again
181 - Once it's successful on both appveyor and jenkins:
182 - tag the release v3.X.Y and push the tag
183 - Merge 'master' into 'stable' and push it to framagit
184 - Do not merge into 'stable' before appveyor and jenkins are done,
185 or your jarfile will not contain the code you expect for win and
187 - python3 setup.py sdist # Build a source distrib
188 - test that the built distrib recompiles:
189 rm -rf /tmp/pysimgrid && mkdir /tmp/pysimgrid && cp dist/simgrid-*.tar.gz /tmp/pysimgrid
190 (cd /tmp/pysimgrid && tar xfz simgrid*.tar.gz && cd simgrid-*/ && python3 setup.py build)
191 - Upload it to pypi (WARNING: you cannot modify uploaded files, ever)
192 twine upload dist/simgrid-*.tar.gz