Use timeout command instead of Jenkins for e2e tests.

This commit is contained in:
Joe Finney 2016-03-02 14:38:50 -08:00
parent ec77d0841d
commit 5315921d68
8 changed files with 23 additions and 20 deletions

View File

@ -127,6 +127,10 @@
name: global name: global
emails: '$DEFAULT_RECIPIENTS' emails: '$DEFAULT_RECIPIENTS'
cron-string: 'H/30 * * * *' cron-string: 'H/30 * * * *'
# How long to wait after sending TERM to send KILL (minutes)
kill-timeout: 15
# Just to be safe, use the Jenkins timeout after a long time.
jenkins-timeout: 600
branch: 'master' branch: 'master'
job-env: '' job-env: ''
runner: curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/e2e-runner.sh" | bash - runner: curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/e2e-runner.sh" | bash -

View File

@ -6,7 +6,7 @@
numToKeep: 200 numToKeep: 200
builders: builders:
- shell: 'bash <(curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-started.sh")' - shell: 'bash <(curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-started.sh")'
- shell: './hack/jenkins/build.sh' - shell: 'timeout -k {kill-timeout}m 30m ./hack/jenkins/build.sh'
properties: properties:
- mail-watcher - mail-watcher
publishers: publishers:
@ -35,8 +35,8 @@
cron: 'H/2 * * * *' cron: 'H/2 * * * *'
wrappers: wrappers:
- timeout: - timeout:
timeout: 30 timeout: '{jenkins-timeout}'
abort: true fail: true
- timestamps - timestamps
- project: - project:

View File

@ -30,7 +30,7 @@
export TEST_CLUSTER_RESYNC_PERIOD="--min-resync-period=12h" export TEST_CLUSTER_RESYNC_PERIOD="--min-resync-period=12h"
{post-env} {post-env}
export KUBE_GCE_NETWORK="e2e-enormous-cluster" export KUBE_GCE_NETWORK="e2e-enormous-cluster"
{runner} timeout -k {kill-timeout}m 480m {runner}
properties: properties:
- mail-watcher - mail-watcher
publishers: publishers:
@ -45,7 +45,7 @@
- ansicolor: - ansicolor:
colormap: xterm colormap: xterm
- timeout: - timeout:
timeout: 480 timeout: '{jenkins-timeout}'
fail: true fail: true
- timestamps - timestamps
- workspace-cleanup - workspace-cleanup

View File

@ -21,14 +21,14 @@
{provider-env} {provider-env}
{job-env} {job-env}
{post-env} {post-env}
{runner} timeout -k {kill-timeout}m {timeout}m {runner}
properties: properties:
- mail-watcher - mail-watcher
wrappers: wrappers:
- ansicolor: - ansicolor:
colormap: xterm colormap: xterm
- timeout: - timeout:
timeout: '{timeout}' timeout: '{jenkins-timeout}'
fail: true fail: true
- timestamps - timestamps
- workspace-cleanup - workspace-cleanup

View File

@ -8,7 +8,7 @@
{provider-env} {provider-env}
{job-env} {job-env}
{post-env} {post-env}
{runner} timeout -k {kill-timeout}m {timeout}m {runner}
properties: properties:
- mail-watcher - mail-watcher
publishers: publishers:
@ -27,7 +27,7 @@
- ansicolor: - ansicolor:
colormap: xterm colormap: xterm
- timeout: - timeout:
timeout: '{timeout}' timeout: '{jenkins-timeout}'
fail: true fail: true
- timestamps - timestamps
- workspace-cleanup - workspace-cleanup

View File

@ -9,7 +9,7 @@
{soak-deploy} {soak-deploy}
{job-env} {job-env}
{post-env} {post-env}
{runner} timeout -k {kill-timeout}m 90m {runner}
properties: properties:
- build-blocker: - build-blocker:
use-build-blocker: true use-build-blocker: true
@ -24,7 +24,7 @@
- ansicolor: - ansicolor:
colormap: xterm colormap: xterm
- timeout: - timeout:
timeout: 90 timeout: '{jenkins-timeout}'
fail: true fail: true
- timestamps - timestamps
- workspace-cleanup - workspace-cleanup
@ -41,7 +41,7 @@
{soak-continuous} {soak-continuous}
{job-env} {job-env}
{post-env} {post-env}
{runner} timeout -k {kill-timeout}m 360m {runner}
properties: properties:
- build-blocker: - build-blocker:
use-build-blocker: true use-build-blocker: true
@ -60,7 +60,7 @@
- ansicolor: - ansicolor:
colormap: xterm colormap: xterm
- timeout: - timeout:
timeout: 360 timeout: '{jenkins-timeout}'
fail: true fail: true
- timestamps - timestamps

View File

@ -8,7 +8,7 @@
node: unittest node: unittest
builders: builders:
- shell: 'bash <(curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-started.sh")' - shell: 'bash <(curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-started.sh")'
- shell: './hack/jenkins/gotest-dockerized.sh' - shell: 'timeout -k {kill-timeout}m {timeout}m ./hack/jenkins/gotest-dockerized.sh'
publishers: publishers:
- claim-build - claim-build
- gcs-uploader - gcs-uploader
@ -47,7 +47,7 @@
- ansicolor: - ansicolor:
colormap: xterm colormap: xterm
- timeout: - timeout:
timeout: '{timeout}' timeout: '{jenkins-timeout}'
fail: true fail: true
- timestamps - timestamps
- raw: - raw:

View File

@ -70,7 +70,7 @@
# per-step variables, such as whether to run tests # per-step variables, such as whether to run tests
{job-env} {job-env}
{post-env} {post-env}
{runner} timeout -k {kill-timeout}m 60m {runner}
properties: properties:
- mail-watcher - mail-watcher
publishers: publishers:
@ -84,7 +84,7 @@
- ansicolor: - ansicolor:
colormap: xterm colormap: xterm
- timeout: - timeout:
timeout: 60 timeout: '{jenkins-timeout}'
fail: true fail: true
- timestamps - timestamps
- workspace-cleanup - workspace-cleanup
@ -105,7 +105,7 @@
# per-step variables, such as whether to run tests # per-step variables, such as whether to run tests
{job-env} {job-env}
{post-env} {post-env}
{runner} timeout -k {kill-timeout}m 300m {runner}
properties: properties:
- mail-watcher - mail-watcher
publishers: publishers:
@ -119,8 +119,7 @@
- ansicolor: - ansicolor:
colormap: xterm colormap: xterm
- timeout: - timeout:
timeout: 300 timeout: '{jenkins-timeout}'
abort: true
fail: true fail: true
- timestamps - timestamps
# Don't clean the workspace; we want to keep configs intact across steps in the multijob # Don't clean the workspace; we want to keep configs intact across steps in the multijob