From e377fcdf4ced9d7fa8717763b237338d35ba2322 Mon Sep 17 00:00:00 2001 From: Mitch Date: Fri, 6 Sep 2024 14:52:50 -0400 Subject: [PATCH] chore: fix spartan test nightly runner --- .github/workflows/spartan-test.yml | 4 ++-- yarn-project/aztec/src/bin/index.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/spartan-test.yml b/.github/workflows/spartan-test.yml index 902c032b647b..6ed63e39900d 100644 --- a/.github/workflows/spartan-test.yml +++ b/.github/workflows/spartan-test.yml @@ -111,7 +111,7 @@ jobs: run: | earthly-ci ./yarn-project+export-e2e-test-images - network-e2e: + test: needs: [build, changes] if: ${{ needs.changes.outputs.non-barretenberg-cpp == 'true' }} runs-on: ubuntu-20.04 @@ -145,7 +145,7 @@ jobs: success-check: runs-on: ubuntu-20.04 needs: - - build-and-test + - test if: always() steps: - name: Report overall success diff --git a/yarn-project/aztec/src/bin/index.ts b/yarn-project/aztec/src/bin/index.ts index 65d2e2842391..158543eb80be 100644 --- a/yarn-project/aztec/src/bin/index.ts +++ b/yarn-project/aztec/src/bin/index.ts @@ -41,5 +41,7 @@ async function main() { main().catch(err => { debugLogger.error(`Error in command execution`); debugLogger.error(err + '\n' + err.stack); - process.exit(1); + // See https://nodejs.org/api/process.html#processexitcode + process.exitCode = 1; + throw err; });