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
b4e692b6
Unverified
Commit
b4e692b6
authored
Mar 05, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Mar 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74854 from neolit123/conformance-nodes
conformace/run_e2e.sh: pass shellcheck and autodetect ginkgo nodes
parents
0a4308f6
fe2301f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
conformance-e2e.yaml
cluster/images/conformance/conformance-e2e.yaml
+2
-2
run_e2e.sh
cluster/images/conformance/run_e2e.sh
+17
-12
.shellcheck_failures
hack/.shellcheck_failures
+0
-1
No files found.
cluster/images/conformance/conformance-e2e.yaml
View file @
b4e692b6
...
...
@@ -63,9 +63,9 @@ spec:
-
name
:
E2E_SKIP
value
:
"
"
-
name
:
E2E_PROVIDER
value
:
"
local
"
value
:
"
skeleton
"
-
name
:
E2E_PARALLEL
value
:
"
1
"
value
:
"
false
"
volumeMounts
:
-
name
:
output-volume
mountPath
:
/tmp/results
...
...
cluster/images/conformance/run_e2e.sh
View file @
b4e692b6
...
...
@@ -25,7 +25,7 @@ shutdown () {
# Kind of a hack to wait for this pid to finish.
# Since it's not a child of this shell we cannot use wait.
tail
--pid
${
E2E_SUITE_PID
}
-f
/dev/null
tail
--pid
"
${
E2E_SUITE_PID
}
"
-f
/dev/null
saveResults
}
...
...
@@ -39,23 +39,28 @@ saveResults() {
# We get the TERM from kubernetes and handle it gracefully
trap
shutdown TERM
ginkgo_args
=(
"--focus=
${
E2E_FOCUS
}
"
"--skip=
${
E2E_SKIP
}
"
"--noColor=true"
)
ginkgo_args
=()
if
[[
-n
${
E2E_DRYRUN
:-}
]]
;
then
ginkgo_args+
=(
"--dryRun=true"
)
fi
case
${
E2E_PARALLEL
}
in
'y'
|
'Y'
)
ginkgo_args+
=(
"--nodes=25"
)
;;
[
1-9]|[1-9][0-9]
*
)
ginkgo_args+
=(
"--nodes=
${
E2E_PARALLEL
}
"
)
;;
'y'
|
'Y'
|
'true'
)
# The flag '--p' will automatically detect the optimal number of ginkgo nodes.
ginkgo_args+
=(
"--p"
)
# Skip serial tests if parallel mode is enabled.
E2E_SKIP
=
"
\\
[Serial
\\
]|
${
E2E_SKIP
}
"
;;
esac
echo
"/usr/local/bin/ginkgo
${
ginkgo_args
[@]
}
/usr/local/bin/e2e.test -- --disable-log-dump --repo-root=/kubernetes --provider=
\"
${
E2E_PROVIDER
}
\"
--report-dir=
\"
${
RESULTS_DIR
}
\"
--kubeconfig=
\"
${
KUBECONFIG
}
\"
"
/usr/local/bin/ginkgo
"
${
ginkgo_args
[@]
}
"
/usr/local/bin/e2e.test
--
--disable-log-dump
--repo-root
=
/kubernetes
--provider
=
"
${
E2E_PROVIDER
}
"
--report-dir
=
"
${
RESULTS_DIR
}
"
--kubeconfig
=
"
${
KUBECONFIG
}
"
|
tee
${
RESULTS_DIR
}
/e2e.log &
ginkgo_args+
=(
"--focus=
${
E2E_FOCUS
}
"
"--skip=
${
E2E_SKIP
}
"
"--noColor=true"
)
set
-x
/usr/local/bin/ginkgo
"
${
ginkgo_args
[@]
}
"
/usr/local/bin/e2e.test
--
--disable-log-dump
--repo-root
=
/kubernetes
--provider
=
"
${
E2E_PROVIDER
}
"
--report-dir
=
"
${
RESULTS_DIR
}
"
--kubeconfig
=
"
${
KUBECONFIG
}
"
|
tee
"
${
RESULTS_DIR
}
"
/e2e.log &
set
+x
# $! is the pid of tee, not ginkgo
wait
$(
pgrep ginkgo
)
wait
"
$(
pgrep ginkgo
)
"
saveResults
hack/.shellcheck_failures
View file @
b4e692b6
...
...
@@ -17,7 +17,6 @@
./cluster/gce/upgrade-aliases.sh
./cluster/gce/upgrade.sh
./cluster/gce/util.sh
./cluster/images/conformance/run_e2e.sh
./cluster/log-dump/log-dump.sh
./cluster/pre-existing/util.sh
./cluster/restore-from-backup.sh
...
...
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