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
b35d33c7
Commit
b35d33c7
authored
Jul 23, 2016
by
k8s-merge-robot
Committed by
GitHub
Jul 23, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #29446 from wojtek-t/kubemark_should_fail_on_test_failure
Automatic merge from submit-queue Fail Kubemark if tests fail with error. Fix #29392
parents
3e41bc8d
7ef2e946
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
e2e-runner.sh
hack/jenkins/e2e-runner.sh
+6
-2
No files found.
hack/jenkins/e2e-runner.sh
View file @
b35d33c7
...
...
@@ -162,6 +162,11 @@ function install_google_cloud_sdk_tarball() {
function
dump_cluster_logs_and_exit
()
{
local
-r
exit_status
=
$?
dump_cluster_logs
if
[[
"
${
USE_KUBEMARK
:-}
"
==
"true"
]]
;
then
# If we tried to bring the Kubemark cluster up, make a courtesy
# attempt to bring it down so we're not leaving resources around.
./test/kubemark/stop-kubemark.sh
||
true
fi
if
[[
"
${
E2E_DOWN
,,
}
"
==
"true"
]]
;
then
# If we tried to bring the cluster up, make a courtesy attempt
# to bring the cluster down so we're not leaving resources
...
...
@@ -412,7 +417,6 @@ if [[ "${USE_KUBEMARK:-}" == "true" ]]; then
./test/kubemark/stop-kubemark.sh
NUM_NODES
=
${
KUBEMARK_NUM_NODES
:-
$NUM_NODES
}
MASTER_SIZE
=
${
KUBEMARK_MASTER_SIZE
:-
$MASTER_SIZE
}
# If start-kubemark fails, we trigger empty set of tests that would trigger storing logs from the base cluster.
./test/kubemark/start-kubemark.sh
||
dump_cluster_logs_and_exit
# Similarly, if tests fail, we trigger empty set of tests that would trigger storing logs from the base cluster.
# We intentionally overwrite the exit-code from `run-e2e-tests.sh` because we want jenkins to look at the
...
...
@@ -421,7 +425,7 @@ if [[ "${USE_KUBEMARK:-}" == "true" ]]; then
# exit non-0.
# TODO: The above comment is no longer accurate. Need to fix this before
# turning xunit off for the postsubmit tests. See: #28200
./test/kubemark/run-e2e-tests.sh
--ginkgo
.focus
=
"
${
KUBEMARK_TESTS
:-
starting
\s30\spods
}
"
"
${
KUBEMARK_TEST_ARGS
:-}
"
||
dump_cluster_logs
./test/kubemark/run-e2e-tests.sh
--ginkgo
.focus
=
"
${
KUBEMARK_TESTS
:-
starting
\s30\spods
}
"
"
${
KUBEMARK_TEST_ARGS
:-}
"
||
dump_cluster_logs
_and_exit
./test/kubemark/stop-kubemark.sh
NUM_NODES
=
${
NUM_NODES_BKP
}
MASTER_SIZE
=
${
MASTER_SIZE_BKP
}
...
...
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