From 3a7c78996ae3ebfa1d4c3737cb9db30ff507c650 Mon Sep 17 00:00:00 2001 From: Peter M Date: Tue, 10 Mar 2026 09:35:32 +0100 Subject: [PATCH] CI: Fix rp2 - PANIC should fail job https://github.com/petermm/AtomVM/actions/runs/22891950676/job/66417004036 And don't fail-fast Signed-off-by: Peter M --- .github/workflows/pico-build.yaml | 1 + src/platforms/rp2/tests/run-tests.ts | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pico-build.yaml b/.github/workflows/pico-build.yaml index 599ea4d479..bcd26c5cbd 100644 --- a/.github/workflows/pico-build.yaml +++ b/.github/workflows/pico-build.yaml @@ -84,6 +84,7 @@ jobs: runs-on: ubuntu-24.04 needs: build-atomvmlib strategy: + fail-fast: false matrix: board: ["pico", "pico_w", "pico2", "pico2_w"] platform: [""] diff --git a/src/platforms/rp2/tests/run-tests.ts b/src/platforms/rp2/tests/run-tests.ts index 175866a21e..aad416c172 100644 --- a/src/platforms/rp2/tests/run-tests.ts +++ b/src/platforms/rp2/tests/run-tests.ts @@ -89,7 +89,12 @@ mcu.uart[0].onByte = (value) => { if (char === "\n") { if (currentLine === "OK" || currentLine === "OK\r") { process.exit(0); - } else if (currentLine === "FAIL" || currentLine === "FAIL\r") { + } else if ( + currentLine === "FAIL" || + currentLine === "FAIL\r" || + currentLine === "*** PANIC ***" || + currentLine === "*** PANIC ***\r" + ) { process.exit(1); } currentLine = "";