build: In py build scripts, exit with code 1 on failure

Previously, they would exit with 0 no matter what happened.
This commit is contained in:
John Colvin committed 2025-01-03 16:59:07 +00:00
1 parent 5ed2309d22
commit 838dbcd886
5 files changed
+9 -1

No files matched your search

+1
View File
@@ -121,3 +121,4 @@ if __name__ == "__main__":
_main()
except Exception as e:
print(f'build_api_server.py failed: {e}')
exit(1)
+1
View File
@@ -137,3 +137,4 @@ if __name__ == "__main__":
_main()
except Exception as e:
print(f'build_data_stream.py failed: {e}')
exit(1)
+1
View File
@@ -125,3 +125,4 @@ if __name__ == "__main__":
_main()
except Exception as e:
print(f'build_spark.py failed: {e}')
exit(1)
+1
View File
@@ -131,3 +131,4 @@ if __name__ == "__main__":
_main()
except Exception as e:
print(f'build_sparkd.py failed: {e}')
exit(1)
+5 -1
View File
@@ -149,4 +149,8 @@ def _main():
if __name__ == '__main__':
_main()
try:
_main()
except Exception as e:
print(f'publish_spark.py failed: {e}')
exit(1)