final_verify.py (1147B)
1 # This Source Code Form is subject to the terms of the Mozilla Public 2 # License, v. 2.0. If a copy of the MPL was not distributed with this 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 4 """ 5 Transform the beetmover task into an actual task description. 6 """ 7 8 from taskgraph.transforms.base import TransformSequence 9 10 transforms = TransformSequence() 11 12 13 @transforms.add 14 def add_command(config, tasks): 15 for task in tasks: 16 if not task["worker"].get("env"): 17 task["worker"]["env"] = {} 18 19 final_verify_configs = [] 20 for upstream in sorted(task.get("dependencies", {}).keys()): 21 if "update-verify-config" in upstream: 22 final_verify_configs.append( 23 f"<{upstream}/public/build/update-verify.cfg>", 24 ) 25 task["run"] = { 26 "using": "run-task", 27 "cwd": "{checkout}", 28 "command": { 29 "artifact-reference": "tools/update-verify/release/final-verification.sh " 30 + " ".join(final_verify_configs), 31 }, 32 "sparse-profile": "update-verify", 33 } 34 yield task