runner-gating: make the script safer to run
Jobs in Mesa CI occasionally fail due to runner-gating.sh
silently encountering errors, making bugs hard to detect and debug.
Proposed Solution
- Enable stricter shell options (
set -eu -o pipefail
) to prevent silent failures. - Update the
curl
command to provide more detailed error information only when an error occurs. - Fix an issue with
jq
output (jq -e
as an alternative) to handlenull
values appropriately.
References
Examples of failing jobs: