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
e91c5d04
Commit
e91c5d04
authored
Jun 22, 2016
by
Daniel Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run e2e with flake detection
parent
129b3a1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
ginkgo-e2e.sh
hack/ginkgo-e2e.sh
+9
-0
upload-to-gcs.sh
hack/jenkins/upload-to-gcs.sh
+21
-1
No files found.
hack/ginkgo-e2e.sh
View file @
e91c5d04
...
@@ -30,6 +30,9 @@ e2e_test=$(kube::util::find-binary "e2e.test")
...
@@ -30,6 +30,9 @@ e2e_test=$(kube::util::find-binary "e2e.test")
GINKGO_PARALLEL
=
${
GINKGO_PARALLEL
:-
n
}
# set to 'y' to run tests in parallel
GINKGO_PARALLEL
=
${
GINKGO_PARALLEL
:-
n
}
# set to 'y' to run tests in parallel
# If 'y', will rerun failed tests once to give them a second chance.
GINKGO_TOLERATE_FLAKES
=
${
GINKGO_TOLERATE_FLAKES
:-
n
}
# The number of tests that can run in parallel depends on what tests
# The number of tests that can run in parallel depends on what tests
# are running and on the size of the cluster. Too many, and tests will
# are running and on the size of the cluster. Too many, and tests will
# fail due to resource contention. 25 is a reasonable default for a
# fail due to resource contention. 25 is a reasonable default for a
...
@@ -101,6 +104,11 @@ elif [[ ${GINKGO_PARALLEL} =~ ^[yY]$ ]]; then
...
@@ -101,6 +104,11 @@ elif [[ ${GINKGO_PARALLEL} =~ ^[yY]$ ]]; then
ginkgo_args+
=(
"--nodes=25"
)
ginkgo_args+
=(
"--nodes=25"
)
fi
fi
FLAKE_ATTEMPTS
=
1
if
[[
"
${
GINKGO_TOLERATE_FLAKES
}
"
==
"y"
]]
;
then
FLAKE_ATTEMPTS
=
2
fi
# The --host setting is used only when providing --auth_config
# The --host setting is used only when providing --auth_config
# If --kubeconfig is used, the host to use is retrieved from the .kubeconfig
# If --kubeconfig is used, the host to use is retrieved from the .kubeconfig
# file and the one provided with --host is ignored.
# file and the one provided with --host is ignored.
...
@@ -108,6 +116,7 @@ fi
...
@@ -108,6 +116,7 @@ fi
export
PATH
=
$(
dirname
"
${
e2e_test
}
"
)
:
"
${
PATH
}
"
export
PATH
=
$(
dirname
"
${
e2e_test
}
"
)
:
"
${
PATH
}
"
"
${
ginkgo
}
"
"
${
ginkgo_args
[@]
:+
${
ginkgo_args
[@]
}}
"
"
${
e2e_test
}
"
--
\
"
${
ginkgo
}
"
"
${
ginkgo_args
[@]
:+
${
ginkgo_args
[@]
}}
"
"
${
e2e_test
}
"
--
\
"
${
auth_config
[@]
:+
${
auth_config
[@]
}}
"
\
"
${
auth_config
[@]
:+
${
auth_config
[@]
}}
"
\
--ginkgo
.flakeAttempts
=
"
${
FLAKE_ATTEMPTS
}
"
\
--host
=
"
${
KUBE_MASTER_URL
}
"
\
--host
=
"
${
KUBE_MASTER_URL
}
"
\
--provider
=
"
${
KUBERNETES_PROVIDER
}
"
\
--provider
=
"
${
KUBERNETES_PROVIDER
}
"
\
--gce-project
=
"
${
PROJECT
:-}
"
\
--gce-project
=
"
${
PROJECT
:-}
"
\
...
...
hack/jenkins/upload-to-gcs.sh
View file @
e91c5d04
...
@@ -46,13 +46,19 @@ fi
...
@@ -46,13 +46,19 @@ fi
if
[[
${
JOB_NAME
}
=
~
-pull-
]]
;
then
if
[[
${
JOB_NAME
}
=
~
-pull-
]]
;
then
:
${
JENKINS_GCS_LOGS_PATH
:
=
"gs://kubernetes-jenkins/pr-logs/pull/
${
ghprbPullId
:-
unknown
}
"
}
:
${
JENKINS_GCS_LOGS_PATH
:
=
"gs://kubernetes-jenkins/pr-logs/pull/
${
ghprbPullId
:-
unknown
}
"
}
:
${
JENKINS_GCS_LATEST_PATH
:
=
"gs://kubernetes-jenkins/pr-logs/directory"
}
:
${
JENKINS_GCS_LOGS_INDIRECT
:
=
"gs://kubernetes-jenkins/pr-logs/directory/
${
JOB_NAME
}
"
}
else
else
:
${
JENKINS_GCS_LOGS_PATH
:
=
"gs://kubernetes-jenkins/logs"
}
:
${
JENKINS_GCS_LOGS_PATH
:
=
"gs://kubernetes-jenkins/logs"
}
:
${
JENKINS_GCS_LATEST_PATH
:
=
"gs://kubernetes-jenkins/logs"
}
:
${
JENKINS_GCS_LOGS_INDIRECT
:
=
""
}
fi
fi
readonly
artifacts_path
=
"
${
WORKSPACE
}
/_artifacts"
readonly
artifacts_path
=
"
${
WORKSPACE
}
/_artifacts"
readonly
gcs_job_path
=
"
${
JENKINS_GCS_LOGS_PATH
}
/
${
JOB_NAME
}
"
readonly
gcs_job_path
=
"
${
JENKINS_GCS_LOGS_PATH
}
/
${
JOB_NAME
}
"
readonly
gcs_build_path
=
"
${
gcs_job_path
}
/
${
BUILD_NUMBER
}
"
readonly
gcs_build_path
=
"
${
gcs_job_path
}
/
${
BUILD_NUMBER
}
"
readonly
gcs_latest_path
=
"
${
JENKINS_GCS_LATEST_PATH
}
/
${
JOB_NAME
}
"
readonly
gcs_indirect_path
=
"
${
JENKINS_GCS_LOGS_INDIRECT
}
"
readonly
gcs_acl
=
"public-read"
readonly
gcs_acl
=
"public-read"
readonly
results_url
=
${
gcs_build_path
//
"gs:/"
/
"https://console.cloud.google.com/storage/browser"
}
readonly
results_url
=
${
gcs_build_path
//
"gs:/"
/
"https://console.cloud.google.com/storage/browser"
}
readonly
timestamp
=
$(
date
+%s
)
readonly
timestamp
=
$(
date
+%s
)
...
@@ -115,11 +121,25 @@ function upload_artifacts_and_build_result() {
...
@@ -115,11 +121,25 @@ function upload_artifacts_and_build_result() {
echo
"Uploading build log"
echo
"Uploading build log"
gsutil
-q
cp
-Z
-a
"
${
gcs_acl
}
"
"
${
WORKSPACE
}
/build-log.txt"
"
${
gcs_build_path
}
"
gsutil
-q
cp
-Z
-a
"
${
gcs_acl
}
"
"
${
WORKSPACE
}
/build-log.txt"
"
${
gcs_build_path
}
"
fi
fi
# For pull jobs, keep a canonical ordering for tools that want to examine
# the output.
if
[[
"
${
gcs_indirect_path
}
"
!=
""
]]
;
then
echo
"Writing
${
gcs_build_path
}
to
${
gcs_indirect_path
}
/
${
BUILD_NUMBER
}
.txt"
echo
"
${
gcs_build_path
}
"
|
\
gsutil
-q
-h
"Content-Type:text/plain"
\
cp
-a
"
${
gcs_acl
}
"
-
"
${
gcs_indirect_path
}
/
${
BUILD_NUMBER
}
.txt"
||
continue
echo
"Marking build
${
BUILD_NUMBER
}
as the latest completed build for this PR"
echo
"
${
BUILD_NUMBER
}
"
|
\
gsutil
-q
-h
"Content-Type:text/plain"
-h
"Cache-Control:private, max-age=0, no-transform"
\
cp
-a
"
${
gcs_acl
}
"
-
"
${
gcs_job_path
}
/latest-build.txt"
||
continue
fi
# Mark this build as the latest completed.
# Mark this build as the latest completed.
echo
"Marking build
${
BUILD_NUMBER
}
as the latest completed build"
echo
"Marking build
${
BUILD_NUMBER
}
as the latest completed build"
echo
"
${
BUILD_NUMBER
}
"
|
\
echo
"
${
BUILD_NUMBER
}
"
|
\
gsutil
-q
-h
"Content-Type:text/plain"
-h
"Cache-Control:private, max-age=0, no-transform"
\
gsutil
-q
-h
"Content-Type:text/plain"
-h
"Cache-Control:private, max-age=0, no-transform"
\
cp
-a
"
${
gcs_acl
}
"
-
"
${
gcs_
job
_path
}
/latest-build.txt"
||
continue
cp
-a
"
${
gcs_acl
}
"
-
"
${
gcs_
latest
_path
}
/latest-build.txt"
||
continue
break
# all uploads succeeded if we hit this point
break
# all uploads succeeded if we hit this point
done
done
...
...
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