ci(.github): retry Go module downloads (#27816)

Closes CODAGT-878
Closes https://github.com/coder/internal/issues/1621

The Go module proxy failure in the linked issue is outside our control,
but `lint` and `test-e2e` currently download modules during their `make`
targets without any retry. Other CI jobs already wrap `go mod download`
with `./.github/scripts/retry.sh`, so this just copies that precedent to
both affected jobs.
This commit is contained in:
Ethan
2026-08-04 14:23:48 +10:00
committed by GitHub
parent cce5a21933
commit 1f946bb50b
+6
View File
@@ -367,6 +367,9 @@ jobs:
- name: Verify helm version
run: helm version --short
- name: Download Go modules
run: ./.github/scripts/retry.sh -- go mod download
- name: make lint
# Bound concurrent lint targets to keep peak memory below the runner limit.
run: make --output-sync=line -j"$(nproc)" lint
@@ -983,6 +986,9 @@ jobs:
NODE_OPTIONS: ${{ github.repository_owner == 'coder' && '--max_old_space_size=8192' || '' }}
working-directory: site
- name: Download Go modules
run: ./.github/scripts/retry.sh -- go mod download
- run: make site/e2e/bin/coder
name: make coder