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
b19fb0a7
Unverified
Commit
b19fb0a7
authored
Dec 19, 2018
by
Christoph Blecker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up artifacts variables in hack scripts
parent
f2d7eed6
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
18 deletions
+30
-18
benchmark-dockerized.sh
hack/jenkins/benchmark-dockerized.sh
+4
-4
gotest.sh
hack/jenkins/gotest.sh
+4
-2
test-dockerized.sh
hack/jenkins/test-dockerized.sh
+4
-3
verify-dockerized.sh
hack/jenkins/verify-dockerized.sh
+3
-3
etcd.sh
hack/lib/etcd.sh
+2
-2
test.sh
hack/make-rules/test.sh
+4
-0
verify.sh
hack/make-rules/verify.sh
+5
-0
verify-godeps.sh
hack/verify-godeps.sh
+4
-4
No files found.
hack/jenkins/benchmark-dockerized.sh
View file @
b19fb0a7
...
...
@@ -39,9 +39,9 @@ retry go get github.com/cespare/prettybench
export
KUBE_RACE
=
" "
# Disable coverage report
export
KUBE_COVER
=
"n"
export
ARTIFACTS
_DIR
=
${
WORKSPACE
}
/_artifacts
export
ARTIFACTS
=
${
ARTIFACTS
:-
"
${
WORKSPACE
}
/artifacts"
}
mkdir
-p
"
${
ARTIFACTS
_DIR
}
"
mkdir
-p
"
${
ARTIFACTS
}
"
cd
/go/src/k8s.io/kubernetes
./hack/install-etcd.sh
...
...
@@ -49,5 +49,5 @@ cd /go/src/k8s.io/kubernetes
# Run the benchmark tests and pretty-print the results into a separate file.
make test-integration
WHAT
=
"
$*
"
KUBE_TEST_ARGS
=
"-run='XXX' -bench=. -benchmem"
\
|
tee
\
>(
prettybench
-no-passthrough
>
${
ARTIFACTS
_DIR
}
/BenchmarkResults.txt
)
\
>(
go run
test
/integration/benchmark/jsonify/main.go
${
ARTIFACTS
_DIR
}
/BenchmarkResults_benchmark_
$(
date
-u
+%Y-%m-%dT%H:%M:%SZ
)
.json
||
cat
>
/dev/null
)
>(
prettybench
-no-passthrough
>
${
ARTIFACTS
}
/BenchmarkResults.txt
)
\
>(
go run
test
/integration/benchmark/jsonify/main.go
${
ARTIFACTS
}
/BenchmarkResults_benchmark_
$(
date
-u
+%Y-%m-%dT%H:%M:%SZ
)
.json
||
cat
>
/dev/null
)
hack/jenkins/gotest.sh
View file @
b19fb0a7
...
...
@@ -36,8 +36,10 @@ go get -u github.com/jstemmer/go-junit-report
# Enable the Go race detector.
export
KUBE_RACE
=
-race
# Produce a JUnit-style XML test report for Jenkins.
export
KUBE_JUNIT_REPORT_DIR
=
${
WORKSPACE
}
/_artifacts
# Set artifacts directory
export
ARTIFACTS
=
${
ARTIFACTS
:-
"
${
WORKSPACE
}
/artifacts"
}
# Produce a JUnit-style XML test report
export
KUBE_JUNIT_REPORT_DIR
=
"
${
ARTIFACTS
}
"
# Save the verbose stdout as well.
export
KUBE_KEEP_VERBOSE_TEST_OUTPUT
=
y
...
...
hack/jenkins/test-dockerized.sh
View file @
b19fb0a7
...
...
@@ -39,9 +39,10 @@ retry go get github.com/jstemmer/go-junit-report
export
KUBE_RACE
=
-race
# Disable coverage report
export
KUBE_COVER
=
"n"
# Produce a JUnit-style XML test report for Jenkins.
export
KUBE_JUNIT_REPORT_DIR
=
${
WORKSPACE
}
/artifacts
export
ARTIFACTS_DIR
=
${
WORKSPACE
}
/artifacts
# Set artifacts directory
export
ARTIFACTS
=
${
ARTIFACTS
:-
"
${
WORKSPACE
}
/artifacts"
}
# Produce a JUnit-style XML test report
export
KUBE_JUNIT_REPORT_DIR
=
"
${
ARTIFACTS
}
"
# Save the verbose stdout as well.
export
KUBE_KEEP_VERBOSE_TEST_OUTPUT
=
y
export
KUBE_INTEGRATION_TEST_MAX_CONCURRENCY
=
4
...
...
hack/jenkins/verify-dockerized.sh
View file @
b19fb0a7
...
...
@@ -31,10 +31,10 @@ retry() {
export
PATH
=
${
GOPATH
}
/bin:
${
PWD
}
/third_party/etcd:/usr/local/go/bin:
${
PATH
}
# Produce a JUnit-style XML test report
export
KUBE_JUNIT_REPORT_DIR
=
${
WORKSPACE
}
/artifacts
# Set artifacts directory
export
ARTIFACTS_DIR
=
${
WORKSPACE
}
/artifacts
export
ARTIFACTS
=
${
ARTIFACTS
:-
"
${
WORKSPACE
}
/artifacts"
}
# Produce a JUnit-style XML test report
export
KUBE_JUNIT_REPORT_DIR
=
"
${
ARTIFACTS
}
"
export
LOG_LEVEL
=
4
...
...
hack/lib/etcd.sh
View file @
b19fb0a7
...
...
@@ -70,8 +70,8 @@ kube::etcd::start() {
# Start etcd
ETCD_DIR
=
${
ETCD_DIR
:-$(
mktemp
-d
2>/dev/null
||
mktemp
-d
-t
test-etcd.XXXXXX
)}
if
[[
-d
"
${
ARTIFACTS
_DIR
:-}
"
]]
;
then
ETCD_LOGFILE
=
"
${
ARTIFACTS
_DIR
}
/etcd.
$(
uname
-n
)
.
$(
id
-un
)
.log.DEBUG.
$(
date
+%Y%m%d-%H%M%S
)
.
$$
"
if
[[
-d
"
${
ARTIFACTS
:-}
"
]]
;
then
ETCD_LOGFILE
=
"
${
ARTIFACTS
}
/etcd.
$(
uname
-n
)
.
$(
id
-un
)
.log.DEBUG.
$(
date
+%Y%m%d-%H%M%S
)
.
$$
"
else
ETCD_LOGFILE
=
${
ETCD_LOGFILE
:-
"/dev/null"
}
fi
...
...
hack/make-rules/test.sh
View file @
b19fb0a7
...
...
@@ -120,6 +120,10 @@ KUBE_TEST_API_VERSIONS="${KUBE_TEST_API_VERSIONS:-${ALL_VERSIONS_CSV}}"
# once we have multiple group supports
# Create a junit-style XML test report in this directory if set.
KUBE_JUNIT_REPORT_DIR
=
${
KUBE_JUNIT_REPORT_DIR
:-}
# If KUBE_JUNIT_REPORT_DIR is unset, and ARTIFACTS is set, then have them match.
if
[[
-z
"
${
KUBE_JUNIT_REPORT_DIR
:-}
"
&&
-n
"
${
ARTIFACTS
:-}
"
]]
;
then
export
KUBE_JUNIT_REPORT_DIR
=
"
${
ARTIFACTS
}
"
fi
# Set to 'y' to keep the verbose stdout from tests when KUBE_JUNIT_REPORT_DIR is
# set.
KUBE_KEEP_VERBOSE_TEST_OUTPUT
=
${
KUBE_KEEP_VERBOSE_TEST_OUTPUT
:-
n
}
...
...
hack/make-rules/verify.sh
View file @
b19fb0a7
...
...
@@ -21,6 +21,11 @@ set -o pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../..
source
"
${
KUBE_ROOT
}
/hack/lib/util.sh"
# If KUBE_JUNIT_REPORT_DIR is unset, and ARTIFACTS is set, then have them match.
if
[[
-z
"
${
KUBE_JUNIT_REPORT_DIR
:-}
"
&&
-n
"
${
ARTIFACTS
:-}
"
]]
;
then
export
KUBE_JUNIT_REPORT_DIR
=
"
${
ARTIFACTS
}
"
fi
# include shell2junit library
source
"
${
KUBE_ROOT
}
/third_party/forked/shell2junit/sh2ju.sh"
...
...
hack/verify-godeps.sh
View file @
b19fb0a7
...
...
@@ -94,9 +94,9 @@ pushd "${KUBE_ROOT}" > /dev/null 2>&1
echo
"(The above output can be saved as godepdiff.patch if you're not running this locally)"
>
&2
echo
"(The patch file should also be exported as a build artifact if run through CI)"
>
&2
KEEP_TMP
=
true
if
[[
-f
godepdiff.patch
&&
-d
"
${
ARTIFACTS
_DIR
:-}
"
]]
;
then
if
[[
-f
godepdiff.patch
&&
-d
"
${
ARTIFACTS
:-}
"
]]
;
then
echo
"Copying patch to artifacts.."
cp
godepdiff.patch
"
${
ARTIFACTS
_DIR
:-}
/"
cp
godepdiff.patch
"
${
ARTIFACTS
:-}
/"
fi
ret
=
1
fi
...
...
@@ -111,9 +111,9 @@ pushd "${KUBE_ROOT}" > /dev/null 2>&1
echo
"(The above output can be saved as godepdiff.patch if you're not running this locally)"
>
&2
echo
"(The patch file should also be exported as a build artifact if run through CI)"
>
&2
KEEP_TMP
=
true
if
[[
-f
vendordiff.patch
&&
-d
"
${
ARTIFACTS
_DIR
:-}
"
]]
;
then
if
[[
-f
vendordiff.patch
&&
-d
"
${
ARTIFACTS
:-}
"
]]
;
then
echo
"Copying patch to artifacts.."
cp
vendordiff.patch
"
${
ARTIFACTS
_DIR
:-}
/"
cp
vendordiff.patch
"
${
ARTIFACTS
:-}
/"
fi
ret
=
1
fi
...
...
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