From 89d7830aa4e7535cd2cf91592b333d945566d7f9 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 25 Aug 2026 16:14:46 +1000 Subject: [PATCH] ci: fail the bonsai daily when Blender scripts raise blender --background exits 0 even when the --python script dies with an exception, so the reregister smoke test passed over "FATAL ERROR: Unable to load Bonsai" and a broken build was published to the unstable repo. --python-exit-code 1 makes every gate script failure fail its step. Co-Authored-By: Claude Fable 5 --- .github/workflows/ci-bonsai-daily.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-bonsai-daily.yml b/.github/workflows/ci-bonsai-daily.yml index ae5f4f5e9f..f433329473 100644 --- a/.github/workflows/ci-bonsai-daily.yml +++ b/.github/workflows/ci-bonsai-daily.yml @@ -124,7 +124,7 @@ jobs: # Reregister Bonsai. # Note that running it in background might miss some errors # (e.g. tools are not registered in background mode). - blender --background --python IfcOpenShell/src/bonsai/scripts/reregister_bonsai.py + blender --background --python-exit-code 1 --python IfcOpenShell/src/bonsai/scripts/reregister_bonsai.py # Install sverchok. wget -q -O sverchok.zip https://github.com/nortikin/sverchok/archive/refs/heads/master.zip @@ -171,6 +171,6 @@ jobs: cd IfcOpenShell/src/bonsai pip install -r requirements-dev.txt - blender --background --python scripts/setup_pytest.py - blender --python-expr "import bonsai; print(bonsai.bbim_semver); import ifcopenshell; print(ifcopenshell.version)" --background + blender --background --python-exit-code 1 --python scripts/setup_pytest.py + blender --python-exit-code 1 --python-expr "import bonsai; print(bonsai.bbim_semver); import ifcopenshell; print(ifcopenshell.version)" --background make test