Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 1 | --- |
| 2 | # ONOS System Test Pipeline jobs |
| 3 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 4 | |
| 5 | - test-free-job-boiler-plate: &test-free-job-boiler-plate |
| 6 | name: test-free-job-boiler-plate |
| 7 | |
| 8 | project-type: freestyle |
| 9 | |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 10 | - job-free-version-plate: &job-free-version-plate |
| 11 | name: job-free-version-plate |
| 12 | version: |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 13 | - '1.12' |
Devin Lim | 7550e02 | 2018-04-13 18:31:02 -0700 | [diff] [blame] | 14 | - '1.13' |
You Wang | 7ab523d | 2018-08-20 15:03:43 -0700 | [diff] [blame] | 15 | - '1.14' |
You Wang | befeecf | 2018-11-09 15:06:57 -0800 | [diff] [blame] | 16 | - '1.15' |
You Wang | 30ff744 | 2018-12-21 14:11:27 -0800 | [diff] [blame] | 17 | - '2.0' |
You Wang | 6eae0a4 | 2019-04-22 16:25:24 -0700 | [diff] [blame] | 18 | - '2.1' |
Jeremy Ronquillo | b3ddd59 | 2019-08-14 15:19:45 -0700 | [diff] [blame] | 19 | - '2.2' |
Jeremy Ronquillo | 409cf35 | 2020-01-21 17:01:01 -0800 | [diff] [blame] | 20 | - '2.3' |
You Wang | 55ab976 | 2020-12-02 09:00:34 -0800 | [diff] [blame] | 21 | - '2.4' |
| 22 | - '2.5' |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 23 | - 'master' |
| 24 | - 'manually' |
| 25 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 26 | - test-free-init-procedure-plate: &test-free-init-procedure-plate |
| 27 | name: test-free-init-procedure-plate |
| 28 | project: OnosSystemTest |
| 29 | stream: 'master' |
| 30 | |
| 31 | - inject-env-variable-plate: &inject-env-variable-plate |
| 32 | name: inject-env-variable-plate |
| 33 | wrappers: |
| 34 | - inject: |
| 35 | properties-file: '/var/jenkins/TestONOS.property' |
| 36 | script-content: | |
| 37 | echo "ONOSBranch=$ONOSBranch" > /var/jenkins/TestONOS.property |
| 38 | echo "TestONBranch=$TestONBranch" >> /var/jenkins/TestONOS.property |
| 39 | echo "ONOSTag=$ONOSTag" >> /var/jenkins/TestONOS.property |
| 40 | echo "WikiPrefix=$WikiPrefix" >> /var/jenkins/TestONOS.property |
| 41 | override-build-parameters: true |
| 42 | |
| 43 | # post_Job |
| 44 | - job-template: |
| 45 | name: postjob-{station-type} |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 46 | description: | |
| 47 | <!-- Managed by Jenkins Job Builder --> |
| 48 | Click on the "Last Successful Artifacts" to view all of the graphs (also accessible when logged out).<br /> |
| 49 | <font color="red">Unless debugging, DO NOT MANUALLY BUILD THIS PIPELINE.</font><br /> |
| 50 | <br /> |
| 51 | Created by Devin Lim - devin@opennetworking.org<br /> |
| 52 | Copyright (c) 2017 Open Networking Foundation (ONF) |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 53 | |
| 54 | <<: *test-free-job-boiler-plate |
| 55 | |
| 56 | properties: |
| 57 | |
| 58 | - build-discarder: |
| 59 | num-to-keep: 1 |
| 60 | |
| 61 | parameters: |
| 62 | |
| 63 | - lf-infra-parameters: |
| 64 | project: '{project}' |
| 65 | branch: '{stream}' |
| 66 | stream: '{stream}' |
| 67 | lftools-version: '{lftools-version}' |
| 68 | |
| 69 | node: 'TestStation-{station-type}s' |
| 70 | |
| 71 | publishers: |
| 72 | |
Devin Lim | 85722c3 | 2018-05-15 13:13:50 -0700 | [diff] [blame] | 73 | - archive: |
| 74 | artifacts: '*.jpg' |
| 75 | |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 76 | - image-gallery: |
| 77 | - gallery-type: archived-images-gallery |
| 78 | title: 'Test result' |
| 79 | includes: '*.jpg' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 80 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 81 | - job-template: |
Devin Lim | a008a21 | 2018-04-09 16:01:55 -0700 | [diff] [blame] | 82 | name: test-station-log-cleanup-{clean-station-type} |
Devin Lim | 02197b2 | 2018-05-10 17:09:38 -0700 | [diff] [blame] | 83 | id: test-station-log-cleanup |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 84 | description: | |
| 85 | <!-- Managed by Jenkins Job Builder --> |
Devin Lim | 02197b2 | 2018-05-10 17:09:38 -0700 | [diff] [blame] | 86 | clean up periodically ~/OnosSystemTest/TestON/logs - delete logs older than {days_remove} days. |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 87 | |
| 88 | <<: *test-free-job-boiler-plate |
| 89 | <<: *inject-env-variable-plate |
| 90 | properties: |
| 91 | |
| 92 | - build-discarder: |
| 93 | num-to-keep: 30 |
| 94 | |
| 95 | parameters: |
| 96 | |
| 97 | - string: |
| 98 | name: 'DAYS_OLD' |
Devin Lim | 02197b2 | 2018-05-10 17:09:38 -0700 | [diff] [blame] | 99 | default: '{days_remove}' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 100 | |
| 101 | - lf-infra-parameters: |
| 102 | project: '{project}' |
| 103 | branch: '{stream}' |
| 104 | stream: '{stream}' |
| 105 | lftools-version: '{lftools-version}' |
| 106 | |
Devin Lim | a008a21 | 2018-04-09 16:01:55 -0700 | [diff] [blame] | 107 | node: 'TestStation-{clean-station-type}s' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 108 | |
Devin Lim | 2b5ef2e | 2018-02-27 14:05:08 -0800 | [diff] [blame] | 109 | triggers: |
Devin Lim | 02197b2 | 2018-05-10 17:09:38 -0700 | [diff] [blame] | 110 | - timed: '01 08 1{date} * *' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 111 | |
| 112 | builders: |
| 113 | |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 114 | - shell: !include-raw-escape: vm-bm-clean-up.sh |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 115 | |
| 116 | - job-template: |
| 117 | name: test-station-log-cleanup-CHO |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 118 | description: | |
| 119 | <!-- Managed by Jenkins Job Builder --> |
| 120 | |
| 121 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 122 | |
| 123 | <<: *test-free-job-boiler-plate |
Devin Lim | c284c98 | 2018-03-30 12:13:00 -0700 | [diff] [blame] | 124 | wrappers: |
| 125 | - inject: |
| 126 | properties-file: '/var/lib/jenkins/TestONOS.property' |
| 127 | script-content: | |
| 128 | echo "ONOSBranch=$ONOSBranch" > /var/lib/jenkins/TestONOS.property |
| 129 | echo "TestONBranch=$TestONBranch" >> /var/lib/jenkins/TestONOS.property |
| 130 | echo "ONOSTag=$ONOSTag" >> /var/lib/jenkins/TestONOS.property |
| 131 | echo "WikiPrefix=$WikiPrefix" >> /var/lib/jenkins/TestONOS.property |
| 132 | override-build-parameters: true |
| 133 | |
| 134 | # post_Job |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 135 | properties: |
| 136 | |
| 137 | - build-discarder: |
| 138 | num-to-keep: 15 |
| 139 | |
| 140 | parameters: |
| 141 | |
| 142 | - string: |
| 143 | name: 'DAYS_OLD' |
| 144 | default: '15' |
| 145 | |
| 146 | - lf-infra-parameters: |
| 147 | project: '{project}' |
| 148 | branch: '{stream}' |
| 149 | stream: '{stream}' |
| 150 | lftools-version: '{lftools-version}' |
| 151 | |
| 152 | node: 'TestStation-CHOs' |
| 153 | |
Devin Lim | 2b5ef2e | 2018-02-27 14:05:08 -0800 | [diff] [blame] | 154 | triggers: |
| 155 | - timed: '@daily' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 156 | builders: |
| 157 | |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 158 | - shell: !include-raw-escape: cho-clean-up.sh |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 159 | |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 160 | - job-template: |
| 161 | name: QA-check-style |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 162 | description: | |
| 163 | <!-- Managed by Jenkins Job Builder --> |
| 164 | <h3>ONOS QA Code Style:</h3> |
| 165 | At Open Networking Foundation, we have adopted the <a href="https://github.com/mininet/mininet/wiki/Mininet-Python-Style">Mininet Python Style</a> for our drivers and testcases. The one exception is that TestON does not correctly parse multiline comments in testcases when the ending triple double quotes are on the same line as the comment. Therefore, in the testcases, the ending triple double quotes must be on it's own line.<br /> |
| 166 | All .py files that are in the most recent patchset will be style checked.<br /> |
| 167 | <br /> |
| 168 | Jenkins User will give +1 if all files pass the style check, -1 if there is at least one style check failure.<br /> |
| 169 | Jenkins will not comment on Gerrit if there are no .py files to test. This is caused by failing the job with exit code 2.<br /> |
| 170 | <br /> |
| 171 | Click on the link in the Gerrit patchset comment to view the results of the style check.<br /> |
| 172 | Alternatively, you can check the console output to view the files checked and style check raw output.<br /> |
| 173 | <br /> |
| 174 | You may also manually run this job by selecting "Build with Parameters", then providing the 5-digit change number from Gerrit.<br /> |
| 175 | <br /> |
| 176 | <h3>Important Notes:</h3> |
| 177 | A build that is "Unstable" has failed the style check. A build with state "Error" means that there were no .py files to check.<br /> |
| 178 | Build numbers that are 1 build apart may NOT necessarily correspond to the same patchset!<br /> |
| 179 | Manually running this job will NOT leave a comment after the most recent patchset in Gerrit.<br /> |
| 180 | <br /> |
| 181 | <h3>Style Check PEP8 Exclusions:</h3> |
| 182 | This job mainly follows PEP8 style check, but excludes many errors and warnings.<br /> |
| 183 | The following errors and warnings are excluded from the PEP8 check portion of the job: |
| 184 | <ul> |
| 185 | <li>E251</li> |
| 186 | <li>E201</li> |
| 187 | <li>E302</li> |
| 188 | <li>E202</li> |
| 189 | <li>E126</li> |
| 190 | <li>E127</li> |
| 191 | <li>E203</li> |
| 192 | <li>E226</li> |
| 193 | <li>E501</li> |
| 194 | <li>W391</li> |
| 195 | </ul> |
| 196 | <h3>Credits:</h3> |
| 197 | This job is modeled from <a href="https://jenkins.onosproject.org/view/all/job/onos-master-release-build-verify/">onos-master-release-build-verify</a><br /> |
| 198 | The check style portion of the job is modeled from "HA-Jobs/codecheck_test"<br /> |
| 199 | Created by Jeremy Ronquillo: jeremyr@opennetworking.org or j_ronquillo@u.pacific.edu<br /> |
| 200 | <br /> |
| 201 | Copyright (c) 2017 Open Networking Foundation (ONF) |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 202 | |
| 203 | <<: *test-free-job-boiler-plate |
| 204 | properties: |
| 205 | |
| 206 | - build-discarder: |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 207 | num-to-keep: 100 |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 208 | |
| 209 | parameters: |
| 210 | |
| 211 | - string: |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 212 | name: 'GERRIT_CHANGE_NUMBER' |
| 213 | default: '' |
| 214 | description: '5-digit number that corresponds to the patch set change on Gerrit.' |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 215 | |
| 216 | - lf-infra-parameters: |
| 217 | project: '{project}' |
| 218 | branch: '{stream}' |
| 219 | stream: '{stream}' |
| 220 | lftools-version: '{lftools-version}' |
| 221 | |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 222 | concurrent: true |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 223 | |
Jeremy Ronquillo | 1929ca2 | 2019-07-24 14:59:15 -0700 | [diff] [blame] | 224 | node: 'check-style' |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 225 | |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 226 | triggers: |
| 227 | - gerrit: |
Zack Williams | f708d36 | 2019-08-20 11:53:23 -0700 | [diff] [blame] | 228 | server-name: 'ONOS Project Gerrit' |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 229 | trigger-on: |
| 230 | - patchset-created-event: |
| 231 | exclude-drafts: false |
| 232 | exclude-trivial-rebase: false |
| 233 | exclude-no-code-change: false |
| 234 | - draft-published-event |
| 235 | - comment-added-contains-event: |
| 236 | comment-contains-value: '(?i)^.*recheck$' |
| 237 | projects: |
| 238 | - project-compare-type: PLAIN |
| 239 | project-pattern: '{project}' |
| 240 | branches: |
You Wang | a70156d | 2018-08-07 14:36:46 -0700 | [diff] [blame] | 241 | - branch-compare-type: REG_EXP |
| 242 | branch-pattern: '(master|onos-1.(1[3-9]|[2-9][0-9]))' |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 243 | wrappers: |
| 244 | - lf-infra-wrappers: |
| 245 | build-timeout: 1800 |
| 246 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 247 | |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 248 | builders: |
Devin Lim | e65e71c | 2018-02-09 15:01:33 -0800 | [diff] [blame] | 249 | - shell: !include-raw-escape: check-style.sh |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 250 | |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 251 | publishers: |
| 252 | - warnings: |
| 253 | workspace-file-scanners: |
| 254 | - file-pattern: pep8Result.txt |
| 255 | scanner: Pep8 |
Devin Lim | e65e71c | 2018-02-09 15:01:33 -0800 | [diff] [blame] | 256 | total-thresholds: |
| 257 | unstable: |
| 258 | total-all: 1 |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 259 | |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 260 | - job-template: |
| 261 | name: delta-nightly |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 262 | description: | |
| 263 | <!-- Managed by Jenkins Job Builder --> |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 264 | |
| 265 | <<: *test-free-job-boiler-plate |
| 266 | properties: |
| 267 | |
| 268 | - build-discarder: |
| 269 | num-to-keep: 30 |
| 270 | |
| 271 | parameters: |
| 272 | |
| 273 | - string: |
| 274 | name: 'NIGHTLY_FILE_NAME' |
| 275 | default: '' |
| 276 | description: | |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 277 | Name of ONOS nightly build file <br /> |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 278 | will be set to the latest file if not specified here |
| 279 | |
| 280 | - string: |
| 281 | name: 'ONOS_VERSION' |
| 282 | default: '1.11.0' |
| 283 | description: 'Version number in ONOS nightly build file' |
| 284 | |
| 285 | - string: |
| 286 | name: 'DELTA_PATH' |
| 287 | default: '/home/sdn' |
| 288 | description: 'Path of DELTA project' |
| 289 | |
| 290 | - string: |
| 291 | name: 'WIKI_PREFIX' |
| 292 | default: 'master' |
| 293 | |
| 294 | - bool: |
| 295 | name: 'CLEANUP' |
| 296 | default: true |
| 297 | |
| 298 | - lf-infra-parameters: |
| 299 | project: '{project}' |
| 300 | branch: '{stream}' |
| 301 | stream: '{stream}' |
| 302 | lftools-version: '{lftools-version}' |
| 303 | |
| 304 | node: 'TestStation-BMs' |
| 305 | |
| 306 | wrappers: |
| 307 | - inject: |
| 308 | properties-file: '/var/jenkins/TestONOS.property' |
| 309 | |
| 310 | builders: |
| 311 | |
| 312 | - shell: !include-raw-escape: delta-script.sh |
| 313 | |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 314 | publishers: |
| 315 | - plot: |
| 316 | - title: 'DELTA Test Results for master' |
| 317 | group: 'DELTA-nightly' |
| 318 | yaxis: 'Number of test cases' |
| 319 | style: line |
| 320 | series: |
| 321 | - file: 'DELTA-nightly.csv' |
| 322 | format: 'csv' |
| 323 | |
| 324 | # Todo : add confluence ( use pipeline for post build ..? ) |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 325 | |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 326 | - job-template: |
| 327 | name: init-CHO |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 328 | description: | |
| 329 | <!-- Managed by Jenkins Job Builder --> |
| 330 | 1) Set a specific onos branch to test; <br /> |
| 331 | 2) pull and checkout the branch; <br /> |
| 332 | 3) build onos and package to tar.gz <br /> |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 333 | |
| 334 | <<: *test-free-job-boiler-plate |
| 335 | properties: |
| 336 | |
| 337 | - build-discarder: |
| 338 | num-to-keep: 30 |
| 339 | |
| 340 | parameters: |
| 341 | |
| 342 | - string: |
| 343 | name: 'ONOSBranch' |
| 344 | default: 'master' |
| 345 | description: | |
Jeremy Ronquillo | 34e993b | 2018-02-07 10:43:15 -0800 | [diff] [blame] | 346 | set onos branch to test. default to "master", <br /> |
| 347 | but can also be set at "onos-1.2", etc. <br /> |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 348 | This parameter is also use to trigger where the test results to be posted |
| 349 | |
| 350 | - string: |
You Wang | 8a605bc | 2019-01-03 10:48:45 -0800 | [diff] [blame] | 351 | name: 'ONOSJAVAOPTS' |
You Wang | 2e8ef57 | 2019-05-20 16:05:17 -0700 | [diff] [blame] | 352 | default: "\"${{JAVA_OPTS:--Xms8G -Xmx8G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Dkaraf.log.console=INFO -Dds.lock.timeout.milliseconds=60000}}\"" |
You Wang | 8a605bc | 2019-01-03 10:48:45 -0800 | [diff] [blame] | 353 | description: 'onos cell JAVA_OPTS setting' |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 354 | |
| 355 | - string: |
| 356 | name: 'TestONBranch' |
| 357 | default: 'master' |
| 358 | description: 'sets TestON branch' |
| 359 | |
| 360 | - string: |
| 361 | name: 'ONOSTag' |
| 362 | default: '' |
| 363 | |
| 364 | - lf-infra-parameters: |
| 365 | project: '{project}' |
| 366 | branch: '{stream}' |
| 367 | stream: '{stream}' |
| 368 | lftools-version: '{lftools-version}' |
| 369 | |
Devin Lim | 0e1bac0 | 2018-04-24 17:46:59 -0700 | [diff] [blame] | 370 | node: 'TestStation-Fabric5s' |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 371 | |
| 372 | wrappers: |
| 373 | - inject: |
| 374 | properties-file: '/var/lib/jenkins/TestONOS.property' |
| 375 | script-content: | |
| 376 | echo "ONOSBranch=$ONOSBranch" > /var/lib/jenkins/TestONOS.property |
| 377 | echo "TestONBranch=$TestONBranch" >> /var/lib/jenkins/TestONOS.property |
| 378 | echo "ONOSTag=$ONOSTag" >> /var/lib/jenkins/TestONOS.property |
| 379 | |
| 380 | override-build-parameters: true |
| 381 | |
| 382 | builders: |
| 383 | |
| 384 | - shell: !include-raw-escape: cho-init.sh |
| 385 | |
| 386 | - job-template: |
| 387 | name: running-CHO |
| 388 | |
| 389 | <<: *test-free-job-boiler-plate |
| 390 | properties: |
| 391 | |
| 392 | - build-discarder: |
| 393 | num-to-keep: 30 |
| 394 | |
| 395 | parameters: |
| 396 | |
| 397 | - lf-infra-parameters: |
| 398 | project: '{project}' |
| 399 | branch: '{stream}' |
| 400 | stream: '{stream}' |
| 401 | lftools-version: '{lftools-version}' |
| 402 | |
Devin Lim | 0e1bac0 | 2018-04-24 17:46:59 -0700 | [diff] [blame] | 403 | node: 'TestStation-Fabric5s' |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 404 | triggers: |
| 405 | - reverse: |
| 406 | jobs: 'init-CHO' |
| 407 | result: 'failure' |
| 408 | |
| 409 | builders: |
| 410 | |
| 411 | - shell: !include-raw-escape: running-cho.sh |
| 412 | |
| 413 | - job-template: |
You Wang | e59d344 | 2018-05-25 14:04:05 -0700 | [diff] [blame] | 414 | name: 'SR-log-{version}' |
| 415 | id: SR-log-storage |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 416 | |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 417 | <<: *test-free-job-boiler-plate |
| 418 | properties: |
| 419 | |
| 420 | - build-discarder: |
Devin Lim | 1c4753e | 2018-03-23 15:31:38 -0700 | [diff] [blame] | 421 | num-to-keep: 50 |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 422 | |
| 423 | parameters: |
| 424 | |
| 425 | - lf-infra-parameters: |
| 426 | project: '{project}' |
| 427 | branch: '{stream}' |
| 428 | stream: '{stream}' |
| 429 | lftools-version: '{lftools-version}' |
| 430 | |
Jon Hall | b9db437 | 2020-12-11 17:55:25 -0800 | [diff] [blame] | 431 | node: '{node}' |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 432 | publishers: |
| 433 | |
| 434 | - archive: |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 435 | artifacts: '*' |
| 436 | |
| 437 | - job-template: |
| 438 | name: test-HA |
| 439 | |
| 440 | <<: *test-free-job-boiler-plate |
| 441 | properties: |
| 442 | |
| 443 | - build-discarder: |
| 444 | |
| 445 | days-to-keep: 5 |
| 446 | num-to-keep: 100 |
| 447 | |
| 448 | parameters: |
| 449 | |
| 450 | - string: |
| 451 | name: 'TEST_NAME' |
| 452 | default: 'HAbackupRecover' |
| 453 | description: 'The name of the TestON test suite' |
| 454 | |
| 455 | - lf-infra-parameters: |
| 456 | project: '{project}' |
| 457 | branch: '{stream}' |
| 458 | stream: '{stream}' |
| 459 | lftools-version: '{lftools-version}' |
| 460 | |
| 461 | node: 'TestStation-Jons' |
| 462 | triggers: |
| 463 | - reverse: |
| 464 | jobs: 'test-HA' |
| 465 | result: 'failure' |
| 466 | |
| 467 | builders: |
| 468 | |
| 469 | - shell: !include-raw-escape: test-ha.sh |
| 470 | |
| 471 | publishers: |
| 472 | - plot: |
| 473 | - title: 'Test job results' |
| 474 | group: 'Test-HA' |
| 475 | yaxis: 'Number of test cases' |
| 476 | style: line |
| 477 | series: |
| 478 | - file: 'results.csv' |
| 479 | format: 'csv' |
| 480 | |
| 481 | - title: 'Timers' |
| 482 | group: 'Test-HA' |
| 483 | yaxis: 'Time in seconds' |
| 484 | style: line |
| 485 | series: |
| 486 | - file: 'Timers.csv' |
| 487 | format: 'csv' |
| 488 | |
| 489 | - post-tasks: |
| 490 | - escalate-status: true |
| 491 | script: | |
| 492 | if [ -e ${{WORKSPACE}}/${{TEST_NAME##*/}}Wiki.txt ] && ! grep -q "FAIL" ${{WORKSPACE}}/${{TEST_NAME##*/}}Wiki.txt |
| 493 | then |
| 494 | exit 0 |
| 495 | else |
| 496 | exit 1 |
| 497 | fi |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 498 | |
| 499 | - project: |
| 500 | name: post-result-jobs |
| 501 | project-name: post-result-jobs |
| 502 | |
| 503 | <<: *test-free-init-procedure-plate |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 504 | jobs: |
Devin Lim | 02197b2 | 2018-05-10 17:09:38 -0700 | [diff] [blame] | 505 | - 'postjob-{station-type}': |
| 506 | station-type: |
| 507 | - 'VM' |
| 508 | - 'BM' |
| 509 | - 'Fabric' |
Jeremy Ronquillo | 1929ca2 | 2019-07-24 14:59:15 -0700 | [diff] [blame] | 510 | - 'Fabric2' |
| 511 | - 'Fabric3' |
| 512 | - 'Fabric4' |
Devin Lim | 02197b2 | 2018-05-10 17:09:38 -0700 | [diff] [blame] | 513 | - 'Fabric5' |
You Wang | dc53adf | 2019-02-07 13:47:33 -0800 | [diff] [blame] | 514 | - 'Trellis-POD' |
Jon Hall | d1bb805 | 2020-12-15 16:40:29 -0800 | [diff] [blame^] | 515 | - 'QA-POD' |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 516 | |
| 517 | - project: |
| 518 | name: cleanup-jobs |
| 519 | project-name: cleanup-jobs |
| 520 | |
| 521 | <<: *test-free-init-procedure-plate |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 522 | jobs: |
Devin Lim | 02197b2 | 2018-05-10 17:09:38 -0700 | [diff] [blame] | 523 | - 'test-station-log-cleanup': |
| 524 | clean-station-type: |
| 525 | - 'BM' |
| 526 | - 'Fabric' |
| 527 | - 'Fabric2' |
| 528 | - 'Fabric3' |
| 529 | - 'Fabric4' |
| 530 | days_remove: '30' |
| 531 | date: '' |
| 532 | |
| 533 | - 'test-station-log-cleanup': |
| 534 | clean-station-type: |
| 535 | - 'VM' |
| 536 | - 'Fabric5' |
You Wang | dc53adf | 2019-02-07 13:47:33 -0800 | [diff] [blame] | 537 | - 'Trellis-POD' |
Jon Hall | d1bb805 | 2020-12-15 16:40:29 -0800 | [diff] [blame^] | 538 | - 'QA-POD' |
Devin Lim | 02197b2 | 2018-05-10 17:09:38 -0700 | [diff] [blame] | 539 | days_remove: '15' |
| 540 | date: ',15' |
| 541 | |
Devin Lim | 49200ec | 2018-01-19 16:17:41 -0800 | [diff] [blame] | 542 | - 'test-station-log-cleanup-CHO' |
Devin Lim | 9c8fa3e | 2018-01-24 16:47:15 -0800 | [diff] [blame] | 543 | |
| 544 | - project: |
| 545 | name: check-style |
| 546 | project-name: check-style |
| 547 | |
| 548 | <<: *test-free-init-procedure-plate |
| 549 | jobs: |
| 550 | - 'QA-check-style' |
| 551 | |
| 552 | - project: |
| 553 | name: delta-test |
| 554 | project-name: delta-test |
| 555 | |
| 556 | <<: *test-free-init-procedure-plate |
| 557 | jobs: |
| 558 | - 'delta-nightly' |
Devin Lim | 7d7cd99 | 2018-01-25 14:12:40 -0800 | [diff] [blame] | 559 | |
Devin Lim | 18f459d | 2018-01-26 19:20:30 -0800 | [diff] [blame] | 560 | - project: |
| 561 | name: cho-tests |
| 562 | project-name: cho-tests |
| 563 | |
| 564 | <<: *test-free-init-procedure-plate |
| 565 | jobs: |
| 566 | - 'init-CHO' |
| 567 | - 'running-CHO' |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 568 | |
| 569 | - project: |
| 570 | name: log-pipeline |
| 571 | |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 572 | project-name: 'log-pipeline' |
| 573 | |
| 574 | <<: *test-free-init-procedure-plate |
| 575 | |
You Wang | 7466fdc | 2019-08-29 11:45:06 -0700 | [diff] [blame] | 576 | sr-version-before-previous: '2.2' |
You Wang | befeecf | 2018-11-09 15:06:57 -0800 | [diff] [blame] | 577 | sr-version-previous: '1.15' |
You Wang | 5b70d8c | 2018-05-25 17:02:59 -0700 | [diff] [blame] | 578 | sr-version-current: 'master' |
Devin Lim | f57a9eb | 2018-04-13 20:00:46 -0700 | [diff] [blame] | 579 | |
Devin Lim | 323c987 | 2018-01-30 19:57:58 -0800 | [diff] [blame] | 580 | jobs: |
You Wang | e59d344 | 2018-05-25 14:04:05 -0700 | [diff] [blame] | 581 | - 'SR-log-storage': |
| 582 | version: '{sr-version-current}' |
Jon Hall | b9db437 | 2020-12-11 17:55:25 -0800 | [diff] [blame] | 583 | node: 'TestStation-Fabric4s' |
You Wang | e59d344 | 2018-05-25 14:04:05 -0700 | [diff] [blame] | 584 | - 'SR-log-storage': |
| 585 | version: '{sr-version-previous}' |
Jon Hall | b9db437 | 2020-12-11 17:55:25 -0800 | [diff] [blame] | 586 | node: 'TestStation-Fabric2s' |
You Wang | e59d344 | 2018-05-25 14:04:05 -0700 | [diff] [blame] | 587 | - 'SR-log-storage': |
| 588 | version: '{sr-version-before-previous}' |
Jon Hall | b9db437 | 2020-12-11 17:55:25 -0800 | [diff] [blame] | 589 | node: 'TestStation-Fabric3s' |
| 590 | - 'SR-log-storage': |
| 591 | version: 'Tofino' |
| 592 | node: 'QA-POD' |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 593 | |
| 594 | - project: |
Devin Lim | b296525 | 2018-04-09 17:34:14 -0700 | [diff] [blame] | 595 | name: personal-station |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 596 | |
Devin Lim | b296525 | 2018-04-09 17:34:14 -0700 | [diff] [blame] | 597 | project-name: 'personal-station' |
Devin Lim | b00d26a | 2018-02-01 17:27:59 -0800 | [diff] [blame] | 598 | |
| 599 | <<: *test-free-init-procedure-plate |
| 600 | |
| 601 | jobs: |
| 602 | - 'test-HA' |