fix(ci): avoid pipefail in ci.yaml shell code
Issue: ci failures like this
The CI failure is a classic SIGPIPE + pipefail interaction.
The original code pipes gh api --paginate into head -1. Under bash -o pipefail
(set by the shell option in the step), when head -1 reads one line and exits, it
closes the pipe. gh api then receives SIGPIPE (exit 141), and pipefail propagates
that non-zero exit code through the command substitution, causing the step to fail
under set -e.
The fix avoids this by:
- Collecting all output into an array via
mapfile(no pipe to break). - Using
|| trueto suppress any transientgh apiexit code from the process substitution. - Taking the first element with
${_tags[0]:-}instead ofhead -1.
This pull request requires additional validation before any workflows can run on NVIDIA's runners.
Pull request vetters can view their responsibilities here.
Contributors can view more details about this message here.
I think this is no longer needed after #2475?