Release¶
A MIPP release is an annotated Git tag vX.Y.Z on develop (git tag -l 'v*' lists the previous ones). The version only exists in the tag: the headers carry no version macro, and the documentation reads it from the tags (the latest release in the Project Status table of Why MIPPv2 is the nearest tag, git describe): a release needs no commit. Pushing the tag to the public GitHub repository publishes the release.
1. What the Tag Triggers¶
On GitHub, a v* tag runs the generation job, then two jobs that only run on tags (Continuous Integration). The generation job checks out the whole history and the tags (fetch-depth: 0), for git describe.
deploy-docsbuilds the site withmkdocs build --strictand deploys it to GitHub Pages (https://aff3ct.github.io/MIPP/);releasecreates the GitHub release of the tag, with two archives of the generatedinclude/(mipp-vX.Y.Z-headers.zipandmipp-vX.Y.Z-headers.tar.gz) and release notes generated by GitHub from the history.
The archives contain the headers generated with --simd-ext sse avx avx512 rvv neon scalar sve --granularity fine: all the targets, with the fine-grained headers.
On GitLab, the tag runs the usual pipeline.
2. Checklist¶
- The GitLab pipeline is green on the commit to release: GitHub does not build or test anything.
- The documentation builds in strict mode. The site is only deployed if
mkdocs build --strictsucceeds on GitHub. Check it locally first:The environment needs(cd generator && ./gen_mipp_headers.py --granularity fine && ./gen_mipp_docs.py) mkdocs build --strictdocs/requirements.txt, which also installs the generator dependencies (Build the Documentation). Before the tag, the local site shows the previous release: the deployed one is generated on the tagged commit. - Tag and push. Create an annotated tag (signed with
-sif you sign your commits) and push it to both repositories,developfirst: - Check the publication: the GitHub Actions run of the tag, the two archives attached to the release, and the deployed site.
- Edit the release notes on GitHub if the generated ones are not enough (highlights, breaking changes).
If deploy-docs fails, the release and its archives are still created, but the site is not updated. A re-run of the workflow uses the tagged commit: it only helps for transient failures. A documentation error needs a fix on develop and a new patch tag.