blob: e98dfbc2afd79fe9095b5c9c82a225b98b67d0cc [file] [log] [blame]
Joey Armstrongf6dde7a2024-02-01 10:09:20 -05001Misc Todo Items
2===============
3
Joey Armstrong68539dc2024-02-01 18:24:09 -05004NOTE
5====
6
7When modifying repo:ci-management be sure to modify ``*.yaml`` sources or JJB
8will not regenerate configs. Ugly faiure mode, release pipelines can
9behave like scripts are running from branch=master.
10
11----
12
Joey Armstrongf6dde7a2024-02-01 10:09:20 -050013- 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 Armstrong68539dc2024-02-01 18:24:09 -050058## 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 Armstrongf6dde7a2024-02-01 10:09:20 -050069## 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