From 2788289ae566b809d72def333ddd86657cfa55d9 Mon Sep 17 00:00:00 2001 From: Austin Bozowski Date: Sun, 3 Jul 2022 07:37:30 -0700 Subject: [PATCH] Fix chef CI no op and prevent in future (#20183) --- examples/chef/chef.py | 5 ++++- examples/chef/cicd_config.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/chef/chef.py b/examples/chef/chef.py index fb075f27a49ff9..4796b795981c06 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -360,7 +360,10 @@ def main(argv: Sequence[str]) -> None: # if options.ci: - for device_name in [d for d in _DEVICE_LIST if d in cicd_config["ci_allow_list"]]: + for device_name in cicd_config["ci_allow_list"]: + if device_name not in _DEVICE_LIST: + flush_print(f"{device_name} in CICD config but not {_DEVICE_FOLDER}!") + exit(1) if options.build_target == "nrfconnect": shell.run_cmd("export GNUARMEMB_TOOLCHAIN_PATH=\"$PW_ARM_CIPD_INSTALL_DIR\"") shell.run_cmd(f"cd {_CHEF_SCRIPT_PATH}") diff --git a/examples/chef/cicd_config.json b/examples/chef/cicd_config.json index a8b7ca99bad84f..ab283ae2a4b10f 100644 --- a/examples/chef/cicd_config.json +++ b/examples/chef/cicd_config.json @@ -1,5 +1,5 @@ { - "ci_allow_list": ["rootnode_dimmablelight_gY80DaqEUL"], + "ci_allow_list": ["rootnode_dimmablelight_bCwGYSDpoe"], "cd_platforms": { "linux": "linux_x86", "esp32": "m5stack",