From 80f001572311c285f3a00bf0eed3ebf4e3d5c5cd Mon Sep 17 00:00:00 2001 From: Kuba Wieczorek Date: Fri, 14 Jul 2023 18:26:38 +0100 Subject: [PATCH] Make the test summary steps in the CI fail silently (#21867) --- .github/workflows/test-go.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-go.yml b/.github/workflows/test-go.yml index ca62de272e..d048455f04 100644 --- a/.github/workflows/test-go.yml +++ b/.github/workflows/test-go.yml @@ -294,6 +294,10 @@ jobs: run_id: context.runId, }); + // This is a temporary debugging statement to catch an intermittent API issue + // we will remove it once this script runs reliably + console.log(result.data); + const prefixToSearchFor = 'Run Go tests / test-go (${{ matrix.id }}' const jobData = result.data.jobs.filter( (job) => job.name.startsWith(prefixToSearchFor) @@ -303,9 +307,7 @@ jobs: jobData.length == 0 || jobData[0].html_url === undefined ) { - const msg = "Failed to fetch GHA job data."; - console.log(msg); - throw new Error(msg); + console.log("Failed to fetch GHA job data."); } const url = jobData[0].html_url; @@ -319,6 +321,7 @@ jobs: }); - name: Prepare failure summary if: success() || failure() + continue-on-error: true run: | # This jq query filters out successful tests, leaving only the failures. # Then, it formats the results into rows of a Markdown table.