|
| 1 | +# Publishing the Final Release |
| 2 | + |
| 3 | +Once all dependencies have been tested and validated, and the E3SM-Unified |
| 4 | +release candidate (RC) has passed testing across the relevant HPC systems, the |
| 5 | +final release can be published. This page outlines the process of finalizing |
| 6 | +and distributing an official E3SM-Unified release. |
| 7 | + |
| 8 | +--- |
| 9 | + |
| 10 | +## ✅ Pre-Release Checklist |
| 11 | + |
| 12 | +Before publishing: |
| 13 | + |
| 14 | +* [ ] All RC versions of dependencies (e.g., `e3sm_diags`, `zppy`, `mache`) |
| 15 | + have been released with final version tags and conda-forge packages |
| 16 | +* [ ] Final version of `e3sm-unified` has been created and built on conda-forge |
| 17 | +* [ ] Final deployments have been completed on all target HPC machines |
| 18 | +* [ ] Smoke testing and key workflows (e.g., `zppy`, `mpas_analysis`) have |
| 19 | + been validated |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +## Step-by-Step Finalization |
| 24 | + |
| 25 | +### 1. Remove RC Labels |
| 26 | + |
| 27 | +Edit `recipes/e3sm-unified/meta.yaml` and: |
| 28 | + |
| 29 | +* Replace RC versions of dependencies (e.g., `3.0.0rc2`) with final versions |
| 30 | + (e.g., `3.0.0`) in both `meta.yaml` and `default.cfg` |
| 31 | +* Bump the `e3sm-unified` version accordingly (e.g., from `1.12.0rc3` to |
| 32 | + `1.12.0`) in `meta.yaml` and `e3sm_supported_machines/shared.py` |
| 33 | + |
| 34 | +Commit the changes to your `update-to-<version>` branch. |
| 35 | + |
| 36 | +### 2. Tag Final Release in Source Repo |
| 37 | + |
| 38 | +If you followed the suggested workflow under |
| 39 | +[Creating an RC for E3SM-Unified](creating-rcs/rc-e3sm-unified.md), you should |
| 40 | +have a draft PR from your `update-to-<version>` branch that documents the |
| 41 | +changes. Merge this PR into `main` so the release history and testing context |
| 42 | +are preserved. |
| 43 | + |
| 44 | +Then, go to `Releases` on the right on the |
| 45 | +[main page](https://github.com/E3SM-Project/e3sm-unified) of the repo and |
| 46 | +click `Draft a new release` at the top. |
| 47 | + |
| 48 | +Document the changes in this version (hopefully just copy-paste from the |
| 49 | +description of your recently merged PR), similar to |
| 50 | +[this example](https://github.com/E3SM-Project/e3sm-unified/releases/tag/1.11.0). |
| 51 | + |
| 52 | +### 3. Submit Final Feedstock PR |
| 53 | + |
| 54 | +Go to the [e3sm-unified-feedstock](https://github.com/conda-forge/e3sm-unified-feedstock): |
| 55 | + |
| 56 | +* Open a pull request from your fork |
| 57 | +* Update the version number and `sha256` hash. |
| 58 | +* Target the `main` branch (not `dev`) |
| 59 | +* Ensure final versions of all dependencies are listed |
| 60 | + |
| 61 | +Once CI passes, merge the PR. |
| 62 | + |
| 63 | +This will trigger CI to publish the new release to the standard conda-forge |
| 64 | +channel. You typically need to wait as long as an hour after packages have |
| 65 | +built for them to become available for installation. You can watch |
| 66 | +[this page](https://anaconda.org/conda-forge/e3sm-unified/files) |
| 67 | +to see when files appear and how many downloads they have. Once all files have |
| 68 | +been built and show 2 or more downloads, you should be good to proceed with |
| 69 | +final deployment. |
| 70 | + |
| 71 | +### 4. Deploy Final Release on HPC Systems |
| 72 | + |
| 73 | +Use the same process as during RC testing, but now with the `--release` flag: |
| 74 | + |
| 75 | +```bash |
| 76 | +./deploy_e3sm_unified.py --conda ~/miniforge3 --release |
| 77 | +``` |
| 78 | + |
| 79 | +This creates new activation scripts like: |
| 80 | + |
| 81 | +* `load_e3sm_unified_<version>_<machine>.sh` |
| 82 | + |
| 83 | +Also generates symlinks like: |
| 84 | + |
| 85 | +* `load_latest_e3sm_unified_<machine>.sh` |
| 86 | + |
| 87 | +### 5. Announce the Release |
| 88 | + |
| 89 | +Share the release: |
| 90 | + |
| 91 | +* 📝 **Confluence** [Like this example](https://e3sm.atlassian.net/wiki/spaces/DOC/pages/4908515329/E3SM-Unified+1.11.0+release+notes) |
| 92 | +* **Email** to [E3SM All-hands](https://e3sm.atlassian.net/wiki/spaces/ED/pages/818381294/Email+Lists) list (same contents as Confluence page) |
| 93 | +* 📣 **Slack** (`#e3sm-help-postproc`) with release highlights |
| 94 | + |
| 95 | +Be sure to include: |
| 96 | + |
| 97 | +* Final versions of core E3SM-developed packages (e.g., `mpas_analysis`, |
| 98 | + `zppy`) |
| 99 | +* List of supported HPC machines and activation instructions |
| 100 | +* Summary of major changes, fixes, and new features |
| 101 | + |
| 102 | +--- |
| 103 | + |
| 104 | +## 🔁 Post-Release Maintenance |
| 105 | + |
| 106 | +On each supported machine: |
| 107 | + |
| 108 | +* Clean up outdated `test_...` activation scripts |
| 109 | +* Remove conda and spack environments for E3SM-Unified RCs |
| 110 | +* Delete the `update-to-<version>` branch |
| 111 | +* Move the contents on Confluence describing the |
| 112 | + [current version](https://e3sm.atlassian.net/wiki/spaces/DOC/pages/129732419/Packages+in+the+E3SM+Unified+conda+environment#Current-Version) |
| 113 | + to the top of the |
| 114 | + [previous versions](https://e3sm.atlassian.net/wiki/spaces/DOC/pages/3236233332/Packages+in+previous+versions+E3SM+Unified+conda+environment) page |
| 115 | +* Copy the contents of the next version to be the new current version |
| 116 | +* Update the the version under "next version" and remove all bold (to indicate |
| 117 | + that, as a starting point, no updates have been made to any packages in the |
| 118 | + next version) |
| 119 | +* Move any release notes for older E3SM-Unified versions into the Confluence |
| 120 | + subdirectory for [previous versions](https://e3sm.atlassian.net/wiki/spaces/DOC/pages/3236233332/Packages+in+previous+versions+E3SM+Unified+conda+environment). |
| 121 | + |
| 122 | +--- |
| 123 | + |
| 124 | +➡ Next: [Maintaining Past Versions](maintaining-past-versions.md) |
0 commit comments