From b4e21d108c687f1f23eb46499592f2e6257189db Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Mon, 30 Mar 2026 14:33:35 -0700 Subject: [PATCH] Relax Zephyr CI autogen check It is more annoying than helpful. We can set up an auto-updater later on when they get out of date. --- ports/zephyr-cp/cptools/build_circuitpython.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ports/zephyr-cp/cptools/build_circuitpython.py b/ports/zephyr-cp/cptools/build_circuitpython.py index 2022d82f1b73f..5f51281870c4d 100644 --- a/ports/zephyr-cp/cptools/build_circuitpython.py +++ b/ports/zephyr-cp/cptools/build_circuitpython.py @@ -522,16 +522,15 @@ async def build_circuitpython(): hal_source.extend(top.glob(f"shared-bindings/{module.name}/*.c")) if os.environ.get("CI", "false") == "true": - # Fail the build if it isn't up to date. + # Warn if it isn't up to date. if ( not autogen_board_info_fn.exists() or autogen_board_info_fn.read_text() != tomlkit.dumps(autogen_board_info) ): - logger.error("autogen_board_info.toml is out of date.") - raise RuntimeError( + logger.warning( f"autogen_board_info.toml is missing or out of date. Please run `make BOARD={board}` locally and commit {autogen_board_info_fn}." ) - elif autogen_board_info_fn.parent.exists(): + if autogen_board_info_fn.parent.exists(): autogen_board_info_fn.write_text(tomlkit.dumps(autogen_board_info)) for mpflag in MPCONFIG_FLAGS: