Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 1 | VOLTHA Components: ONOS Dependencies |
| 2 | ==================================== |
| 3 | |
| 4 | ONOS components are maintained by a series of maven projects. |
| 5 | Releasing individual components will require: |
| 6 | |
| 7 | - Build and release dependencies: |
| 8 | |
| 9 | - Three jenkins jobs |
| 10 | |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 11 | - modify version in pom.xml for release (remove -SNAPSHOT) for release. |
| 12 | - publish artifact to Maven Central. |
| 13 | - modify version in pom.xml for release (append -SNAPSHOT) for development. |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 14 | |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 15 | - Four manual operations: |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 16 | |
| 17 | - Review and approve pull request to create a pom.xml release version. |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 18 | - Stage Maven Central deployment on a Nexus server. |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 19 | - Release artifact to maven central. |
| 20 | - Review and approve pull request to create a pom.xml non-release version. |
| 21 | |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 22 | - Long idle window(s): some 10 hours or more. |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 23 | |
| 24 | First submit nop jobs to verify the packages can build and test cleanly. |
| 25 | Bulk update copyright notice dates or modify comments within sources and submit. |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 26 | Once pakges build and test clenaly initiate a release job. |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 27 | |
| 28 | Search pom.xml for package version string |
| 29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 30 | |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 31 | .. list-table:: Semantic Version Strings |
| 32 | :header-rows: 1 |
| 33 | :widths: 20,5,50 |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 34 | |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 35 | * - Version |
| 36 | - Published |
| 37 | - Description |
| 38 | * - 5.11.0-SNAPSHOT |
| 39 | - No |
| 40 | - Development version string |
| 41 | * - 5.11.0 |
| 42 | - Yes |
| 43 | - Production version string |
| 44 | |
| 45 | Component: pom.xml |
| 46 | ------------------ |
| 47 | |
| 48 | Verify package and package.api version string state |
| 49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 50 | |
| 51 | Prior to release suffix-SNAPSHOT will be visible. |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 52 | |
| 53 | .. code:: bash |
| 54 | |
| 55 | aaa/pom.xml |
| 56 | aaa/api/pom.xml |
| 57 | aaa/app/pom.xml |
| 58 | |
| 59 | .. code:: XML |
| 60 | |
| 61 | <artifactId>sadis</artifactId> |
Joey Armstrong | 399f276 | 2023-01-11 11:41:28 -0500 | [diff] [blame] | 62 | <version>5.10.0-SNAPSHOT</version> |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 63 | <packaging>pom</packaging> |
| 64 | |
| 65 | <properties> |
Joey Armstrong | 399f276 | 2023-01-11 11:41:28 -0500 | [diff] [blame] | 66 | <sadis.api.version>5.10.0-SNAPSHOT</sadis.api.version> |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 67 | </properties> |
| 68 | |
| 69 | |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 70 | Update dependent components, apis, ... |
| 71 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 72 | |
| 73 | component: aaa |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 74 | dependency: sadis |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 75 | |
| 76 | Dependent package version strings will be a released (non-SNAPSHOT) version. |
| 77 | |
| 78 | .. code:: XML |
| 79 | |
| 80 | <properties> |
Joey Armstrong | 399f276 | 2023-01-11 11:41:28 -0500 | [diff] [blame] | 81 | <sadis.api.version>5.10.0</sadis.api.version> |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 82 | <aaa.api.version>2.8.0-SNAPSHOT</aaa.api.version> |
| 83 | </properties> |
| 84 | |
Joey Armstrong | ab04e26 | 2023-06-13 14:32:35 -0400 | [diff] [blame] | 85 | Update dependent components, apis, ... |
| 86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 87 | |
Joey Armstrong | ab04e26 | 2023-06-13 14:32:35 -0400 | [diff] [blame] | 88 | component: mcast |
| 89 | dependency: sadis |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 90 | |
Joey Armstrong | ab04e26 | 2023-06-13 14:32:35 -0400 | [diff] [blame] | 91 | Update Maven Plugins |
| 92 | ^^^^^^^^^^^^^^^^^^^^ |
| 93 | :ref:`dependencies-update-maven-plugins` |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 94 | |
| 95 | Update copyright notice to be inclusive of the year last modified |
| 96 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 97 | |
| 98 | `Copyright notice syntax <https://github.com/joey-onf/copyright>`_ |
| 99 | |
| 100 | .. code:: XML |
| 101 | |
| 102 | <?xml version="1.0" encoding="UTF-8"?> |
| 103 | <!-- |
| 104 | ~ Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors |
| 105 | ~ |
| 106 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 107 | --> |
| 108 | |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 109 | |
| 110 | Dependency Hierarchy |
| 111 | -------------------- |
| 112 | |
| 113 | Components are built and released in version hiearchy order. |
| 114 | |
| 115 | sadis |
| 116 | ^^^^^ |
| 117 | |
| 118 | - Verify -SNAPSHOT version string is present. |
| 119 | - Dependent components: none |
| 120 | - Scan pom.xml for version dependencies: |
| 121 | |
| 122 | .. code:: XML |
| 123 | |
Joey Armstrong | 399f276 | 2023-01-11 11:41:28 -0500 | [diff] [blame] | 124 | <sadis.api.version>5.10.0-SNAPSHOT</sadis.api.version> |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 125 | |
| 126 | |
| 127 | aaa |
| 128 | ^^^ |
| 129 | |
| 130 | - Verify -SNAPSHOT version string is present. |
| 131 | - Dependent components: sadis |
| 132 | - Modify pom.xml, update released version strings |
| 133 | |
| 134 | .. code:: XML |
| 135 | |
Joey Armstrong | 399f276 | 2023-01-11 11:41:28 -0500 | [diff] [blame] | 136 | <sadis.api.version>5.10.0</sadis.api.version> |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 137 | |
| 138 | |
Joey Armstrong | 399f276 | 2023-01-11 11:41:28 -0500 | [diff] [blame] | 139 | dhcpl2relay |
| 140 | ^^^^^^^^^^^ |
| 141 | |
| 142 | - Verify -SNAPSHOT version string is present. |
| 143 | - Dependent components: sadis |
| 144 | - Modify pom.xml, update released version strings |
| 145 | |
| 146 | .. code:: XML |
| 147 | |
| 148 | <sadis.api.version>5.10.0</sadis.api.version> |
| 149 | |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 150 | igmpproxy |
| 151 | ^^^^^^^^^ |
| 152 | |
| 153 | - Verify -SNAPSHOT version string is present. |
Joey Armstrong | 399f276 | 2023-01-11 11:41:28 -0500 | [diff] [blame] | 154 | - Dependent components: sadis |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 155 | - Modify pom.xml, update released version strings |
| 156 | |
| 157 | .. code:: XML |
| 158 | |
Joey Armstrong | 399f276 | 2023-01-11 11:41:28 -0500 | [diff] [blame] | 159 | <sadis.api.version>5.10.0</sadis.api.version> |
| 160 | |
| 161 | kafka |
| 162 | ^^^^^ |
| 163 | |
| 164 | - Verify -SNAPSHOT version string is present. |
| 165 | - Dependent components: aaa, bng, dhcpl2relay, igmp, mcast, olt, sadis |
| 166 | - Modify pom.xml, update released version strings |
| 167 | |
| 168 | .. code:: XML |
| 169 | |
| 170 | <aaa.api.version>x.x.x</aaa.api.version> |
| 171 | <bng.api.version>x.x.x</bng.api.version> |
| 172 | <dhcpl2relay.api.version>x.x.x</dhcpl2relay.api.version> |
| 173 | <igmp.api.version>x.x.x</igmp.api.version> |
| 174 | <mcast.api.version>x.x.x</mcast.api.version> |
| 175 | <olt.api.version>x.x.x</olt.api.version> |
| 176 | <sadis.api.version>5.10.0</sadis.api.version> |
| 177 | |
| 178 | mcast |
| 179 | ^^^^^ |
| 180 | |
| 181 | - Verify -SNAPSHOT version string is present. |
| 182 | - Dependent components: sadis |
| 183 | - Modify pom.xml, update released version strings |
| 184 | |
| 185 | .. code:: XML |
| 186 | |
| 187 | <sadis.api.version>5.10.0</sadis.api.version> |
| 188 | |
| 189 | olt |
| 190 | ^^^ |
| 191 | |
| 192 | - Verify -SNAPSHOT version string is present. |
| 193 | - Dependent components: sadis |
| 194 | - Modify pom.xml, update released version strings |
| 195 | |
| 196 | .. code:: XML |
| 197 | |
| 198 | <sadis.api.version>5.10.0</sadis.api.version> |
Joey Armstrong | 56334fc | 2023-01-15 22:53:19 -0500 | [diff] [blame] | 199 | |
| 200 | maclearner |
| 201 | ^^^^^^^^^^ |
| 202 | |
| 203 | pppoeagent |
| 204 | ^^^^^^^^^^ |
| 205 | |
| 206 | segmentrouting |
| 207 | ^^^^^^^^^^^^^^ |
Joey Armstrong | 4f93b76 | 2023-06-06 08:36:02 -0400 | [diff] [blame] | 208 | |
| 209 | |
| 210 | Validate release(d) version information |
| 211 | --------------------------------------- |
| 212 | |
| 213 | - Visit Maven Central. |
| 214 | - Sanity check deployed pom.xml files contain correct |
| 215 | |
| 216 | - Package and api versions. |
| 217 | - ONOS package version |
| 218 | - Dependent package version. |
| 219 | |
| 220 | - Yes an automation script should be created for this task. |
| 221 | - A jenkins job can be run post deployment to perform validation. |
| 222 | |
| 223 | - Input would be a config file containing expected versions. |
| 224 | - For complete coverage the job could be run: |
| 225 | |
| 226 | - pre-release: validate incoming SNAPSHOT version(s). |
| 227 | - post-release: verify deployed artifact and pom.xml versions. |
| 228 | - post-validation: jenkins would increment expected versions. |
| 229 | |
| 230 | - TODO: Start by creating a config file populated with version strings. |
| 231 | |
| 232 | - Static text can be used to maintain docs.voltha.org/release_notes/ |
| 233 | - Config would also be used as input to voltha-release (hardcoded values). |