Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Introduce SG_BARRIER_SERIAL_THREAD
[simgrid.git] / doc / doxygen / inside_release.doc
1 /*! 
2 @page inside_release Releasing SimGrid
3
4 @section inside_release_c Releasing the main library
5
6 @subsection inside_release_c_preconditions Before releasing
7
8 Please apply the following checklist before releasing.
9
10 - Sources
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
17     - docs/source/conf.py
18     - setup.py
19 - Tests
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
25 - ChangeLog file
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
30 - NEWS
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
34
35 @subsection inside_release_c_source Building the source archive
36
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:
39 @verbatim
40 cd /tmp
41 git clone --depth=1 ~/Code/simgrid
42 cd simgrid
43 cmake . && make dist
44 @endverbatim
45
46 If you prefer, you can clean your repository the hard way:
47 @verbatim
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
50 cmake . && make dist
51 @endverbatim
52
53 @subsection inside_release_c_jarfile Building the binary jarfile
54
55 Get the jarfiles for several OSes on the CI slaves. Use Save under to
56 give a separate name to each of them.
57
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):
62   
63 @verbatim
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
71 cd tmp
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
75 @endverbatim
76
77 Once all jarfiles are in a separate directory, run the following to
78 merge them:
79 @verbatim
80 mkdir content ; cd content
81
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)
85
86 test -e doc/javadoc || echo "YOU ARE MISSING THE DOC"
87
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
91
92 rm ../simgrid-3_*.jar
93 zip -r ../simgrid-3_XX.jar *              # Produced ../simgrid-3_XX.jar is 7.7M
94 @endverbatim
95
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.
99
100 @subsection inside_release_c_postchecks Check list after releasing
101
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 website
110   - Edit org/org-templates/level-0.org to change the release version, the tgz link and the jar link.
111   - emacs org/site/index.org and C-c C-c the first source block to refresh the news; fake the date in the result.
112   - emacs org/site/download.org and C-c C-c the first source block to refresh the download.
113   - emacs org/site/documentation.org and edit the version links.
114   - make -C org all sync
115   - jed .gitlab-ci.yml
116     - Change the link to the SimGrid-doc-3_XX.zip file 
117     - Only keep 2 versions so that people don't find older ones in google
118     - Change the link to latest
119   - git commit -a && git push
120 - Announce the release
121  - Mail the simgrid-user mailing list
122     - the NEWS chunk in the mail;
123     - Hall of Fame in the mail
124       git shortlog -se v3.21..
125     - Link to the ChangeLog on framagit (the version of that tag)
126  - Also mail some other lists (G5K users)
127 - Release the debian package
128   - rm -f ../simgrid_3.*+dfsg.orig.tar.xz
129   - uscan # download the new version
130   - gbp import-orig ../simgrid_3.*+dfsg.orig.tar.xz
131   - dch -i "New upstream release" # + copy the NEWS into debian/changelog
132   - git mv debian/libsimgrid3.XX.install debian/libsimgrid3.XY.install
133   - edit debian/control: s/simgrid3.XX/simgrid3.XY/ 
134 - Update the simgrid/package.py for spack: https://gitlab.inria.fr/solverstack/spack-repo
135 - Create the template for the next release in ChangeLog and NEWS files
136   Release Target date: https://en.wikipedia.org/wiki/Equinox
137 - Bump release number to 3.X.1 in CMakeLists.txt sonar-project.properties docs/source/conf.py setup.py
138 - Deal with deprecations:
139   - jed include/xbt/base.h: Introduce the next XBT_ATTRIB_DEPRECATED_v??? macro 
140   - Kill the one for the current release and remove all code that were
141     mandated by the deprecated functions (both in source and headers).
142   - Do the possible cleanups now that these features are gone.
143 - Update the Docker images (after pushing to the git)
144   - cd tools/docker && make stable tuto-s4u tuto-smpi push
145   - Update the simgrid-template-s4u repository to test against this new release
146     jed ~/Code/simgrid-template-s4u/.gitlab-ci.yml
147
148 Release numbering semantic: 
149   - 3.X is a named release. 
150     - We have 4 named releases per year (for each equinox and solstice)
151     - The ChangeLog and NEWS are complete and informative
152     - All tests pass on all ci systems (or the workarounds are documented)
153     - We provide and store a source .tar.gz and a full jarfile on framagit
154     - Deprecated symbols remain usable for at least 3 named releases (~1 year)
155     - These releases are announced to the users
156   - 3.X.Y where Y is even: dot release of 3.X, prerelease of 3.(X+1)
157     - We provide and store a source .tar.gz and a full jarfile on framagit
158     - These releases are NOT announced publicly, nor really documented. 
159       The idea is to have something close to a rolling release.
160     - External projects can depend on dot releases to loosen their
161       release process from ours, when 4 release a year is not enough 
162   - 3.X.Y where Y is odd: git current status between two releases
163     - No expectations on such versions
164   - Example
165     - 3.22.4: unannounced/losely documented stable release
166     - 3.22.5: git status somewhere between the release of 3.22.4 and the next one
167     - 3.23: Documented and announced stable release
168     
169 Doing a dot release:
170   - Update the version number in:
171       - CMakeLists.txt (in macros SIMGRID_VERSION_*)
172       - sonar-project.properties
173       - docs/source/conf.py
174       - setup.py
175   - Commit and push to both framagit and github
176   - Wait for both appveyor and jenkins/highsierra to complete the build
177   - If it's not successful, fix it and push again
178   - Once it's successful on both appveyor and jenkins:
179     - tag the release v3.X.Y and push the tag
180     - Merge 'master' into 'stable' and push it to framagit
181     - Do not merge into 'stable' before appveyor and jenkins are done,
182       or your jarfile will not contain the code you expect for win and
183       mac.
184   - Rebuild the python package
185     - test -e MANIFEST.in || echo "Copy MANIFEST.in from a freshly configured build tree"
186     - rm -rf dist/ ; python3 setup.py sdist # Build a source distrib
187     - test that the built distrib recompiles:
188       rm -rf /tmp/pysimgrid && mkdir /tmp/pysimgrid && cp dist/simgrid-*.tar.gz /tmp/pysimgrid 
189       (cd /tmp/pysimgrid && tar xfz simgrid*.tar.gz && cd simgrid-*/ && python3 setup.py build)
190     - Upload it to pypi (WARNING: you cannot modify uploaded files, ever)
191       twine upload dist/simgrid-*.tar.gz
192
193 */