mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
This captures the exit code of Bazel and checks for success or permanent errors on each attempt. It also sleeps a small amount between attempts. We should be able to increase the retries and sleeps as needed to minimize flakiness here, and Bazel should even persist incremental progress efficiently. Hopefully this helps reduce the failure rate of our CI. It also changes how we build on a `push` to use a single Bazel clause to hold this logic. Managed to get one of the download failures when testing this, and the retry logic worked but there was a bug in the success logic. Otherwise seems to work: - Synthetic failure: https://github.com/carbon-language/carbon-lang/actions/runs/6872431707/job/18690894069 - Success: https://github.com/carbon-language/carbon-lang/actions/runs/6872461061 --------- Co-authored-by: josh11b <josh11b@users.noreply.github.com>