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 <noreply@anthropic.com>
This commit is contained in:
Dion Moult
2026-08-25 16:14:46 +10:00
parent dc69c19aa7
commit 89d7830aa4
+3 -3
View File
@@ -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