mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 12:26:34 +02:00
Make the test summary steps in the CI fail silently (#21867)
This commit is contained in:
parent
f351fe471a
commit
80f0015723
9
.github/workflows/test-go.yml
vendored
9
.github/workflows/test-go.yml
vendored
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user