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
4cdd1b78
Commit
4cdd1b78
authored
Dec 05, 2016
by
Random-Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add node conformance ci test.
parent
b7ec229e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
1 deletion
+58
-1
conformance-jenkins.sh
test/e2e_node/jenkins/conformance/conformance-jenkins.sh
+42
-0
jenkins-conformance.properties
...e_node/jenkins/conformance/jenkins-conformance.properties
+6
-0
node_conformance.go
test/e2e_node/remote/node_conformance.go
+0
-0
remote.go
test/e2e_node/remote/remote.go
+8
-1
run_remote.go
test/e2e_node/runner/remote/run_remote.go
+2
-0
No files found.
test/e2e_node/jenkins/conformance/conformance-jenkins.sh
0 → 100755
View file @
4cdd1b78
#!/bin/bash
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Script executed by jenkins to run node conformance test against gce
# Usage: test/e2e_node/jenkins/conformance-node-jenkins.sh <path to properties>
set
-e
set
-x
:
"
${
1
:?Usage
test/e2e_node/jenkins/conformance-node-jenkins.sh <path to properties>
}
"
.
$1
make generated_files
WORKSPACE
=
${
WORKSPACE
:-
"/tmp/"
}
ARTIFACTS
=
${
WORKSPACE
}
/_artifacts
TIMEOUT
=
${
TIMEOUT
:-
"45m"
}
mkdir
-p
${
ARTIFACTS
}
go run
test
/e2e_node/runner/remote/run_remote.go conformance
\
--logtostderr
--vmodule
=
*
=
4
--ssh-env
=
"gce"
\
--zone
=
"
$GCE_ZONE
"
--project
=
"
$GCE_PROJECT
"
--hosts
=
"
$GCE_HOSTS
"
\
--images
=
"
$GCE_IMAGES
"
--image-project
=
"
$GCE_IMAGE_PROJECT
"
\
--image-config-file
=
"
$GCE_IMAGE_CONFIG_PATH
"
--cleanup
=
"
$CLEANUP
"
\
--results-dir
=
"
$ARTIFACTS
"
--test-timeout
=
"
$TIMEOUT
"
\
--test_args
=
"--kubelet-flags=
\"
$KUBELET_ARGS
\"
"
\
--instance-metadata
=
"
$GCE_INSTANCE_METADATA
"
test/e2e_node/jenkins/conformance/jenkins-conformance.properties
0 → 100644
View file @
4cdd1b78
GCE_HOSTS
=
GCE_IMAGE_CONFIG_PATH
=
test/e2e_node/jenkins/image-config.yaml
GCE_ZONE
=
us-central1-f
GCE_PROJECT
=
k8s-jkns-ci-node-e2e
CLEANUP
=
true
KUBELET_ARGS
=
'--experimental-cgroups-per-qos=true --cgroup-root=/'
test/e2e_node/remote/node_conformance.go
0 → 100644
View file @
4cdd1b78
This diff is collapsed.
Click to expand it.
test/e2e_node/remote/remote.go
View file @
4cdd1b78
...
@@ -98,8 +98,15 @@ func RunRemote(suite TestSuite, archive string, host string, cleanup bool, junit
...
@@ -98,8 +98,15 @@ func RunRemote(suite TestSuite, archive string, host string, cleanup bool, junit
return
""
,
false
,
fmt
.
Errorf
(
"failed to extract test archive: %v, output: %q"
,
err
,
output
)
return
""
,
false
,
fmt
.
Errorf
(
"failed to extract test archive: %v, output: %q"
,
err
,
output
)
}
}
// Create the test result directory.
resultDir
:=
filepath
.
Join
(
workspace
,
"results"
)
if
output
,
err
:=
SSHNoSudo
(
host
,
"mkdir"
,
resultDir
);
err
!=
nil
{
// Exit failure with the error
return
""
,
false
,
fmt
.
Errorf
(
"failed to create test result directory %q on host %q: %v output: %q"
,
resultDir
,
host
,
err
,
output
)
}
glog
.
Infof
(
"Running test on %q"
,
host
)
glog
.
Infof
(
"Running test on %q"
,
host
)
output
,
err
:=
suite
.
RunTest
(
host
,
workspace
,
filepath
.
Join
(
workspace
,
"results"
)
,
junitFilePrefix
,
testArgs
,
ginkgoArgs
,
*
testTimeoutSeconds
)
output
,
err
:=
suite
.
RunTest
(
host
,
workspace
,
resultDir
,
junitFilePrefix
,
testArgs
,
ginkgoArgs
,
*
testTimeoutSeconds
)
aggErrs
:=
[]
error
{}
aggErrs
:=
[]
error
{}
// Do not log the output here, let the caller deal with the test output.
// Do not log the output here, let the caller deal with the test output.
...
...
test/e2e_node/runner/remote/run_remote.go
View file @
4cdd1b78
...
@@ -134,6 +134,8 @@ func parseFlags() {
...
@@ -134,6 +134,8 @@ func parseFlags() {
// Parse subcommand.
// Parse subcommand.
subcommand
:=
os
.
Args
[
1
]
subcommand
:=
os
.
Args
[
1
]
switch
subcommand
{
switch
subcommand
{
case
"conformance"
:
suite
=
remote
.
InitConformanceRemote
()
// TODO: Add subcommand for node soaking, node conformance, cri validation.
// TODO: Add subcommand for node soaking, node conformance, cri validation.
default
:
default
:
// Use node e2e suite by default if no subcommand is specified.
// Use node e2e suite by default if no subcommand is specified.
...
...
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