My macOS build_and_test failed, twice, apparently due to a github network issue. This was the log:
2026-06-07T11:49:03.4246380Z ##[error]HttpError: getaddrinfo ENOTFOUND api.github.com
at fetchWrapper (file:///Users/runner/work/_actions/bazel-contrib/setup-bazel/0.19.0/dist/node_modules/@octokit/request/dist-bundle/index.js:77:1)
at processTicksAndRejections (node:internal/process/task_queues:104:5)
at downloadBazelisk (file:///Users/runner/work/_actions/bazel-contrib/setup-bazel/0.19.0/dist/index.js:76:1)
at setupBazelisk (file:///Users/runner/work/_actions/bazel-contrib/setup-bazel/0.19.0/dist/index.js:43:1)
at setupBazel (file:///Users/runner/work/_actions/bazel-contrib/setup-bazel/0.19.0/dist/index.js:26:1)
at run (file:///Users/runner/work/_actions/bazel-contrib/setup-bazel/0.19.0/dist/index.js:12:1)
It succeeded on my third try. The other three targets succeeded on the first try.
Copilot suggested this:
Option 1: Add network retry logic (Recommended) Update your workflow to retry the setup step, which often resolves transient network issues:
YAML
- name: Setup Bazelisk
uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-version: "1.29.0"
continue-on-error: true
- name: Setup Bazelisk (Retry)
if: failure()
uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-version: "1.29.0"
Option 2: Pre-download Bazelisk manually If the network issue persists, manually download and cache Bazelisk:
YAML
- name: Setup Bazelisk
run: |
mkdir -p $HOME/.bazel/bin
wget -q https://github.com/bazelbuild/bazelisk/releases/download/v1.29.0/bazelisk-darwin-amd64 -O $HOME/.bazel/bin/bazelisk
chmod +x $HOME/.bazel/bin/bazelisk
echo "$HOME/.bazel/bin" >> $GITHUB_PATH
per Claude haiku 4.5
My macOS build_and_test failed, twice, apparently due to a github network issue. This was the log:
It succeeded on my third try. The other three targets succeeded on the first try.
Copilot suggested this:
Option 1: Add network retry logic (Recommended) Update your workflow to retry the setup step, which often resolves transient network issues:
Option 2: Pre-download Bazelisk manually If the network issue persists, manually download and cache Bazelisk:
per Claude haiku 4.5