Joey Armstrong | f6dde7a | 2024-02-01 10:09:20 -0500 | [diff] [blame] | 1 | Misc Todo Items |
| 2 | =============== |
| 3 | |
Joey Armstrong | 68539dc | 2024-02-01 18:24:09 -0500 | [diff] [blame] | 4 | NOTE |
| 5 | ==== |
| 6 | |
| 7 | When modifying repo:ci-management be sure to modify ``*.yaml`` sources or JJB |
| 8 | will not regenerate configs. Ugly faiure mode, release pipelines can |
| 9 | behave like scripts are running from branch=master. |
| 10 | |
| 11 | ---- |
| 12 | |
Joey Armstrong | f6dde7a | 2024-02-01 10:09:20 -0500 | [diff] [blame] | 13 | - Baseline build |
| 14 | |
| 15 | - Update copyright notices :ref:`Release Task Copyright` |
| 16 | |
| 17 | - Pre-branch build |
| 18 | - make help |
| 19 | - make lint |
| 20 | |
| 21 | - Build |
| 22 | |
| 23 | - make help |
| 24 | - make sterile |
| 25 | - make lint |
| 26 | - make build |
| 27 | - make test |
| 28 | |
| 29 | ## Post editing on the release branch: |
| 30 | |
| 31 | - Update VERSION file to contain X.Y.{1+Z} |
| 32 | - Update .gitreview, defaultbranch=votlha-X.Y |
| 33 | |
| 34 | - `bbsim-tests.groovy <https://gerrit.opencord.org/plugins/gitiles/ci-management/+/refs/heads/master/jjb/pipeline/voltha/bbsim-tests.groovy#35>`_ |
| 35 | |
| 36 | .. code:: groovy |
| 37 | |
| 38 | // ----------------------------------------------------------------------- |
| 39 | // Intent: Return branch name for the script. A hardcoded value is used |
| 40 | // as a guarantee release jobs are running in an expected sandbox. |
| 41 | // ----------------------------------------------------------------------- |
| 42 | String branchName() |
| 43 | { |
| 44 | String br = 'master' // <<----** Change to release branch |
| 45 | |
| 46 | // "${branch}" is assigned by jenkins |
| 47 | if (br != branch) |
| 48 | { |
| 49 | String err = [ |
| 50 | 'ERROR: Detected invalid branch', |
| 51 | "(expected=[${br}] != found=[${branch}])" |
| 52 | ].join(' ') |
| 53 | throw new Exception(err) // groovylint-disable-line ThrowException |
| 54 | } |
| 55 | return (br) |
| 56 | } |
| 57 | |
Joey Armstrong | 68539dc | 2024-02-01 18:24:09 -0500 | [diff] [blame] | 58 | ## jb/software-upgrades.yaml |
| 59 | |
| 60 | - `jjb/software-upgrades.yaml <https://gerrit.opencord.org/plugins/gitiles/ci-management/+/refs/heads/master/jjb/software-upgrades.yaml>`_ |
| 61 | |
| 62 | - Update onos packages to released versions. |
| 63 | - Post release edits are needed in both branches: |
| 64 | |
| 65 | - branch=master is updated with ``*-SNAPSHOT`` versions |
| 66 | - branch=voltha-2.12 receives the non-SNAPSHOT release versions. |
| 67 | |
| 68 | |
Joey Armstrong | f6dde7a | 2024-02-01 10:09:20 -0500 | [diff] [blame] | 69 | ## TODO |
| 70 | |
| 71 | - Tools bbsim and voltctl are versioned for release. |
| 72 | - Track down which test scripts contain hardcoded versions for checkout. |
| 73 | |
| 74 | - Command use is all over the place and not all are being frozen. |
| 75 | - Abstract this into makefile targets (~voltctl) or a central script |
| 76 | that simply returns version string for a package. A standalone entity |
| 77 | will simplify maintenance and can be generated/autoamtically frozen |
| 78 | on a branch at release time. |
| 79 | |
| 80 | - Consider tool versioning in general. Planning for tool upgrades helps |
| 81 | minimize unplanned breakage. |
| 82 | |