From e06076fdded61dd484975b4f4d512cebe9caee49 Mon Sep 17 00:00:00 2001 From: gojimmypi Date: Tue, 21 Oct 2025 13:36:28 -0700 Subject: [PATCH] Exclude some known failures SPMATH WOLFBOOT_SMALL_STACK --- .github/workflows/test-library.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-library.yml b/.github/workflows/test-library.yml index 069a68a2..2b9323f2 100644 --- a/.github/workflows/test-library.yml +++ b/.github/workflows/test-library.yml @@ -33,6 +33,11 @@ jobs: asym: [ed25519, ecc256, ecc384, ecc521, rsa2048, rsa3072, rsa4096, ed448] hash: [sha256, sha384, sha3] + # See https://github.com/wolfSSL/wolfBoot/issues/614 regarding exclusions: + exclude: + - math: "SPMATH=1 WOLFBOOT_SMALL_STACK=1" + - math: "SPMATHALL=1 WOLFBOOT_SMALL_STACK=1" + steps: - uses: actions/checkout@v4 with: @@ -70,13 +75,18 @@ jobs: # First attempt if build_once >build.out 2>build.err; then - echo "Success on first attempt" + echo "Success on first attempt, WOLFBOOT_HUGE_STACK not applied." exit 0 fi # If it failed due to the TFM huge stack guard, retry with the flag - if grep -q 'If this is OK, please compile with WOLFBOOT_HUGE_STACK=1' build.err; then - echo "Retrying with WOLFBOOT_HUGE_STACK=1 due to TFM stack requirement" + if grep -Fq 'If this is OK, please compile with WOLFBOOT_HUGE_STACK=1' build.err; then + echo "Retrying with WOLFBOOT_HUGE_STACK=1 due to stack requirement error." + + # Always print the entire message + grep -Fn 'If this is OK, please compile with WOLFBOOT_HUGE_STACK=1' build.err || true + + # Try again with huge stack allowed build_once WOLFBOOT_HUGE_STACK=1 else echo "Build failed for another reason:"