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
7f58a1cb
Unverified
Commit
7f58a1cb
authored
Aug 10, 2023
by
Derek Nola
Committed by
GitHub
Aug 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run integration test CI in parallel (#8156)
* Run integration test CI in parallel * Define go version in E2E
parent
c9721186
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
integration.yaml
.github/workflows/integration.yaml
+9
-3
Dockerfile.test
Dockerfile.test
+1
-1
No files found.
.github/workflows/integration.yaml
View file @
7f58a1cb
...
@@ -35,6 +35,11 @@ jobs:
...
@@ -35,6 +35,11 @@ jobs:
name
:
Integration Tests
name
:
Integration Tests
runs-on
:
ubuntu-20.04
runs-on
:
ubuntu-20.04
timeout-minutes
:
45
timeout-minutes
:
45
strategy
:
fail-fast
:
false
matrix
:
itest
:
[
certrotation
,
etcdrestore
,
localstorage
,
startup
,
custometcdargs
,
etcdsnapshot
,
kubeflags
,
longhorn
,
secretsencryption
]
max-parallel
:
3
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
uses
:
actions/checkout@v3
uses
:
actions/checkout@v3
...
@@ -58,16 +63,16 @@ jobs:
...
@@ -58,16 +63,16 @@ jobs:
run
:
|
run
:
|
chmod +x ./dist/artifacts/k3s
chmod +x ./dist/artifacts/k3s
mkdir -p $GOCOVERDIR
mkdir -p $GOCOVERDIR
sudo -E env "PATH=$PATH" go test -v -timeout=45m ./tests/integration/... -run Integration
sudo -E env "PATH=$PATH" go test -v -timeout=45m ./tests/integration/
${{ matrix.itest }}/
... -run Integration
-
name
:
On Failure, Launch Debug Session
-
name
:
On Failure, Launch Debug Session
if
:
${{ failure() }}
if
:
${{ failure() }}
uses
:
mxschmitt/action-tmate@v3
uses
:
mxschmitt/action-tmate@v3
timeout-minutes
:
5
timeout-minutes
:
5
-
name
:
Generate coverage report
-
name
:
Generate coverage report
run
:
go tool covdata textfmt -i $GOCOVERDIR -o
coverage
.out
run
:
go tool covdata textfmt -i $GOCOVERDIR -o
${{ matrix.itest }}
.out
-
name
:
Upload Results To Codecov
-
name
:
Upload Results To Codecov
uses
:
codecov/codecov-action@v3
uses
:
codecov/codecov-action@v3
with
:
with
:
files
:
./
coverage
.out
files
:
./
${{ matrix.itest }}
.out
flags
:
inttests
# optional
flags
:
inttests
# optional
verbose
:
true
# optional (default = false)
verbose
:
true
# optional (default = false)
\ No newline at end of file
Dockerfile.test
View file @
7f58a1cb
...
@@ -44,7 +44,7 @@ RUN vagrant box add generic/ubuntu2004 --provider libvirt --force
...
@@ -44,7 +44,7 @@ RUN vagrant box add generic/ubuntu2004 --provider libvirt --force
RUN
curl
-
LO
"https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
;
\
RUN
curl
-
LO
"https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
;
\
chmod
+
x
./
kubectl
;
\
chmod
+
x
./
kubectl
;
\
mv
./
kubectl
/
usr
/
local
/
bin
/
kubectl
mv
./
kubectl
/
usr
/
local
/
bin
/
kubectl
RUN
GO_VERSION
=
$
(
curl
https
://
go
.
dev
/
VERSION
?
m
=
text
)
;
\
RUN
GO_VERSION
=
go1
.
20.6
;
\
curl
-
O
-
L
"https://golang.org/dl/${GO_VERSION}.linux-amd64.tar.gz"
;
\
curl
-
O
-
L
"https://golang.org/dl/${GO_VERSION}.linux-amd64.tar.gz"
;
\
rm
-
rf
/
usr
/
local
/
go
;
\
rm
-
rf
/
usr
/
local
/
go
;
\
tar
-
C
/
usr
/
local
-
xzf
$
{
GO_VERSION
}
.
linux
-
amd64
.
tar
.
gz
;
tar
-
C
/
usr
/
local
-
xzf
$
{
GO_VERSION
}
.
linux
-
amd64
.
tar
.
gz
;
...
...
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