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
129317db
Unverified
Commit
129317db
authored
Jan 21, 2020
by
Erik Wilson
Committed by
GitHub
Jan 21, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1330 from erikwilson/sonobuoy-conformance-version
Cleanup sonobuoy
parents
a07369fc
5117ea0c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
Dockerfile.test.dapper
Dockerfile.test.dapper
+2
-2
test
scripts/test
+2
-2
test-helpers
scripts/test-helpers
+14
-2
No files found.
Dockerfile.test.dapper
View file @
129317db
...
@@ -6,7 +6,7 @@ ARG DAPPER_HOST_ARCH
...
@@ -6,7 +6,7 @@ ARG DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
RUN if [ "${ARCH}" == "amd64" ] || [ "${ARCH}" == "arm64" ]; then \
RUN if [ "${ARCH}" == "amd64" ] || [ "${ARCH}" == "arm64" ]; then \
VERSION=0.17.
0
OS=linux && \
VERSION=0.17.
1
OS=linux && \
curl -sL "https://github.com/vmware-tanzu/sonobuoy/releases/download/v${VERSION}/sonobuoy_${VERSION}_${OS}_${ARCH}.tar.gz" | \
curl -sL "https://github.com/vmware-tanzu/sonobuoy/releases/download/v${VERSION}/sonobuoy_${VERSION}_${OS}_${ARCH}.tar.gz" | \
tar -xzf - -C /usr/local/bin; \
tar -xzf - -C /usr/local/bin; \
fi
fi
...
@@ -19,7 +19,7 @@ RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/$( \
...
@@ -19,7 +19,7 @@ RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/$( \
ENV TEST_CLEANUP true
ENV TEST_CLEANUP true
ENV DAPPER_RUN_ARGS --privileged --network host
ENV DAPPER_RUN_ARGS --privileged --network host
ENV DAPPER_ENV REPO TAG DRONE_TAG DRONE_
SYSTEM_HOS
T IMAGE_NAME GCLOUD_AUTH
ENV DAPPER_ENV REPO TAG DRONE_TAG DRONE_
BUILD_EVEN
T IMAGE_NAME GCLOUD_AUTH
ENV DAPPER_SOURCE /go/src/github.com/rancher/k3s/
ENV DAPPER_SOURCE /go/src/github.com/rancher/k3s/
ENV DAPPER_OUTPUT ./dist
ENV DAPPER_OUTPUT ./dist
ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_DOCKER_SOCKET true
...
...
scripts/test
View file @
129317db
...
@@ -17,8 +17,8 @@ E2E_OUTPUT=$artifacts test-run-sonobuoy
...
@@ -17,8 +17,8 @@ E2E_OUTPUT=$artifacts test-run-sonobuoy
# ---
# ---
if
[
[
"
$DRONE_SYSTEM_HOST
"
=
~
'publish'
]
]
;
then
if
[
"
$DRONE_BUILD_EVENT
"
=
'tag'
]
;
then
printf
"
\0
33[33mSkipping remaining tests on
publish
.
\0
33[m
\n
"
printf
"
\0
33[33mSkipping remaining tests on
tag
.
\0
33[m
\n
"
exit
0
exit
0
fi
fi
...
...
scripts/test-helpers
View file @
129317db
...
@@ -189,8 +189,15 @@ sonobuoy-test() {
...
@@ -189,8 +189,15 @@ sonobuoy-test() {
return
0
return
0
fi
fi
echo
'Starting sonobuoy tests'
echo
'Starting sonobuoy tests'
local
VERSION_CONFORMANCE
=
$(
sed
-e
's/[-+].*$//g'
<<<
"
$VERSION_K8S
"
)
sonobuoy run
\
--config
=
scripts/sonobuoy-config.json
\
--plugin-env
=
e2e.E2E_USE_GO_RUNNER
=
true
\
--kube-conformance-image-version
=
${
VERSION_CONFORMANCE
}
\
--wait
=
30
\
$@
&
sonobuoy run
--config
=
scripts/sonobuoy-config.json
--plugin-env
=
e2e.E2E_USE_GO_RUNNER
=
true
--wait
=
30
$@
&
local
sonobuoyPID
=
$!
local
sonobuoyPID
=
$!
local
code
=
0
local
code
=
0
time wait
$sonobuoyPID
||
code
=
$?
time wait
$sonobuoyPID
||
code
=
$?
...
@@ -510,6 +517,9 @@ pid-cleanup() {
...
@@ -510,6 +517,9 @@ pid-cleanup() {
else
else
printf
"
\0
33[31m
$failCount
tests failed.
\0
33[m
\n
"
printf
"
\0
33[31m
$failCount
tests failed.
\0
33[m
\n
"
fi
fi
if
[
"
$DRONE_BUILD_EVENT
"
=
'tag'
]
;
then
code
=
0
fi
echo
echo
exit
$code
exit
$code
}
}
...
@@ -524,8 +534,10 @@ wait-pids() {
...
@@ -524,8 +534,10 @@ wait-pids() {
for
pid
in
"
${
pids
[@]
}
"
;
do
for
pid
in
"
${
pids
[@]
}
"
;
do
wait
$pid
||
code
=
$?
wait
$pid
||
code
=
$?
done
done
[
$code
-eq
0
]
pid-cleanup
pid-cleanup
if
[
"
$DRONE_BUILD_EVENT
"
=
'tag'
]
;
then
code
=
0
fi
exit
$code
exit
$code
}
}
export
-f
wait-pids
export
-f
wait-pids
...
...
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