Skip to content

ci: fix runner disk size #540

ci: fix runner disk size

ci: fix runner disk size #540

Triggered via push February 4, 2024 15:56
Status Success
Total duration 23s
Artifacts

style.yml

on: push
Run linters
15s
Run linters
Check for License headers
9s
Check for License headers
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
mlonmcu/target/riscv/etiss.py#L42
Line too long (135 > 120 characters) (E501)
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/cli/common.py#L117
dest="feature_gen" + suffix, type=str, metavar="FEATURES", nargs="+", action="append", - help=f"Generator statement for features. (Also available: --feature-gen2 ... --feature-gen{number})" - if i == 0 - else argparse.SUPPRESS, + help=( + f"Generator statement for features. (Also available: --feature-gen2 ... --feature-gen{number})" + if i == 0 + else argparse.SUPPRESS + ), ) flow_parser.add_argument( "--config-gen" + suffix, dest="config_gen" + suffix, metavar="KEY=VALUE", nargs="+", action="append", - help=f"Generator statement for configs. (Also available: --config-gen2 ... --config-gen{number})" - if i == 0 - else argparse.SUPPRESS, + help=( + f"Generator statement for configs. (Also available: --config-gen2 ... --config-gen{number})" + if i == 0 + else argparse.SUPPRESS + ), ) add_gen_args(flow_parser, NUM_GEN_ARGS) flow_parser.add_argument( "--parallel",
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/target/riscv/vicuna.py#L82
"mem_latency": 1, # cache config "ic_size": 0, # off "ic_line_width": 128, "dc_size": 0, # off - "dc_line_width": None # AUTO (2*VMEM_W) + "dc_line_width": None, # AUTO (2*VMEM_W) # trace config # TODO } REQUIRED = RVVTarget.REQUIRED | {
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/session/run.py#L780
codegen_dir, self.target ) # TODO: has to go into different dirs # artifacts = self.compile_platform.artifacts if isinstance(artifacts, dict): new = { - key - if name in ["", "default"] - else (f"{name}_{key}" if key not in ["", "default"] else name): value + ( + key + if name in ["", "default"] + else (f"{name}_{key}" if key not in ["", "default"] else name) + ): value for key, value in artifacts.items() } else: new = {name if name in ["", "default"] else f"{name}": artifacts} self.artifacts_per_stage[RunStage.COMPILE].update(new)
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/target/riscv/etiss.py#L37
class EtissTarget(RISCVTarget): """Target using a simple RISC-V VP running in the ETISS simulator""" - FEATURES = RISCVTarget.FEATURES | {"gdbserver", "etissdbg", "trace", "log_instrs", "pext", "vext", "xcorev", "vanilla_accelerator"} + FEATURES = RISCVTarget.FEATURES | { + "gdbserver", + "etissdbg", + "trace", + "log_instrs", + "pext", + "vext", + "xcorev", + "vanilla_accelerator", + } DEFAULTS = { **RISCVTarget.DEFAULTS, "gdbserver_enable": False, "gdbserver_attach": False,
/home/runner/work/mlonmcu/mlonmcu/scripts/gen_tflmc_benchmarks.py#L21
def post_session(self, report): """Called at the end of a session.""" df = report.post_df.copy() df["Kernels"] = df.apply( - lambda row: "muRISCV-NN" - if row.get("feature_muriscvnn") or row.get("feature_muriscvnnbyoc") - else ( - "CMSIS-NN" - if row.get("feature_cmsisnn") or row.get("feature_cmsisnnbyoc") - else ("Autotuned" if row.get("feature_autotuned") else "Default") + lambda row: ( + "muRISCV-NN" + if row.get("feature_muriscvnn") or row.get("feature_muriscvnnbyoc") + else ( + "CMSIS-NN" + if row.get("feature_cmsisnn") or row.get("feature_cmsisnnbyoc") + else ("Autotuned" if row.get("feature_autotuned") else "Default") + ) ), axis=1, ) report.post_df = df
/home/runner/work/mlonmcu/mlonmcu/scripts/gen_muriscnn_benchmarks.py#L23
def post_session(self, report): """Called at the end of a session.""" df = report.post_df.copy() df["Kernels"] = df.apply( - lambda row: "muRISCV-NN" - if row.get("feature_muriscvnn") or row.get("feature_muriscvnnbyoc") - else ( - "CMSIS-NN" - if row.get("feature_cmsisnn") or row.get("feature_cmsisnnbyoc") - else ("Autotuned" if row.get("feature_autotuned") else "Default") + lambda row: ( + "muRISCV-NN" + if row.get("feature_muriscvnn") or row.get("feature_muriscvnnbyoc") + else ( + "CMSIS-NN" + if row.get("feature_cmsisnn") or row.get("feature_cmsisnnbyoc") + else ("Autotuned" if row.get("feature_autotuned") else "Default") + ) ), axis=1, ) # TODO: allow combinations df["Extensions"] = df.apply( - lambda row: "VEXT+PEXT" - if row.get("feature_vext") and row.get("feature_pext") - else ( - "VEXT" - if row.get("feature_vext") + lambda row: ( + "VEXT+PEXT" + if row.get("feature_vext") and row.get("feature_pext") else ( - "PEXT" - if row.get("feature_pext") + "VEXT" + if row.get("feature_vext") else ( - "MVEI+DSP" - if row.get("feature_arm_mvei") and row.get("feature_arm_dsp") - else ("MVEI" if row.get("feature_arm_mvei") else ("DSP" if row.get("feature_arm_dsp") else "")) + "PEXT" + if row.get("feature_pext") + else ( + "MVEI+DSP" + if row.get("feature_arm_mvei") and row.get("feature_arm_dsp") + else ( + "MVEI" if row.get("feature_arm_mvei") else ("DSP" if row.get("feature_arm_dsp") else "") + ) + ) ) ) ), axis=1, )
/home/runner/work/mlonmcu/mlonmcu/tests/integration-tests/toolchains/test_riscv_llvm.py#L1
"""Test used RISC-V GCC Toolchains""" + # import pytest # from mlonmcu.environment.config import PathConfig # from mlonmcu.session.run import RunStage # from mlonmcu.target.riscv.riscv import RISCVTarget
/home/runner/work/mlonmcu/mlonmcu/scripts/gen_tvm_riscv_benchmarks.py#L23
def post_session(self, report): """Called at the end of a session.""" df = report.post_df.copy() df["Schedules"] = df.apply( - lambda row: "ARM (Tuned)" - if row.get("config_tvmaot.target_device", "") == "arm_cpu" and row.get("feature_autotuned") - else "ARM" - if row.get("config_tvmaot.target_device", "") == "arm_cpu" - else "RISC-V (Tuned)" - if row.get("feature_target_optimized") and row.get("feature_autotuned") - else "RISC-V" - if row.get("feature_target_optimized") - else ("Default (Tuned)" if row.get("feature_autotuned") else "Default"), + lambda row: ( + "ARM (Tuned)" + if row.get("config_tvmaot.target_device", "") == "arm_cpu" and row.get("feature_autotuned") + else ( + "ARM" + if row.get("config_tvmaot.target_device", "") == "arm_cpu" + else ( + "RISC-V (Tuned)" + if row.get("feature_target_optimized") and row.get("feature_autotuned") + else ( + "RISC-V" + if row.get("feature_target_optimized") + else ("Default (Tuned)" if row.get("feature_autotuned") else "Default") + ) + ) + ) + ), axis=1, ) # TODO: allow combinations df["Extensions"] = df.apply( - lambda row: "VEXT+PEXT" - if row.get("feature_vext") and row.get("feature_pext") - else ("VEXT" if row.get("feature_vext") else ("PEXT" if row.get("feature_pext") else (None))), + lambda row: ( + "VEXT+PEXT" + if row.get("feature_vext") and row.get("feature_pext") + else ("VEXT" if row.get("feature_vext") else ("PEXT" if row.get("feature_pext") else (None))) + ), axis=1, ) report.post_df = df
/home/runner/work/mlonmcu/mlonmcu/tests/integration-tests/toolchains/test_riscv_gcc.py#L1
"""Test used RISC-V GCC Toolchains""" + import pytest # from mlonmcu.session.run import RunStage from mlonmcu.testing.riscv_toolchain import ( _get_target_config,
Check for License headers
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run linters
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, wearerequired/lint-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run linters
The following actions uses node12 which is deprecated and will be forced to run on node16: wearerequired/lint-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/