From 70bb539fe647e74215f55d9034e25c96a33b3716 Mon Sep 17 00:00:00 2001 From: Krzysztof Findeisen Date: Tue, 8 Apr 2025 12:21:44 -0700 Subject: [PATCH 1/2] Fix write_init_outputs.py always returning 0. main has a correct return code, but the wrapper script dropped it. --- bin.src/write_init_outputs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin.src/write_init_outputs.py b/bin.src/write_init_outputs.py index 4c0cffd3..f4fa3c89 100755 --- a/bin.src/write_init_outputs.py +++ b/bin.src/write_init_outputs.py @@ -28,9 +28,10 @@ init-outputs in the same run is not an error. """ +import sys from initializer.write_init_outputs import main if __name__ == "__main__": - main() + sys.exit(main()) From 999ce831adbf3e3e7e45fbc9b6b6323fa30f4652 Mon Sep 17 00:00:00 2001 From: Krzysztof Findeisen Date: Tue, 8 Apr 2025 12:28:46 -0700 Subject: [PATCH 2/2] Rebuild init-output container on write_init_outputs.py. This file is included in the container and contains important (if trivial) logic. --- .github/workflows/build-init-job.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-init-job.yaml b/.github/workflows/build-init-job.yaml index d2faf334..1cda349b 100644 --- a/.github/workflows/build-init-job.yaml +++ b/.github/workflows/build-init-job.yaml @@ -9,6 +9,7 @@ on: - '.github/workflows/build-init-job.yaml' - '.github/workflows/_matrix-gen.yaml' - '.github/actions/**' + - 'bin.src/write_init_outputs.py' - 'config/**' - 'pipelines/**' - 'python/initializer/**' @@ -20,6 +21,7 @@ on: - '.github/workflows/build-init-job.yaml' - '.github/workflows/_matrix-gen.yaml' - '.github/actions/**' + - 'bin.src/write_init_outputs.py' - 'config/**' - 'pipelines/**' - 'python/initializer/**'