[Chapel Merge] Make failure mail job retry, improve debuggability

Branch: refs/heads/main
Revision: 6bb4a0619269d23ef887c07d99bf8045ffd41086
Author: arifthpe
Link: Make failure mail job retry, improve debuggability by arifthpe · Pull Request #29350 · chapel-lang/chapel · GitHub
Log Message:
Make failure mail job retry, improve debuggability (#29350)

Add retry logic to the part of the failure mail job that makes GH API
calls, and tweak its output for better debuggability.

Output changes:

  • stop printing JSON to log (there's way too much of it to scroll
    through)
  • save JSON files from run as an artifact, on either success or failure
  • print IDs of failing jobs the job has picked up

[reviewed by @jabraham17 , thanks!]

Compare: Comparing 05010ab6f31ad166a91f29f28829c8cfb0dc8759...c469fe46ae188b42b212cd21c1409629ca0c3abe · chapel-lang/chapel · GitHub

Diff:
M .github/workflows/trigger-nightly-checks.yml
https://github.com/chapel-lang/chapel/pull/29350.diff