Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v5.0.3 #345

Closed
26 tasks done
jbreue16 opened this issue Dec 12, 2024 · 2 comments
Closed
26 tasks done

Release v5.0.3 #345

jbreue16 opened this issue Dec 12, 2024 · 2 comments
Assignees
Milestone

Comments

@jbreue16
Copy link
Contributor

jbreue16 commented Dec 12, 2024

CADET-Core release

CADET-Core releases follow the semantic versioning system, which is documented here.

CADET-Core is released following the so-called GitLab flow:
In GitLab flow, feature and hotfix branches contain work for new features and bug fixes which will be merged back into the master branch immediately when they’re finished, reviewed, and approved. The master branch is ready to be deployed, but not necessarily the source of truth for a new release: Each release has an associated release branch that is based off the master branch. Changes that are intended to be released are cherry-picked from master onto the release branch. The release is made on the release branch. Some release branches can be kept and maintained, e.g. branch v5.0.X to support the last major release.

To make a release, the tasks in the following checklist have to be executed sequentially.

Release on github

  • Open a PR and create a version bump commit Bump version to vX.X.X:

    • Update of the version number in the version.txt, zenodo.json (two places), cadet.hpp and cadet.doxyfile, compare to last bump version commit
    • Update of the authors list if needed: CONTRIBUTING.md and zenodo.json
    • Update of the file format if needed, in the driver.hpp
  • Name the commit Bump version to vX.X.X and merge the PR into master.

  • Create a Release branch vX.X.X off of master and cherry-pick the desired commits onto it.

  • Build the release branch and run the release tests: The release tests contain extensive testing that is not included in our CI, such as EOC tests. Running these tests might take a while and this should be done on the server.

    • Execute the cd.yml workflow for the release branch and verify that the tests pass. (Some tests are implemented in CADET-Core with a ReleaseCI)
    • Execute the test suite implemented in CADET-Verification. The test passes when the results dont deviate compared to the previous run, which requires manual comparison in the corresponding output repository. Write a comment about the successful run and link the corresponding output branch in this issue.
    • Run performance benchmarks if numerical algorithms were refactored or if performance-critical infrastructure was changed. The previous release should be compared with the planned new one. To this end, you can refer to the performance benchmark templates in CADET-Reference, e.g. the benchmark for the modified Newton method
  • If some of the tests fail, fix them on the release branch. Once the tests run, open a new branch and merge the fixes into master.

  • Create the release on github here:

    • Set the release branch as target and manually specify a tag as vX.X.X with the version number according to the semantic versioning system.

    • Add release notes with these categories:

      • Added: New features, enhancements, or functionalities introduced in this release.
      • Fixed: Bug fixes and corrections made to resolve issues from previous versions.
      • Changed: Modifications to existing features and breaking changes for major releases including changes in the interface.
      • Updated: Improvements to documentation, minor tweaks, or other updates that don’t fit into the other categories.
  • Check success of zenodo archiving: Upon release, Zenodo automatically archives the release, generating a version-specific DOI (Digital Object Identifier) for it and storing a copy of the source code, along with any associated files. The concept DOI, which is also given in the repository README, does not change but represents the repository as a whole and always points to the latest version.

Release of binaries on conda-forge

To ensure CADET-Core is accessible to a broad community, it is available as a Python package on conda-forge.
Other software, such as our frontend, CADET-Process, and our Python interface, CADET-Python, import this package.

  • Go to github.com/conda-forge/cadet-feedstock

  • Create a new branch and open a PR:

  • Change the recipe/meta.yaml file:

    • Generate sha key via curl -sL https://github.com/cadet/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz | openssl sha256, which requires open ssl und curl
    • Update version number and sha key
    • Set build number to zero (build: number: 0)
  • Upon opening the PR, a todo checklist is automatically generated. After solving the todos, comment @conda-forge-admin, please rerender in the PR conversation. Automatic checks will be run and the bot will tell us the changes are fine. Then we can merge the PR, triggering the release on conda-forge.

@jbreue16
Copy link
Contributor Author

jbreue16 commented Dec 12, 2024

CD workflow failed, which is fine for now, issue to fix this was openend #348

@jbreue16
Copy link
Contributor Author

jbreue16 commented Dec 12, 2024

CADET-Verification ran successfully, see branch https://github.com/cadet/CADET-Verification-Output/tree/2024-12-12_15-38-58_main_6ed1238

@github-project-automation github-project-automation bot moved this from In Progress to Done in CADET-Project Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants