diff --git a/examples/chef/README.md b/examples/chef/README.md index 91da0db5201682..b02f2c6034ce61 100644 --- a/examples/chef/README.md +++ b/examples/chef/README.md @@ -116,6 +116,6 @@ which run in parallel. These jobs use a platform-specific image with base `chip-build`. The build jobs call chef with the options `--ci -t `. The `--ci` -option will execute builds for all devices specified in `_CI_ALLOW_LIST` defined +option will execute builds for all devices specified in `cicd_config["ci_allow_list"]` defined in `chef.py` (so long as these devices are also in `/devices`) on the specified platform. diff --git a/examples/chef/chef.py b/examples/chef/chef.py index 75532c4665c453..17f45ff3779a2d 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -169,11 +169,7 @@ def flush_print( def unwrap_cmd(cmd: str) -> str: - """Dedent and replace new line with space. - - Args: - cmd: The command to unwrap. - """ + """Dedent and replace new line with space.""" return textwrap.dedent(cmd).replace("\n", " ") @@ -491,7 +487,7 @@ def main(argv: Sequence[str]) -> None: archive_suffix = ".tar.gz" os.makedirs(archive_prefix, exist_ok=True) for device_name in _DEVICE_LIST: - for platform, platform_label in cicd_config["cd_platforms"].items(): + for platform, label in cicd_config["cd_platforms"].items(): command = f"./chef.py -cbr --use_zzz -d {device_name} -t {platform}" flush_print(f"Building {command}", with_border=True) shell.run_cmd(f"cd {_CHEF_SCRIPT_PATH}")