mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-07 07:59:48 +00:00
Reduce cache thrashing on E2E vagrant boxes. Don't cache for windows unit tests. (#11769)
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
13
.github/workflows/e2e.yaml
vendored
13
.github/workflows/e2e.yaml
vendored
@@ -54,15 +54,22 @@ jobs:
|
||||
|
||||
- name: Set up vagrant and libvirt
|
||||
uses: ./.github/actions/vagrant-setup
|
||||
- name: "Vagrant Cache"
|
||||
- name: Vagrant R/W Cache
|
||||
if: matrix.etest != 'btrfs' && github.ref == 'refs/heads/master'
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.vagrant.d/boxes
|
||||
key: vagrant-box-ubuntu-2404
|
||||
key: ${{ matrix.etest != 'btrfs' && 'vagrant-box-ubuntu-2404' || 'vagrant-box-leap' }}
|
||||
- name: Vagrant Read Cache
|
||||
if: matrix.etest != 'btrfs' && github.ref != 'refs/heads/master'
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
~/.vagrant.d/boxes
|
||||
key: ${{ matrix.etest != 'btrfs' && 'vagrant-box-ubuntu-2404' || 'vagrant-box-leap' }}
|
||||
- name: "Vagrant Plugin(s)"
|
||||
run: vagrant plugin install vagrant-k3s vagrant-reload vagrant-scp
|
||||
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
|
||||
2
.github/workflows/unitcoverage.yaml
vendored
2
.github/workflows/unitcoverage.yaml
vendored
@@ -64,6 +64,8 @@ jobs:
|
||||
fetch-depth: 1
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
cache: false
|
||||
- name: Run Unit Tests
|
||||
run: |
|
||||
go test -coverpkg ./pkg/... -coverprofile coverage.out ./pkg/... -run Unit
|
||||
|
||||
Reference in New Issue
Block a user