Skip to content

Commit

Permalink
avoid skipping mg-aggregate-results on failed MG test jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
plebhash committed Jul 17, 2024
1 parent 243e625 commit c8a9ce5
Showing 1 changed file with 49 additions and 21 deletions.
70 changes: 49 additions & 21 deletions .github/workflows/mg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,24 +162,52 @@ jobs:
mg-aggregate-results:
name: "Aggregate MG Test Results"
runs-on: ubuntu-latest
needs:
- bad-pool-config-test
- interop-jd-translator
- interop-proxy-with-multi-ups
- interop-proxy-with-multi-ups-extended
- jds-do-not-fail-on-wrong-tsdatasucc
- jds-do-not-panic-if-jdc-close-connection
- jds-do-not-stackoverflow-when-no-token
- pool-sri-test-1-standard
- pool-sri-test-close-channel
- pool-sri-test-extended_0
- pool-sri-test-extended_1
- pool-sri-test-reject-auth
- standard-coverage
- sv1-test
- translation-proxy-broke-pool
- translation-proxy
- translation-proxy-old-share
steps:
- name: Aggregate MG Test Results
run: echo "All MG tests completed successfully"
if: always()
needs: [
bad-pool-config-test,
interop-jd-translator,
interop-proxy-with-multi-ups,
interop-proxy-with-multi-ups-extended,
jds-do-not-fail-on-wrong-tsdatasucc,
jds-do-not-panic-if-jdc-close-connection,
jds-do-not-stackoverflow-when-no-token,
pool-sri-test-1-standard,
pool-sri-test-close-channel,
pool-sri-test-extended_0,
pool-sri-test-extended_1,
pool-sri-test-reject-auth,
standard-coverage,
sv1-test,
translation-proxy-broke-pool,
translation-proxy,
translation-proxy-old-share
]
steps:
- name: Aggregate Results
run: |
JOBS=(
bad-pool-config-test
interop-jd-translator
interop-proxy-with-multi-ups
interop-proxy-with-multi-ups-extended
jds-do-not-fail-on-wrong-tsdatasucc
jds-do-not-panic-if-jdc-close-connection
jds-do-not-stackoverflow-when-no-token
pool-sri-test-1-standard
pool-sri-test-close-channel
pool-sri-test-extended_0
pool-sri-test-extended_1
pool-sri-test-reject-auth
standard-coverage
sv1-test
translation-proxy-broke-pool
translation-proxy
translation-proxy-old-share
)
for JOB in "${JOBS[@]}"; do
if [ "${{ needs[$JOB].result }}" != "success" ]; then
echo "Job $JOB failed."
exit 1
fi
done
echo "All MG tests completed successfully"

0 comments on commit c8a9ce5

Please sign in to comment.