- Create a new issue to track the release process where you can
copy-paste the present checklist from
dev/doc/release-process.md. - Decide the release calendar with the team (date of branching, preview and final release).
- Create a wiki page that you link to from https://github.com/coq/coq/wiki/Release-Plan with this information and the link to the issue.
- Create both the upcoming final release (
X.X.0) and the following major release (Y.Y+rc1) milestones if they do not already exist. - Send an announcement of the upcoming branching date on Coqdev +
the Coq development category on Discourse (coqdev@inria.fr +
coq+coq-development@discoursemail.com) and ask people to remove from
the
X.X+rc1milestone any feature and clean up PRs that they already know won't be ready on time. - In a PR on
master, calldev/tools/update-compat.pywith the--releaseflag; this sets up Coq to support three-compatflag arguments including the upcoming one (instead of four). To ensure that CI passes, you will have to decide what to do about all test-suite files which mention-compat U.UorCoq.Comapt.CoqUU(which is no longer valid, since we only keep compatibility against the two previous versions), and you may have to ping maintainers of projects that are still relying on the old compatibility flag so that they fix this. - Make sure that this change is merged in time for the branching date.
-
In a PR on
master, change the version name to the next major version and the magic numbers (see #7008).Additionally, in the same commit, update the compatibility infrastructure, which consists of invoking
dev/tools/update-compat.pywith the--masterflag.Note that the
update-compat.pyscript must be run twice: once in preparation of the release with the--releaseflag (see previous section) and once on the branching date with the--masterflag to mark the start of the next version. -
Merge the above PR and create the
vX.Xbranch from the last merge commit before this one (using this name will ensure that the branch will be automatically protected). -
Set the next major version alpha tag using
git tag -s. TheVY.Y+alphatag marks the first commit to be inmasterand not in thevX.Xrelease branch. Note that this commit is the first commit in the first PR merged in master, not the merge commit for that PR. Therefore, if you proceeded as described above, this should be the commit updating the version, magic numbers and compatibility infrastructure. After tagging, double-check thatgit describepicks up the tag you just made (if not, you tagged the wrong commit). -
Push the new tag with
git push upstream VY.Y+alpha --dry-run(remove the--dry-runand redo if everything looks OK). -
Start a new project to track PR backporting. The project should have a
Request X.X+rc1 inclusioncolumn for the PRs that were merged inmasterthat are to be considered for backporting, and aShipped in X.X+rc1columns to put what was backported. A message to@coqbotin the milestone description tells it to automatically add merged PRs to theRequest ... inclusioncolumn and backported PRs to theShipped in ...column. See previous milestones for examples. When moving to the next milestone (e.g.X.X.0), you can clear and remove theRequest X.X+rc1 inclusioncolumn and create newRequest X.X.0 inclusionandShipped in X.X.0columns.The release manager is the person responsible for merging PRs that target the release branch and backporting appropriate PRs (mostly safe bug fixes, user message improvements and documentation updates) that are merged into
master. -
Pin the versions of libraries and plugins in
dev/ci/ci-basic-overlay.shto use commit hashes. You can use thedev/tools/pin-ci.shscript to do this semi-automatically. -
In a PR on
masterto be backported, add a new link to the'versions'list of the refman (inhtml_contextindoc/sphinx/conf.py).
-
Make sure that all the last feature PRs that you want to include in the release are finished and backported quickly and clean up the milestone. We recommend backporting as few feature PRs as possible after branching. In particular, any PR with overlays will require manually bumping the pinned commits when backporting.
-
Delay non-blocking issues to the appropriate milestone and ensure blocking issues are solved. If required to solve some blocking issues, it is possible to revert some feature PRs in the release branch only (but in this case, the blocking issue should be postponed to the next major release instead of being closed).
-
Once the final list of features is known, in a PR on
masterto be backported, generate the release changelog by callingdev/tools/generate-release-changelog.shand include it in a new section indoc/sphinx/changes.rst.At the moment, the script doesn't do it automatically, but we recommend reordering the entries to show first the Changed, then the Removed, Deprecated, Added and last the Fixed.
-
Ping the development coordinator (
@mattam82) to get him started on writing the release summary.The
dev/tools/list-contributors.shscript computes the number and list of contributors between Coq revisions. Typically used withVX.X+alpha..vX.Xto check the contributors of versionVX.X.
- Ensure that there exists a milestone for the following version.
- Ensure the release changelog has been merged (the release summary is required for the final release).
- In a PR against
vX.X(for testing):- Update the version number.
- Only update the magic numbers for the final release (see #7271).
- Set
is_a_released_versiontotrueinconfigure.ml.
- Set the tag
VX.X...usinggit tag -s. - Push the new tag with
git push upstream VX.X... --dry-run(remove the--dry-runand redo if everything looks OK). - Set
is_a_released_versiontofalseinconfigure.ml(if you forget about it, you'll be reminded by the test-suite failing whenever you try to backport a PR with a changelog entry). - Close the milestone
- Send an e-mail on Coqdev + the Coq development category on
Discourse (coqdev@inria.fr + coq+coq-development@discoursemail.com)
announcing that the tag has been set so that package managers can
start preparing package updates (including a
coq-bignumscompatible version). - In particular, ensure that someone is working on providing an
opam package (either in the main
ocaml/opam-repository
for standard releases or in the
core-devcategory of the coq/opam-coq-archive for preview releases. - Make sure to cc
@erikmdto request that he prepare the necessary configuration for the Docker release incoqorg/coq(namely, he'll need to make sure acoq-bignumsopam package is available inextra-dev, respectivelyreleased, so the Docker image gatheringcoqandcoq-bignumscan be built). - Publish a release on GitHub with the PDF version of the reference manual attached.
-
Ping
@Zimmi48to switch the default version of the reference manual on the website.This is done by logging into the server (
vps697916.ovh.net), editing twoProxyPasslines (one for the refman and one for the stdlib doc) withsudo vim /etc/apache2/sites-available/000-coq.inria.fr.conf, then runningsudo systemctl reload apache2.TODO: automate this or make it doable through the
wwwgit repository. See coq/www#111 and coq/www#131.
-
Ping
@Zimmi48to publish a new version on Zenodo.TODO: automate this with coqbot.
- Sign the Windows and MacOS packages and upload them on GitHub.
- The Windows packages must be signed by the Inria IT security
service. They should be sent as a link to the binary (via
filesender for example) together
with its SHA256 hash in a signed e-mail to
dsi.securite@inria.frputting@maximedenesin carbon copy. - The MacOS packages should be signed with our own certificate. A detailed step-by-step guide can be found on the wiki.
- The Snap package has to be built and uploaded to the snap store by
running a platform CI job
manually.
Then ask
@garesto publish the upload or give you the password for thecoq-teamaccount on the store so that you can do it yourself.
- The Windows packages must be signed by the Inria IT security
service. They should be sent as a link to the binary (via
filesender for example) together
with its SHA256 hash in a signed e-mail to
- Prepare a PR on coq/www adding a page of news on the website.
- Announce the release to Coq-Club and Discourse (coq-club@inria.fr + coq+announcements@discoursemail.com).