Joey Armstrong | 7d32cbe | 2023-06-02 14:30:19 -0400 | [diff] [blame] | 1 | Release Notes |
| 2 | ============= |
| 3 | |
| 4 | Intent |
| 5 | ------ |
| 6 | This page details howto create a release notes page on the docs.voltha.org website. |
| 7 | |
| 8 | |
| 9 | Cookbook: Patch #1 |
| 10 | ------------------ |
| 11 | - `VOL-5009 <https://jira.opencord.org/browse/VOL-5009>`_ - For tracking, create a jira ticket to create a release notes page. |
| 12 | - Clone repository `repo:voltha-docs <https://gerrit.opencord.org/plugins/gitiles/voltha-docs>`_ |
| 13 | - Modify `VERSION <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/VERSION>`_ file to prevent publishing. |
| 14 | |
| 15 | - Specify a version string with a -dev suffix (2.11.55-dev) |
| 16 | - The ``*-dev`` suffix will inhibit publishing release notes to https://docs.voltha.org. |
| 17 | - Helpful but not required, avoid specifying the new release version until they are finalized. |
| 18 | |
| 19 | - This will help retain a logical initial version string like |
| 20 | voltha-2.12.0 VS voltha-2.12.22 in case several edits are needed to |
| 21 | finalize documentation. |
| 22 | |
| 23 | - Copy the release notes template to create an empty release notes file: |
| 24 | |
| 25 | - Source: `release_notes/template.rst <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/release_notes>`__. |
| 26 | - Examine the last release notes file and transfer any relevant generic text into template.rst. |
| 27 | - % cp `release_notes/template.rst <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/release_notes>`__ `release_notes/voltha_2.12.rst <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/release_notes/voltha_2.11.rst>`_ |
| 28 | |
| 29 | - Add `release_notes/voltha_2.12.rst <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/release_notes/voltha_2.11.rst>`_ in the index file `release_notes/index.rst <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/release_notes/index.rst>`_ |
| 30 | |
Joey Armstrong | 56ebc23 | 2023-06-29 18:58:29 -0400 | [diff] [blame] | 31 | - Modify `config.py <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/conf.py>`_ so ``make linkcheck`` will not fail on yet-to-be-generated html release notes file. |
Joey Armstrong | 7d32cbe | 2023-06-02 14:30:19 -0400 | [diff] [blame] | 32 | |
| 33 | - Release notes: content and hilights: |
| 34 | |
| 35 | - Ask `VOLTHA TST(s) <https://opennetworking.org/voltha/>`_ to write up the release notes documentation. |
| 36 | - ONF will work on filling in the grid of dependent components and apps |
| 37 | at the bottom as they are built during a release cycle. |
| 38 | |
| 39 | - Pre-screen your patch for potential problems, ``make test`` failures will cause patch acceptance to fail. |
| 40 | |
| 41 | .. code-block:: bash |
| 42 | |
| 43 | # pre-screen for checkin test problems |
| 44 | % make sterile |
| 45 | % make test |
| 46 | |
| 47 | # Summarize make test |
| 48 | % make test-errors |
| 49 | |
| 50 | # Optional |
| 51 | % make lint |
| 52 | |
| 53 | - Create a patch, request code reviews and merge. |
| 54 | - Wait for the jenkins voltha-docs sync job to complete before continuing on. |
| 55 | |
| 56 | |
| 57 | Cookbook: Patch #2 |
| 58 | ------------------ |
| 59 | - Once release notes are ready to publish update the version string. |
| 60 | - Modify `VERSION <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/VERSION>`_ file. |
| 61 | - Remove any vresion suffix decorations such as -dev. |
| 62 | - Increment version string for the upcomign release: |
| 63 | |
| 64 | .. code-block:: bash |
| 65 | |
| 66 | # For exmaple increment version string |
| 67 | 2.11.5-dev |
| 68 | |
| 69 | # To the new release version: voltha-2.12 |
| 70 | 2.12 |
| 71 | |
| 72 | - After a code merge and jenkins job has run to generate documentation. |
| 73 | - `https://docs.voltha.org <https://docs.voltha.org/master/index.html>`_ will contain the new release documentation if your version string appears in the top left navigation box on the site. |
| 74 | |
| 75 | |
| 76 | Release independent changes |
| 77 | --------------------------- |
| 78 | - Update `copyright notice dates <https://github.com/joey-onf/copyright/blob/origin/master/notice>`_ |
| 79 | |
| 80 | - VALID: Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors |
| 81 | - Copyright notice must be inclusive of the date sources were last modified. |
| 82 | - Use of strings like 2017-present are not valid syntax and can have legal implications. |
| 83 | |