Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 1 | #!/usr/bin/env groovy |
| 2 | //------------------------------------------------------------------------------- |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 3 | // Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 4 | // |
| 5 | // SPDX-License-Identifier: BSD-3-Clause |
| 6 | // |
| 7 | //------------------------------------------------------------------------------- |
| 8 | |
Dean Birch | d0f9f8c | 2020-03-26 11:10:33 +0000 | [diff] [blame] | 9 | @Library('trustedfirmware') _ |
| 10 | import org.trustedfirmware.Gerrit |
| 11 | import org.trustedfirmware.Summary |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 12 | |
Xinyu Zhang | 0aced4c | 2021-09-03 17:06:21 +0800 | [diff] [blame] | 13 | failure_states = ["FAILURE", "ABORTED", "UNSTABLE", "NOT_BUILT"] |
| 14 | |
Summer Qin | 3c2b572 | 2021-05-26 10:43:45 +0800 | [diff] [blame] | 15 | mapPlatform = ["cypress/psoc64": "psoc64", |
| 16 | "arm/mps2/an519": "AN519", |
| 17 | "arm/mps2/an521": "AN521", |
| 18 | "arm/mps2/an539": "AN539", |
| 19 | "arm/mps2/sse-200_aws": "SSE-200_AWS", |
| 20 | "arm/mps3/an524": "AN524", |
| 21 | "arm/musca_b1/sse_200": "MUSCA_B1", |
| 22 | "arm/musca_b1/secure_enclave": "MUSCA_B1_SE", |
Arthur She | 19c0e1a | 2021-06-02 11:06:19 -0700 | [diff] [blame] | 23 | "arm/musca_s1": "MUSCA_S1", |
Xinyu Zhang | fcb6aad | 2021-08-25 16:24:11 +0800 | [diff] [blame] | 24 | "stm/stm32l562e_dk": "stm32l562e_dk", |
Xinyu Zhang | 6afdd61 | 2021-10-12 17:07:32 +0800 | [diff] [blame^] | 25 | "arm/corstone1000": "corstone1000", |
Arthur She | f365774 | 2021-09-07 14:23:18 -0700 | [diff] [blame] | 26 | "nxp/lpcxpresso55s69": "lpcxpresso55s69"] |
Xinyu Zhang | 5c4bbca | 2020-09-24 16:36:03 +0800 | [diff] [blame] | 27 | |
| 28 | mapCompiler = ["toolchain_GNUARM.cmake": "GNUARM", |
| 29 | "toolchain_ARMCLANG.cmake": "ARMCLANG"] |
| 30 | |
| 31 | mapBL2 = ["True": "--bl2", |
| 32 | "False": ""] |
| 33 | |
| 34 | mapTestPsaApi = ["OFF": "", |
Xinyu Zhang | 39acb41 | 2021-07-09 20:35:19 +0800 | [diff] [blame] | 35 | "STORAGE": "STORAGE", |
Xinyu Zhang | 5c4bbca | 2020-09-24 16:36:03 +0800 | [diff] [blame] | 36 | "CRYPTO": "Crypto", |
| 37 | "INITIAL_ATTESTATION": "Attest", |
| 38 | "IPC": "FF"] |
| 39 | |
Xinyu Zhang | 73ed299 | 2021-09-15 11:38:23 +0800 | [diff] [blame] | 40 | // LIB_MODEL, ISOLATION_LEVEL, TEST_REG, TEST_PSA_API, PROFILE, CONFIG_NAME |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 41 | mapConfigs = [ |
Xinyu Zhang | 73ed299 | 2021-09-15 11:38:23 +0800 | [diff] [blame] | 42 | ["True", "1", "False", "OFF", "N.A", "Default"], |
| 43 | ["False", "1", "False", "OFF", "N.A", "CoreIPC"], |
| 44 | ["False", "2", "False", "OFF", "N.A", "CoreIPCTfmLevel2"], |
| 45 | ["False", "3", "False", "OFF", "N.A", "CoreIPCTfmLevel3"], |
| 46 | ["True", "1", "False", "OFF", "profile_small", "DefaultProfileS"], |
| 47 | ["False", "2", "False", "OFF", "profile_medium", "DefaultProfileM"], |
| 48 | ["False", "3", "False", "OFF", "profile_large", "DefaultProfileL"], |
| 49 | ["True", "1", "True", "OFF", "N.A", "Regression"], |
| 50 | ["False", "1", "True", "OFF", "N.A", "RegressionIPC"], |
| 51 | ["False", "2", "True", "OFF", "N.A", "RegressionIPCTfmLevel2"], |
| 52 | ["False", "3", "True", "OFF", "N.A", "RegressionIPCTfmLevel3"], |
| 53 | ["True", "1", "True", "OFF", "profile_small", "RegressionProfileS"], |
| 54 | ["False", "2", "True", "OFF", "profile_medium", "RegressionProfileM"], |
| 55 | ["False", "3", "True", "OFF", "profile_large", "RegressionProfileL"], |
| 56 | ["True", "1", "False", "STORAGE", "N.A", "PsaApiTest (STORAGE)"], |
| 57 | ["True", "1", "False", "CRYPTO", "N.A", "PsaApiTest (Crypto)"], |
| 58 | ["True", "1", "False", "INITIAL_ATTESTATION", "N.A", "PsaApiTest (Attest)"], |
| 59 | ["True", "1", "False", "IPC", "N.A", "PsaApiTest (FF)"], |
| 60 | ["False", "1", "False", "STORAGE", "N.A", "PsaApiTestIPC (STORAGE)"], |
| 61 | ["False", "1", "False", "CRYPTO", "N.A", "PsaApiTestIPC (Crypto)"], |
| 62 | ["False", "1", "False", "INITIAL_ATTESTATION", "N.A", "PsaApiTestIPC (Attest)"], |
| 63 | ["False", "1", "False", "IPC", "N.A", "PsaApiTestIPC (FF)"], |
| 64 | ["False", "2", "False", "STORAGE", "N.A", "PsaApiTestIPCTfmLevel2 (STORAGE)"], |
| 65 | ["False", "2", "False", "CRYPTO", "N.A", "PsaApiTestIPCTfmLevel2 (Crypto)"], |
| 66 | ["False", "2", "False", "INITIAL_ATTESTATION", "N.A", "PsaApiTestIPCTfmLevel2 (Attest)"], |
| 67 | ["False", "2", "False", "IPC", "N.A", "PsaApiTestIPCTfmLevel2 (FF)"], |
| 68 | ["False", "3", "False", "STORAGE", "N.A", "PsaApiTestIPCTfmLevel3 (STORAGE)"], |
| 69 | ["False", "3", "False", "CRYPTO", "N.A", "PsaApiTestIPCTfmLevel3 (Crypto)"], |
| 70 | ["False", "3", "False", "INITIAL_ATTESTATION", "N.A", "PsaApiTestIPCTfmLevel3 (Attest)"], |
| 71 | ["False", "3", "False", "IPC", "N.A", "PsaApiTestIPCTfmLevel3 (FF)"], |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 72 | ] |
| 73 | |
| 74 | cfgs = ["Default", "CoreIPC", "CoreIPCTfmLevel2", "CoreIPCTfmLevel3", |
| 75 | "Regression", "RegressionIPC", |
| 76 | "RegressionIPCTfmLevel2", "RegressionIPCTfmLevel3", |
| 77 | "DefaultProfileS", "RegressionProfileS", |
| 78 | "DefaultProfileM", "RegressionProfileM", "RegressionProfileM PSOFF", |
Xinyu Zhang | 9b1aef9 | 2021-03-12 15:36:44 +0800 | [diff] [blame] | 79 | "DefaultProfileL", "RegressionProfileL", |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 80 | "PsaApiTest (Attest)", "PsaApiTestIPC (Attest)", |
| 81 | "PsaApiTestIPCTfmLevel2 (Attest)", |
| 82 | "PsaApiTest (Crypto)", "PsaApiTestIPC (Crypto)", |
| 83 | "PsaApiTestIPCTfmLevel2 (Crypto)", |
Xinyu Zhang | 39acb41 | 2021-07-09 20:35:19 +0800 | [diff] [blame] | 84 | "PsaApiTest (STORAGE)", "PsaApiTestIPC (STORAGE)", |
| 85 | "PsaApiTestIPCTfmLevel2 (STORAGE)", |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 86 | "PsaApiTestIPC (FF)", |
| 87 | "PsaApiTestIPCTfmLevel2 (FF)", |
Xinyu Zhang | 39acb41 | 2021-07-09 20:35:19 +0800 | [diff] [blame] | 88 | "PsaApiTestIPCTfmLevel3 (STORAGE)", "PsaApiTestIPCTfmLevel3 (Crypto)", |
| 89 | "PsaApiTestIPCTfmLevel3 (Attest)", "PsaApiTestIPCTfmLevel3 (FF)"] |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 90 | |
Xinyu Zhang | aa3747f | 2020-12-24 16:27:06 +0800 | [diff] [blame] | 91 | @NonCPS |
Xinyu Zhang | 5c4bbca | 2020-09-24 16:36:03 +0800 | [diff] [blame] | 92 | def generateLavaParam(build_params) { |
| 93 | def params = [] |
Summer Qin | 3c2b572 | 2021-05-26 10:43:45 +0800 | [diff] [blame] | 94 | if (build_params["TFM_PLATFORM"] == "arm/musca_b1/sse_200" && \ |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 95 | build_params["OTP"] == "ENABLED") { |
| 96 | params += string(name: "TARGET_PLATFORM", value: "MUSCA_B1_OTP") |
| 97 | } |
| 98 | else { |
| 99 | params += string(name: "TARGET_PLATFORM", \ |
| 100 | value: mapPlatform[build_params["TFM_PLATFORM"]]) |
| 101 | } |
Xinyu Zhang | 5c4bbca | 2020-09-24 16:36:03 +0800 | [diff] [blame] | 102 | params += string(name: "COMPILER", \ |
| 103 | value: mapCompiler[build_params["TOOLCHAIN_FILE"]]) |
| 104 | params += string(name: "PSA_API_SUITE", \ |
| 105 | value: mapTestPsaApi[build_params["TEST_PSA_API"]]) |
| 106 | |
Xinyu Zhang | dbfadae | 2020-12-07 14:42:59 +0800 | [diff] [blame] | 107 | configName = "Config" |
Xinyu Zhang | 73ed299 | 2021-09-15 11:38:23 +0800 | [diff] [blame] | 108 | config_params = [build_params["LIB_MODEL"], build_params["ISOLATION_LEVEL"], \ |
Xinyu Zhang | dbfadae | 2020-12-07 14:42:59 +0800 | [diff] [blame] | 109 | build_params["TEST_REGRESSION"], build_params["TEST_PSA_API"], \ |
| 110 | build_params["PROFILE"]] |
| 111 | for (config in mapConfigs) { |
Xinyu Zhang | 3f7e2f5 | 2021-09-02 13:43:57 +0800 | [diff] [blame] | 112 | if (config_params == config[0..4]) { |
| 113 | configName += config[5].replace(' (', '_').replace(')', '') |
Xinyu Zhang | dbfadae | 2020-12-07 14:42:59 +0800 | [diff] [blame] | 114 | break |
| 115 | } |
Xinyu Zhang | 5c4bbca | 2020-09-24 16:36:03 +0800 | [diff] [blame] | 116 | } |
Xinyu Zhang | dbfadae | 2020-12-07 14:42:59 +0800 | [diff] [blame] | 117 | if (configName == "Config") { |
| 118 | configName = "ConfigDefault" |
| 119 | } |
| 120 | params += string(name: "PROJ_CONFIG", value: configName) |
Xinyu Zhang | aa3747f | 2020-12-24 16:27:06 +0800 | [diff] [blame] | 121 | print("Params of ${configName} :") |
| 122 | print(config_params) |
Xinyu Zhang | 5c4bbca | 2020-09-24 16:36:03 +0800 | [diff] [blame] | 123 | return params |
| 124 | } |
| 125 | |
Xinyu Zhang | 0aced4c | 2021-09-03 17:06:21 +0800 | [diff] [blame] | 126 | def submit_lava_tests(config, results, build_res, params, params_collection) { |
| 127 | print("Doing LAVA stuff for ${build_res.getAbsoluteUrl()}") |
| 128 | params += generateLavaParam(params_collection) |
| 129 | params += string(name: 'BUILD_NUMBER', value: "${build_res.number}") |
| 130 | params += string(name: 'BUILD_URL', value: build_res.getAbsoluteUrl()) |
| 131 | params += string(name: 'LAVA_URL', value: env.LAVA_URL) |
| 132 | params += string(name: 'CI_SCRIPTS_BRANCH', value: env.CI_SCRIPTS_BRANCH) |
| 133 | params += string(name: 'LAVA_CREDENTIALS', value: env.LAVA_CREDENTIALS) |
| 134 | params += string(name: 'CODE_COVERAGE_EN', value: env.CODE_COVERAGE_EN) |
| 135 | def lava_res = build(job: 'tf-m-lava-submit', parameters: params, propagate: false) |
| 136 | def lava_resubmitted = false |
| 137 | if (lava_res.result in failure_states) { |
| 138 | error("LAVA Create and Submit failed at ${lava_res.getAbsoluteUrl()}") |
| 139 | } else { |
| 140 | lava_des = lava_res.getDescription() |
| 141 | if (lava_des.contains(" Submitted twice!")) { |
| 142 | lava_resubmitted = true |
| 143 | lava_des = lava_des - " Submitted twice!" |
| 144 | } |
| 145 | results['lava_jobs'] += lava_des |
| 146 | } |
| 147 | links = "Build Config: ${config}\n" |
| 148 | links += "Build URL: ${build_res.getAbsoluteUrl()}\n" |
| 149 | links += "LAVA Submit: ${lava_res.getAbsoluteUrl()}" |
| 150 | if (lava_resubmitted) { |
| 151 | links += "\nLAVA Job Re-Submitted!" |
| 152 | } |
| 153 | print(links) |
| 154 | } |
| 155 | |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 156 | def listConfigs(ci_scripts_dir, config_list, filter_group) { |
| 157 | dir(ci_scripts_dir) { |
| 158 | echo "Obtaining list of configs." |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 159 | echo "Running: python3 ./configs.py -g ${filter_group.replace(" ", " -g ")}" |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 160 | def build_config_list_raw = sh(script: """\ |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 161 | python3 ./configs.py -g ${filter_group.replace(" ", " -g ")} |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 162 | """, returnStdout: true).trim() |
| 163 | def build_config_list = build_config_list_raw.tokenize('\n') |
| 164 | config_list.addAll(build_config_list) |
| 165 | } |
| 166 | } |
| 167 | |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 168 | def buildConfig(ci_scripts_dir, config, filter_group, results) { |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 169 | def params = [] |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 170 | def params_collection = [:] |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 171 | def build_config_params |
| 172 | dir(ci_scripts_dir) { |
| 173 | echo "Obtaining build configuration for config ${config}" |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 174 | echo "Running: python3 ./configs.py -g ${filter_group.replace(" ", " -g ")} ${config}" |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 175 | build_config_params = sh(script: """\ |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 176 | python3 ./configs.py -g ${filter_group.replace(" ", " -g ")} ${config} |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 177 | """, returnStdout: true).trim() |
| 178 | } |
| 179 | def lines = build_config_params.tokenize('\n') |
| 180 | for (String line : lines) { |
| 181 | def key, value |
| 182 | (key, value) = line.tokenize('=') |
| 183 | params += string(name: key, value: value) |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 184 | params_collection[key] = value |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 185 | } |
| 186 | params += string(name: 'GERRIT_BRANCH', value: env.GERRIT_BRANCH) |
Dean Birch | d0f9f8c | 2020-03-26 11:10:33 +0000 | [diff] [blame] | 187 | params += string(name: 'GERRIT_HOST', value: env.GERRIT_HOST) |
| 188 | params += string(name: 'GERRIT_CHANGE_NUMBER', value: env.GERRIT_CHANGE_NUMBER) |
| 189 | params += string(name: 'GERRIT_PATCHSET_REVISION', value: env.GERRIT_PATCHSET_REVISION) |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 190 | params += string(name: 'GERRIT_REFSPEC', value: env.GERRIT_REFSPEC) |
Karl Zhang | 02d3035 | 2020-08-20 13:48:52 +0800 | [diff] [blame] | 191 | params += string(name: 'MBEDTLS_VERSION', value: env.MBEDTLS_VERSION) |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 192 | params += string(name: 'CODE_REPO', value: env.CODE_REPO) |
Karl Zhang | f6f467e | 2020-07-10 16:24:45 +0800 | [diff] [blame] | 193 | params += string(name: 'CODE_COVERAGE_EN', value: env.CODE_COVERAGE_EN) |
Colin Thorbinson | 58703db | 2020-11-24 12:02:19 +0000 | [diff] [blame] | 194 | params += string(name: 'CI_SCRIPTS_BRANCH', value: env.CI_SCRIPTS_BRANCH) |
Leonardo Sandoval | 7090b2c | 2021-09-17 13:20:44 -0500 | [diff] [blame] | 195 | params += string(name: 'MCUBOOT_REFSPEC', value: env.MCUBOOT_REFSPEC) |
| 196 | params += string(name: 'MCUBOOT_URL', value: env.MCUBOOT_URL) |
| 197 | params += string(name: 'MBEDTLS_VERSION', value: env.MBEDTLS_VERSION) |
| 198 | params += string(name: 'MCUBOOT_URL', value: env.MBEDTLS_URL) |
| 199 | params += string(name: 'TFM_TESTS_REFSPEC', value: env.TFM_TESTS_REFSPEC) |
| 200 | params += string(name: 'TFM_TESTS_URL', value: env.TFM_TESTS_URL) |
| 201 | params += string(name: 'PSA_ARCH_TESTS_VERSION', value: env.PSA_ARCH_TESTS_VERSION) |
| 202 | params += string(name: 'PSA_ARCH_TESTS_URL', value: env.PSA_ARCH_TESTS_URL) |
| 203 | params += string(name: 'SHARE_FOLDER', value: env.SHARE_FOLDER) |
Hugo L'Hostis | e55a275 | 2021-01-27 11:09:08 +0000 | [diff] [blame] | 204 | if (env.JOB_NAME.equals("tf-m-nightly")) { //Setting the Memory footprint gathering. |
| 205 | params += string(name: 'SQUAD_CONFIGURATIONS', value: env.SQUAD_CONFIGURATIONS) |
| 206 | } |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 207 | return { -> results |
| 208 | def build_res = build(job: 'tf-m-build-config', parameters: params, propagate: false) |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 209 | def build_url = build_res.getAbsoluteUrl() |
Xinyu Zhang | 0aced4c | 2021-09-03 17:06:21 +0800 | [diff] [blame] | 210 | results['builds'][build_res.number] = [build_res, config, params_collection] |
| 211 | |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 212 | print("${build_res.number}: ${config} ${build_res.result} ${build_url}") |
Xinyu Zhang | f2ba911 | 2021-09-02 13:31:16 +0800 | [diff] [blame] | 213 | |
| 214 | // Filter out configs do not need LAVA tests |
| 215 | |
| 216 | // Configs with build failure do not need LAVA tests |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 217 | if (build_res.result in failure_states) { |
| 218 | error("Build failed at ${build_url}") |
| 219 | } |
Xinyu Zhang | 372e8a1 | 2021-09-02 13:51:39 +0800 | [diff] [blame] | 220 | // Configs without BL2 do not need LAVA tests |
| 221 | else if (params_collection["BL2"] == "False") { |
| 222 | print("LAVA is not needed for ${build_url}") |
| 223 | } |
Xinyu Zhang | f2ba911 | 2021-09-02 13:31:16 +0800 | [diff] [blame] | 224 | // Configs without building NS app do not need LAVA tests |
| 225 | else if (params_collection["NS"] == "False") { |
| 226 | print("LAVA is not needed for ${build_url}") |
| 227 | } |
| 228 | // LAVA tests on MUSCA_B1 are not needed in per-patch job |
| 229 | else if (params_collection["TFM_PLATFORM"].contains("musca_b1") && \ |
| 230 | env.JOB_NAME.equals("tf-m-build-and-test")) { |
Xinyu Zhang | 5c4bbca | 2020-09-24 16:36:03 +0800 | [diff] [blame] | 231 | print("LAVA is not needed for ${build_url}") |
| 232 | } |
Xinyu Zhang | 7bb6916 | 2021-07-01 03:40:53 +0100 | [diff] [blame] | 233 | // Only submit LAVA test for a specified OTP enabled config in nightly or release job |
| 234 | else if (params_collection["OTP"] == "ENABLED" && \ |
Xinyu Zhang | c4bb2e1 | 2021-07-21 22:40:35 +0800 | [diff] [blame] | 235 | params_collection["CONFIG_NAME"] != "MUSCA_B1_GNUARM_PSA_3_REG_Debug_OTP_BL2_NS") { |
Xinyu Zhang | 7bb6916 | 2021-07-01 03:40:53 +0100 | [diff] [blame] | 236 | print("LAVA is not needed for ${build_url}") |
| 237 | } |
Xinyu Zhang | c4bb2e1 | 2021-07-21 22:40:35 +0800 | [diff] [blame] | 238 | else if (params_collection["CONFIG_NAME"] == "MUSCA_B1_GNUARM_PSA_3_REG_Debug_OTP_BL2_NS" && \ |
Xinyu Zhang | 7bb6916 | 2021-07-01 03:40:53 +0100 | [diff] [blame] | 239 | !(env.JOB_NAME.equals("tf-m-nightly") || env.JOB_NAME.equals("tf-m-release"))) { |
Xinyu Zhang | 9711434 | 2021-01-21 14:08:03 +0800 | [diff] [blame] | 240 | print("LAVA is not needed for ${build_url}") |
| 241 | } |
Xinyu Zhang | f2ba911 | 2021-09-02 13:31:16 +0800 | [diff] [blame] | 242 | |
| 243 | // Submit LAVA tests |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 244 | else { |
Xinyu Zhang | 0aced4c | 2021-09-03 17:06:21 +0800 | [diff] [blame] | 245 | submit_lava_tests(config, results, build_res, params, params_collection) |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 246 | } |
| 247 | } |
| 248 | } |
| 249 | |
Matthew Hart | 06340d7 | 2020-06-15 16:08:20 +0100 | [diff] [blame] | 250 | def buildDocs(results) { |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 251 | def params = [] |
| 252 | params += string(name: 'GERRIT_BRANCH', value: env.GERRIT_BRANCH) |
Dean Birch | d0f9f8c | 2020-03-26 11:10:33 +0000 | [diff] [blame] | 253 | params += string(name: 'GERRIT_HOST', value: env.GERRIT_HOST) |
| 254 | params += string(name: 'GERRIT_CHANGE_NUMBER', value: env.GERRIT_CHANGE_NUMBER) |
| 255 | params += string(name: 'GERRIT_PATCHSET_REVISION', value: env.GERRIT_PATCHSET_REVISION) |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 256 | params += string(name: 'GERRIT_REFSPEC', value: env.GERRIT_REFSPEC) |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 257 | params += string(name: 'CODE_REPO', value: env.CODE_REPO) |
Colin Thorbinson | 58703db | 2020-11-24 12:02:19 +0000 | [diff] [blame] | 258 | params += string(name: 'CI_SCRIPTS_BRANCH', value: env.CI_SCRIPTS_BRANCH) |
Leonardo Sandoval | 7090b2c | 2021-09-17 13:20:44 -0500 | [diff] [blame] | 259 | params += string(name: 'SHARE_FOLDER', value: env.SHARE_FOLDER) |
Matthew Hart | 06340d7 | 2020-06-15 16:08:20 +0100 | [diff] [blame] | 260 | return { -> results |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 261 | def res = build(job: 'tf-m-build-docs', parameters: params, propagate:false) |
| 262 | print("${res.number}: Docs ${res.result} ${res.getAbsoluteUrl()}") |
Matthew Hart | 06340d7 | 2020-06-15 16:08:20 +0100 | [diff] [blame] | 263 | results['docs'] = [res.number, res.result, params] |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 264 | if (res.result in ["FAILURE", "ABORTED", "UNSTABLE", "NOT_BUILT"]) { |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 265 | error("Build failed at ${res.getAbsoluteUrl()}") |
| 266 | } |
| 267 | } |
| 268 | } |
| 269 | |
Xinyu Zhang | 38a1887 | 2020-11-23 16:45:28 +0800 | [diff] [blame] | 270 | def generateEmailBody(stage, failed_jobs) { |
| 271 | body = "Check console output at ${env.BUILD_URL} \n\n" |
| 272 | |
| 273 | body += "Failed Jobs:\n" |
| 274 | failed_jobs.each { job -> |
| 275 | body += "${job.key} ${job.value}\n" |
| 276 | } |
| 277 | |
| 278 | body += "\nFor detailed ${stage} results please refer to \ |
| 279 | ${env.BUILD_URL}artifact/${stage}_results.csv \n" |
| 280 | return body |
| 281 | } |
| 282 | |
| 283 | def emailNotification(results, stage, failed_jobs) { |
Karl Zhang | 0413e97 | 2020-09-18 17:59:26 +0800 | [diff] [blame] | 284 | script { |
| 285 | if (env.JOB_NAME.equals("tf-m-nightly") && !env.EMAIL_NOTIFICATION.equals('')) { |
| 286 | def result = "Fail." |
Karl Zhang | 182ecdf | 2020-10-10 09:52:12 +0800 | [diff] [blame] | 287 | if (results == true) { |
Karl Zhang | 0413e97 | 2020-09-18 17:59:26 +0800 | [diff] [blame] | 288 | result = "Success." |
Karl Zhang | 182ecdf | 2020-10-10 09:52:12 +0800 | [diff] [blame] | 289 | print("Skip sending as ${result} for ${stage}") |
| 290 | } |
| 291 | else { |
| 292 | emailext ( |
| 293 | subject: ("Job ${env.JOB_NAME} ${stage} ${env.BUILD_NUMBER} ${result}"), |
Xinyu Zhang | 38a1887 | 2020-11-23 16:45:28 +0800 | [diff] [blame] | 294 | body: generateEmailBody(stage, failed_jobs), |
Karl Zhang | 182ecdf | 2020-10-10 09:52:12 +0800 | [diff] [blame] | 295 | to: "${EMAIL_NOTIFICATION}" |
| 296 | ) |
| 297 | } |
Karl Zhang | 0413e97 | 2020-09-18 17:59:26 +0800 | [diff] [blame] | 298 | } |
| 299 | } /* script */ |
| 300 | } |
| 301 | |
Xinyu Zhang | 38a1887 | 2020-11-23 16:45:28 +0800 | [diff] [blame] | 302 | def filterFailedBuild(results) { |
| 303 | def failed_builds = [:] |
| 304 | results.each { result -> |
| 305 | if (result.value[0].getResult() == "FAILURE") { |
| 306 | failed_builds[result.value[1]] = result.value[0].getAbsoluteUrl() |
| 307 | } |
| 308 | } |
| 309 | return failed_builds |
| 310 | } |
| 311 | |
| 312 | def filterFailedTest(string) { |
| 313 | def failed_tests = [:] |
| 314 | line = lineInString(string, "FAILURE_TESTS:") |
| 315 | a = line.split(' ') |
| 316 | if (a.size() > 1) { |
| 317 | a = line.split(' ')[1..-1] |
| 318 | a.each { fail_test -> |
| 319 | config_link = fail_test.split(':') |
| 320 | failed_tests[config_link[0]] = config_link[1..-1].join(':') |
| 321 | } |
| 322 | } |
| 323 | return failed_tests |
| 324 | } |
| 325 | |
xinyu-tfm | b4fc041 | 2020-08-19 10:49:51 +0800 | [diff] [blame] | 326 | @NonCPS |
| 327 | def generateCsvContent(results) { |
| 328 | def resultsParam = [] |
| 329 | results.each { result -> |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 330 | if (result.value[2]['BL2'] == "True") { |
| 331 | resultsParam.add([result.value[1], \ |
| 332 | result.value[0].getResult(), \ |
| 333 | result.value[2]['TFM_PLATFORM'], \ |
| 334 | result.value[2]['TOOLCHAIN_FILE'], \ |
| 335 | result.value[2]['CMAKE_BUILD_TYPE'], \ |
| 336 | result.value[2]['BL2'], \ |
| 337 | result.value[2]['NS'], \ |
Xinyu Zhang | 73ed299 | 2021-09-15 11:38:23 +0800 | [diff] [blame] | 338 | result.value[2]['LIB_MODEL'], \ |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 339 | result.value[2]['ISOLATION_LEVEL'], \ |
| 340 | result.value[2]['TEST_REGRESSION'], \ |
| 341 | result.value[2]['TEST_PSA_API'], \ |
| 342 | result.value[2]['PROFILE'], \ |
| 343 | result.value[2]['PARTITION_PS'], \ |
| 344 | result.value[2]['OTP']]) |
| 345 | } |
xinyu-tfm | b4fc041 | 2020-08-19 10:49:51 +0800 | [diff] [blame] | 346 | } |
xinyu-tfm | b4fc041 | 2020-08-19 10:49:51 +0800 | [diff] [blame] | 347 | resultsParam.each { result -> |
Xinyu Zhang | 8d95fc1 | 2021-07-21 10:58:39 +0800 | [diff] [blame] | 348 | if (result[2] == 'arm/musca_b1/sse_200') { |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 349 | if (result[13] != 'off') { |
Xinyu Zhang | 8d95fc1 | 2021-07-21 10:58:39 +0800 | [diff] [blame] | 350 | result[2] = 'arm/musca_b1/sse_200_OTP' |
xinyu-tfm | b4fc041 | 2020-08-19 10:49:51 +0800 | [diff] [blame] | 351 | } |
| 352 | } |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 353 | result[3] = mapCompiler[result[3]] |
Xinyu Zhang | 3f7e2f5 | 2021-09-02 13:43:57 +0800 | [diff] [blame] | 354 | build_params = result[7..12] |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 355 | configName = "" |
| 356 | for (map_cfg in mapConfigs) { |
Xinyu Zhang | 3f7e2f5 | 2021-09-02 13:43:57 +0800 | [diff] [blame] | 357 | if (build_params[0..4] == map_cfg[0..4]) { |
| 358 | configName = map_cfg[5] |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 359 | break |
| 360 | } |
xinyu-tfm | b4fc041 | 2020-08-19 10:49:51 +0800 | [diff] [blame] | 361 | } |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 362 | if (configName == "") { |
| 363 | configName = "Default" |
xinyu-tfm | b4fc041 | 2020-08-19 10:49:51 +0800 | [diff] [blame] | 364 | } |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 365 | else if (configName == "RegressionProfileM") { |
Xinyu Zhang | 3f7e2f5 | 2021-09-02 13:43:57 +0800 | [diff] [blame] | 366 | if (build_params[5] == "OFF") { |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 367 | configName = "RegressionProfileM PSOFF" |
| 368 | } |
xinyu-tfm | b4fc041 | 2020-08-19 10:49:51 +0800 | [diff] [blame] | 369 | } |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 370 | result.add(configName) |
xinyu-tfm | b4fc041 | 2020-08-19 10:49:51 +0800 | [diff] [blame] | 371 | } |
xinyu-tfm | b4fc041 | 2020-08-19 10:49:51 +0800 | [diff] [blame] | 372 | def csvContent = [] |
| 373 | resultsParam.each { result -> |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 374 | current_row = result[2..4] |
| 375 | cfgs.each {cfg -> |
| 376 | if (cfg == result[14]) { |
| 377 | current_row.add(cfg) |
| 378 | current_row.add(result[1]) |
| 379 | } |
| 380 | } |
| 381 | csvContent.add(current_row) |
| 382 | } |
| 383 | csvContent.sort{a,b -> a[0] <=> b[0] ?: a[1] <=> b[1] ?: a[2] <=> b[2]} |
| 384 | build_summary = [] |
| 385 | current_platform = "" |
| 386 | current_compiler = "" |
| 387 | current_build_type = "" |
| 388 | csvContent.each { build_cfg -> |
| 389 | if (current_platform != build_cfg[0] || \ |
| 390 | current_compiler != build_cfg[1] || \ |
| 391 | current_build_type != build_cfg[2]) { |
| 392 | current_platform = build_cfg[0] |
| 393 | current_compiler = build_cfg[1] |
| 394 | current_build_type = build_cfg[2] |
| 395 | csv_line = [current_platform, current_compiler, current_build_type] |
| 396 | cfgs.each { |
| 397 | csv_line.add("N.A.") |
xinyu-tfm | b4fc041 | 2020-08-19 10:49:51 +0800 | [diff] [blame] | 398 | } |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 399 | build_summary.add(csv_line) |
| 400 | } |
| 401 | i = 0 |
| 402 | cfgs.each { cfg -> |
| 403 | if (cfg == build_cfg[3]) { |
| 404 | build_summary[-1][3+i] = build_cfg[4] |
| 405 | } |
| 406 | i += 1 |
xinyu-tfm | b4fc041 | 2020-08-19 10:49:51 +0800 | [diff] [blame] | 407 | } |
| 408 | } |
Xinyu Zhang | 4f2ef5a | 2020-11-09 18:11:43 +0800 | [diff] [blame] | 409 | build_summary.add(0, ['Platform', 'Compiler', 'Cmake Build Type']) |
| 410 | build_summary[0] += cfgs |
| 411 | return build_summary |
xinyu-tfm | b4fc041 | 2020-08-19 10:49:51 +0800 | [diff] [blame] | 412 | } |
| 413 | |
| 414 | def generateBuildCsv(results) { |
| 415 | def csvContent = generateCsvContent(results) |
| 416 | node("master") { |
| 417 | writeCSV file: 'build_results.csv', records: csvContent, format: CSVFormat.EXCEL |
| 418 | archiveArtifacts 'build_results.csv' |
| 419 | } |
| 420 | } |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 421 | |
| 422 | def buildCsv(results) { |
Dean Birch | d0f9f8c | 2020-03-26 11:10:33 +0000 | [diff] [blame] | 423 | def summary = new Summary(); |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 424 | def csvContent = summary.getBuildCsv(results) |
| 425 | node("master") { |
| 426 | writeCSV file: 'build_results.csv', records: csvContent, format: CSVFormat.EXCEL |
| 427 | archiveArtifacts 'build_results.csv' |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | def writeSummary(results) { |
Dean Birch | d0f9f8c | 2020-03-26 11:10:33 +0000 | [diff] [blame] | 432 | def summary = new Summary(); |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 433 | def buildLinks = summary.getLinks(results) |
| 434 | node("master") { |
| 435 | writeFile file: "build_links.html", text: buildLinks |
| 436 | archiveArtifacts 'build_links.html' |
| 437 | } |
| 438 | } |
| 439 | |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 440 | def lineInString(string, match) { |
| 441 | def lines = string.split("\n") |
| 442 | def result = lines.findAll { it.contains(match) } |
| 443 | return result[0] |
| 444 | } |
| 445 | |
Xinyu Zhang | 97ee3fd | 2020-12-14 14:45:06 +0800 | [diff] [blame] | 446 | def showLinks(string) { |
| 447 | def lines = string.split("\n") |
| 448 | def result = lines.findAll { it.contains("Build Config: ")} |
| 449 | links = result.join("\n") |
| 450 | print(links) |
| 451 | } |
| 452 | |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 453 | def getResult(string, match) { |
| 454 | line = lineInString(string, match) |
Dean Birch | 1d545c0 | 2020-05-29 14:09:21 +0100 | [diff] [blame] | 455 | a = line.split(match)[1].split(' ') |
| 456 | score = a[0] |
| 457 | if (a.size() > 1) |
| 458 | { |
| 459 | fail_text = a[1..-1].join(" ") |
| 460 | return [score, fail_text] |
| 461 | } |
| 462 | return [score, ""] |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 463 | } |
| 464 | |
| 465 | def submitJobsToList(results) { |
| 466 | def all_jobs = [] |
| 467 | for (String result : results){ |
| 468 | jobs_s = result.split('JOBS: ') |
| 469 | if (jobs_s.size() > 1) { |
| 470 | all_jobs += jobs_s[1] |
| 471 | } |
| 472 | } |
| 473 | return(all_jobs) |
| 474 | } |
| 475 | |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 476 | def configs = [] |
| 477 | def builds = [:] |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 478 | def results = [:] |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 479 | |
Xinyu Zhang | 4cdfd1b | 2021-05-21 15:10:49 +0800 | [diff] [blame] | 480 | timestamps { |
| 481 | node("docker-amd64-tf-m-bionic") { |
| 482 | stage("Init") { |
| 483 | cleanWs() |
| 484 | dir("tf-m-ci-scripts") { |
| 485 | checkout([$class: 'GitSCM', branches: [[name: '$CI_SCRIPTS_BRANCH']], userRemoteConfigs: [[credentialsId: 'GIT_SSH_KEY', url: '$CI_SCRIPTS_REPO']]]) |
Xinyu Zhang | 8472b85 | 2021-09-04 00:13:34 +0800 | [diff] [blame] | 486 | sh "git rev-parse --short HEAD" |
Leonardo Sandoval | 7090b2c | 2021-09-17 13:20:44 -0500 | [diff] [blame] | 487 | // Clone TF-M repositories so share folder can be reused by downstream jobs |
| 488 | sh "./clone.sh" |
Xinyu Zhang | 4cdfd1b | 2021-05-21 15:10:49 +0800 | [diff] [blame] | 489 | } |
| 490 | } |
| 491 | stage("Configs") { |
| 492 | // Populate configs |
| 493 | listConfigs('tf-m-ci-scripts', configs, env.FILTER_GROUP) |
| 494 | results['builds'] = [:] |
| 495 | results['lava_jobs'] = [] |
| 496 | for (config in configs) { |
| 497 | builds[config] = buildConfig("tf-m-ci-scripts", config, env.FILTER_GROUP, results) |
| 498 | } |
| 499 | builds["docs"] = buildDocs(results) |
Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame] | 500 | } |
| 501 | } |
Karl Zhang | fec8410 | 2020-06-24 09:56:36 +0800 | [diff] [blame] | 502 | |
Xinyu Zhang | 4cdfd1b | 2021-05-21 15:10:49 +0800 | [diff] [blame] | 503 | stage("Builds") { |
| 504 | def verify = 1 |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 505 | def success = true |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 506 | try { |
Xinyu Zhang | 4cdfd1b | 2021-05-21 15:10:49 +0800 | [diff] [blame] | 507 | parallel(builds) |
| 508 | } catch (Exception e) { |
| 509 | print(e) |
| 510 | manager.buildFailure() |
| 511 | verify = -1 |
| 512 | success = false |
| 513 | } finally { |
| 514 | print("Verifying status") |
| 515 | def failed_builds = filterFailedBuild(results['builds']) |
| 516 | emailNotification(success, 'build', failed_builds) |
| 517 | g = new Gerrit() |
| 518 | g.verifyStatus(verify, 'tf-m-build', 'build') |
| 519 | print("Building CSV") |
| 520 | generateBuildCsv(results['builds']) |
| 521 | writeSummary(results['builds']) |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | node("docker-amd64-tf-m-bionic") { |
| 526 | stage("Tests") { |
| 527 | dir("tf-m-ci-scripts") { |
| 528 | checkout([$class: 'GitSCM', branches: [[name: '$CI_SCRIPTS_BRANCH']], userRemoteConfigs: [[credentialsId: 'GIT_SSH_KEY', url: '$CI_SCRIPTS_REPO']]]) |
| 529 | } |
| 530 | def all_jobs = [] |
| 531 | def success = true |
| 532 | print("Wait for LAVA results here...") |
| 533 | try { |
| 534 | all_jobs = submitJobsToList(results['lava_jobs']) |
| 535 | if (all_jobs.size() > 0) { |
| 536 | dir("tf-m-ci-scripts") { |
| 537 | withCredentials([usernamePassword(credentialsId: env.LAVA_CREDENTIALS, passwordVariable: 'LAVA_TOKEN', usernameVariable: 'LAVA_USER')]) { |
| 538 | output = sh(script: """./lava_helper/lava_wait_jobs.py --job-ids ${all_jobs.join(",")} \ |
| 539 | --lava-url ${env.LAVA_URL} --lava-user ${LAVA_USER} --lava-token ${LAVA_TOKEN} \ |
| 540 | --artifacts-path lava_artifacts --lava-timeout 7200 \ |
| 541 | """, returnStdout: true).trim() |
| 542 | showLinks(output) |
| 543 | archiveArtifacts artifacts: 'test_summary.*', allowEmptyArchive: true |
| 544 | archiveArtifacts artifacts: 'test_results.csv', allowEmptyArchive: true |
| 545 | g = new Gerrit() |
| 546 | def (boot_result, boot_output) = getResult(output, 'BOOT_RESULT: ') |
| 547 | if (boot_result) { |
| 548 | g.verifyStatus(boot_result, "lava_boot", "test") |
| 549 | } |
| 550 | def (test_result, test_output) = getResult(output, 'TEST_RESULT: ') |
| 551 | if (test_result) { |
| 552 | g.verifyStatus(test_result, "lava_test", "test") |
| 553 | } |
| 554 | if (boot_result.toInteger() < 1 || test_result.toInteger() < 1) { |
| 555 | error("Marking job as failed due to failed boots: ${boot_output} or tests: ${test_output}") |
| 556 | } |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 557 | } |
| 558 | } |
| 559 | } |
Xinyu Zhang | 4cdfd1b | 2021-05-21 15:10:49 +0800 | [diff] [blame] | 560 | else { |
| 561 | print("There were no LAVA jobs to test.") |
| 562 | } |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 563 | } |
Xinyu Zhang | 4cdfd1b | 2021-05-21 15:10:49 +0800 | [diff] [blame] | 564 | catch (Exception e) { |
| 565 | print("ERROR: ${e}") |
| 566 | success = false |
| 567 | } finally { |
| 568 | archiveArtifacts artifacts: 'tf-m-ci-scripts/lava_artifacts/**', allowEmptyArchive: true |
| 569 | if (all_jobs.size() > 0) { |
| 570 | emailNotification(success, 'test', filterFailedTest(output)) |
| 571 | } |
| 572 | cleanWs() |
| 573 | if (!success) { |
| 574 | error("There was an Error waiting for LAVA jobs") |
| 575 | } |
Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 576 | } |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 577 | } |
| 578 | } |
Dean Birch | a6ede7e | 2020-03-13 14:00:33 +0000 | [diff] [blame] | 579 | } |