Skip to content

Commit

Permalink
github: Use tune-disk-performance action
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Parrott <[email protected]>
  • Loading branch information
tomponline committed Sep 12, 2024
1 parent d054230 commit 485a760
Showing 1 changed file with 6 additions and 33 deletions.
39 changes: 6 additions & 33 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,8 @@ jobs:
name: Code
runs-on: ubuntu-22.04
steps:
- name: Performance tuning
run: |
set -eux
# optimize ext4 FSes for performance, not reliability
for fs in $(findmnt --noheading --type ext4 --list --uniq | awk '{print $1}'); do
# nombcache and data=writeback cannot be changed on remount
sudo mount -o remount,noatime,barrier=0,commit=6000 "${fs}" || true
done
# disable dpkg from calling sync()
echo "force-unsafe-io" | sudo tee /etc/dpkg/dpkg.cfg.d/force-unsafe-io
- name: Tune disk performance
uses: ./.github/actions/tune-disk-performance

- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -264,17 +255,8 @@ jobs:
backend: dir

steps:
- name: Performance tuning
run: |
set -eux
# optimize ext4 FSes for performance, not reliability
for fs in $(findmnt --noheading --type ext4 --list --uniq | awk '{print $1}'); do
# nombcache and data=writeback cannot be changed on remount
sudo mount -o remount,noatime,barrier=0,commit=6000 "${fs}" || true
done
# disable dpkg from calling sync()
echo "force-unsafe-io" | sudo tee /etc/dpkg/dpkg.cfg.d/force-unsafe-io
- name: Tune disk performance
uses: ./.github/actions/tune-disk-performance

- name: Reclaim disk space
uses: ./.github/actions/reclaim-disk-space
Expand Down Expand Up @@ -458,17 +440,8 @@ jobs:
TICSAUTHTOKEN: ${{ secrets.TICS_AUTH_TOKEN }}
if: ${{ github.event_name == 'workflow_dispatch' }}
steps:
- name: Performance tuning
run: |
set -eux
# optimize ext4 FSes for performance, not reliability
for fs in $(findmnt --noheading --type ext4 --list --uniq | awk '{print $1}'); do
# nombcache and data=writeback cannot be changed on remount
sudo mount -o remount,noatime,barrier=0,commit=6000 "${fs}" || true
done
# disable dpkg from calling sync()
echo "force-unsafe-io" | sudo tee /etc/dpkg/dpkg.cfg.d/force-unsafe-io
- name: Tune disk performance
uses: ./.github/actions/tune-disk-performance

- name: Reclaim disk space
uses: ./.github/actions/reclaim-disk-space
Expand Down

0 comments on commit 485a760

Please sign in to comment.