Releases

This page is to help core developers in releasing a new version of aeon.

Core developers making a release should have write access to the repository.

aeon aims for a release every one or two months currently, based on the amount of new content available for the release.

Preparing the release version

The release process is as follows, on high-level:

  1. Ensure deprecation actions are carried out. Deprecation actions for a version should be marked by “version number” annotated comments in the code. E.g., for the release 0.10.0, search for the string 0.10.0 in the code and carry out described deprecation actions. PRs performing deprecation actions should start with [DEP] and use the deprecation label. So they are put under the “Deprecations” section in the release notes.

  2. Create a “release” pull request. Create a branch from main and PR named after the release version. This should make changes to the version numbers (root __init__.py, README.md and pyproject.toml) and have complete release notes in the changelog webpage (add the changelog and update changelog.md in docs). See the release notes section for more details.

  3. Merge the “release” pull request. This PR should ideally be the final PR made before the release with the exception of any necessary troubleshooting PRs. The PR and release notes should optimally be reviewed by multiple core developers, then merged once tests pass.

  4. Create the GitHub release. This release should create a new tag following the syntax v[MAJOR].[MINOR].[PATCH], e.g., the string v0.10.0 for version 0.10.0. The release name should similarly be aeon v0.10.0. The GitHub release notes should contain only “highlights”, “new contributors” and “all contributors” sections, and otherwise link to the release notes in the changelog, following the pattern of current GitHub release notes. The full GitHub commit log between releases can also be included.

pypi release and release validation

Publishing the GitHub release triggers the pypi release workflow. The workflow builds from the released tag, checks that the tag matches the version of the built distribution, and runs the test suite against the built wheel rather than the source tree.

  1. Approve the release workflow. The release workflow will be automatically created in the GitHub Actions tab. This must be approved by a member of the release management workgroup before it will run.

  2. Wait for the pypi release CI/CD to finish. If tests fail due to a sporadic unrelated failure (i.e. failure to read data from an external source), re-run the failed jobs. It is not necessary to create a new GitHub release, and the workflow can also be run manually from the GitHub Actions tab by selecting the release tag.

If tests fail genuinely, something went wrong in the above steps. Nothing has been uploaded to pypi at this point, so the version number is still free to use: delete the GitHub release and its tag, merge the necessary fixes, then create the release and tag again with the same version number.

Once the pypi upload has succeeded the version is fixed, as pypi does not allow a version to be re-uploaded. Any problem found after that point requires a new patch version and a new release.

  1. Release workflow completion tasks. Once the release workflow has passed, check aeon version on pypi, this should be the new version. A validatory installation of aeon in a new Python environment should be carried out according to the installation instructions. If the installation does not succeed or wheels have not been uploaded, action to diagnose and remedy must be taken.

conda-forge release and release validation

  1. Merge the conda-forge release PR. After some time a PR will be automatically created in the aeon conda-forge feedstock. Follow the instructions in the PR to merge it, making sure to update any dependencies that have changed and dependency version bounds.

Release notes

Generally, release notes should follow the general pattern of previous release notes. The initial change notes can be generated by running .github/utilities/changelog_generator.py. Pull requests will be put into sections in the release notes based on the labels, so ensure that the PRs are labelled correctly.

After generating the initial release notes, make sure to:

  • Add the release version and month/year of the release at the top of the release notes

  • Add any important announcements at the top of the release notes if applicable

  • Add release highlights section

  • Tidy the auto-generated PR list, moving PRs as necessary so they are correctly categorised. It may be easier to re-label PRs and regenerate the release notes.

  • Ensure the contributors section is correct

Emergency release workflow

If a release is required urgently, the release testing process can be expedited by running the “Fast release” workflow. This workflow should not be used under normal circumstances. Any issues with release testing should be addressed in the normal release workflow if possible. Consult the core developers on Discord before running this in any circumstance.