Skip to content

Commit

Permalink
Fix flaky networking for real
Browse files Browse the repository at this point in the history
The action doesn't work because it assumes ethtool is installed. The Ubuntu container doesn't have it.

Resolves #6
  • Loading branch information
iainelder committed May 31, 2024
1 parent cc88418 commit 3e252a8
Show file tree
Hide file tree
Showing 72 changed files with 289 additions and 216 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/1password-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install 1Password CLI
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/1password.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install 1Password
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/_program.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off

- name: Install ${program_name}
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/act.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install Act
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/angle-grinder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install Angle-Grinder
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/anki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install Anki
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/aws-nuke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install aws-nuke
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/aws-vault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install aws-vault
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/awscli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install awscli
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/awsls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install awsls
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/awsvpnclient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install AWS Client VPN for Linux
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/bashmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install Bashmarks
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/borgbackup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install BorgBackup
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/clustergit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install clustergit
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/codebuild-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install AWS CodeBuild agent
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/cropgui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install Cropgui
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/cw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install cw
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/diff-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install diff-pdf
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/direnv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install direnv
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/dotnetsdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install .NET SDK
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/dsutils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install dsutils
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/duckdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install DuckDB
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/dvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install DVC (Data Version Control)
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/envman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install Envman
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/firefox-open-url-in-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install firefox-container
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/firefox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install Firefox
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/fzf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install fzf
shell: su norm --command "bash --login {0}"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/gcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Must come after "Prepare Docker" because it needs sudo.
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- name: Fix flaky networking in GitHub Actions
run: |
sudo apt install ethtool
sudo ethtool -K eth0 tx off rx off
- name: Install gcloud CLI
shell: su norm --command "bash --login {0}"
Expand Down
Loading

0 comments on commit 3e252a8

Please sign in to comment.