Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
303350d1
Unverified
Commit
303350d1
authored
Feb 11, 2025
by
Derek Nola
Committed by
GitHub
Feb 11, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce cache thrashing on E2E vagrant boxes. Don't cache for windows unit tests. (#11769)
Signed-off-by:
Derek Nola
<
derek.nola@suse.com
>
parent
45dbc43b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
action.yaml
.github/actions/setup-go/action.yaml
+3
-3
e2e.yaml
.github/workflows/e2e.yaml
+10
-3
unitcoverage.yaml
.github/workflows/unitcoverage.yaml
+2
-0
No files found.
.github/actions/setup-go/action.yaml
View file @
303350d1
...
@@ -6,10 +6,10 @@ runs:
...
@@ -6,10 +6,10 @@ runs:
-
uses
:
actions/setup-go@v5
-
uses
:
actions/setup-go@v5
with
:
with
:
go-version-file
:
'
go.mod'
# Just use whatever version is in the go.mod file
go-version-file
:
'
go.mod'
# Just use whatever version is in the go.mod file
cache
:
${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release-1.
29
' }}
cache
:
${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release-1.
32
' }}
-
name
:
Prepare for go cache
-
name
:
Prepare for go cache
if
:
${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/release-1.29' }}
if
:
github.ref != 'refs/heads/master' && github.ref != 'refs/heads/release-1.32'
shell
:
bash
shell
:
bash
run
:
|
run
:
|
echo "GO_CACHE=$(go env GOCACHE)" | tee -a "$GITHUB_ENV"
echo "GO_CACHE=$(go env GOCACHE)" | tee -a "$GITHUB_ENV"
...
@@ -17,7 +17,7 @@ runs:
...
@@ -17,7 +17,7 @@ runs:
echo "GO_VERSION=$(go env GOVERSION | tr -d 'go')" | tee -a "$GITHUB_ENV"
echo "GO_VERSION=$(go env GOVERSION | tr -d 'go')" | tee -a "$GITHUB_ENV"
-
name
:
Setup read-only cache
-
name
:
Setup read-only cache
if
:
${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/release-1.29' }}
if
:
github.ref != 'refs/heads/master' && github.ref != 'refs/heads/release-1.32'
uses
:
actions/cache/restore@v4
uses
:
actions/cache/restore@v4
with
:
with
:
path
:
|
path
:
|
...
...
.github/workflows/e2e.yaml
View file @
303350d1
...
@@ -54,15 +54,22 @@ jobs:
...
@@ -54,15 +54,22 @@ jobs:
-
name
:
Set up vagrant and libvirt
-
name
:
Set up vagrant and libvirt
uses
:
./.github/actions/vagrant-setup
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
uses
:
actions/cache@v4
with
:
with
:
path
:
|
path
:
|
~/.vagrant.d/boxes
~/.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)"
-
name
:
"
Vagrant
Plugin(s)"
run
:
vagrant plugin install vagrant-k3s vagrant-reload vagrant-scp
run
:
vagrant plugin install vagrant-k3s vagrant-reload vagrant-scp
-
name
:
Install Go
-
name
:
Install Go
uses
:
actions/setup-go@v5
uses
:
actions/setup-go@v5
with
:
with
:
...
...
.github/workflows/unitcoverage.yaml
View file @
303350d1
...
@@ -64,6 +64,8 @@ jobs:
...
@@ -64,6 +64,8 @@ jobs:
fetch-depth
:
1
fetch-depth
:
1
-
name
:
Install Go
-
name
:
Install Go
uses
:
actions/setup-go@v5
uses
:
actions/setup-go@v5
with
:
cache
:
false
-
name
:
Run Unit Tests
-
name
:
Run Unit Tests
run
:
|
run
:
|
go test -coverpkg ./pkg/... -coverprofile coverage.out ./pkg/... -run Unit
go test -coverpkg ./pkg/... -coverprofile coverage.out ./pkg/... -run Unit
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment