Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/apt/99-ci-network
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// apt settings for the GitHub Actions workflows. Copied into
// /etc/apt/apt.conf.d/ before each apt-get update.
//
// The runner images resolve packages through a mirror list
// (/etc/apt/apt-mirrors.txt) and apt only moves to the next mirror once an
// item has failed on the current one. With the defaults (Acquire::Retries 3,
// 30 second inactivity timeout, and the http method's own second attempt) a
// stalled mirror costs about four minutes per item before apt falls over.
// One retry and a 20 second timeout bound that to about 80 seconds per item
// while still giving every mirror in the list a second chance, since a short
// mirror outage can hit all of them at once.
Acquire::Retries "1";
Acquire::http::Timeout "20";
Acquire::https::Timeout "20";
// apt-get does not wait for the dpkg lock by default; another apt process (the
// apt-daily timers, for example) can hold it briefly after the runner boots.
DPkg::Lock::Timeout "120";
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -255,6 +258,9 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -315,6 +321,9 @@ jobs:
java-version: 17
cache: "gradle"

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -423,6 +432,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -521,6 +533,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Set up Haxe
run: |
sudo apt-get update -qq
Expand Down Expand Up @@ -584,6 +599,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -656,6 +674,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -845,6 +866,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -899,6 +923,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -971,6 +998,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -1136,6 +1166,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -1237,6 +1270,9 @@ jobs:
bundler-cache: true
working-directory: test/rb

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install openssl and certificates (for SSL tests)
run: |
sudo apt-get update -yq
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
timeout-minutes: 10
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/make-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/sca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -72,6 +75,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -113,6 +119,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -206,6 +215,9 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -262,6 +274,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -304,6 +319,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -352,6 +370,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down Expand Up @@ -392,6 +413,9 @@ jobs:
with:
persist-credentials: false

- name: Configure apt retries and timeouts
run: sudo cp .github/apt/99-ci-network /etc/apt/apt.conf.d/

- name: Install dependencies
run: |
sudo apt-get update -yq
Expand Down
Loading