test: Increase timeouts for slow travis

Should prevent more intermittent failures.
This commit is contained in:
James Shubin
2017-09-09 15:31:06 -04:00
parent dbcabc6517
commit 0df4824a56
5 changed files with 5 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ mkdir -p "${MGMT_TMPDIR}"
> "${MGMT_TMPDIR}"sshd_config > "${MGMT_TMPDIR}"sshd_config
# run empty graph, with prometheus support # run empty graph, with prometheus support
timeout --kill-after=20s 15s ./mgmt run --tmp-prefix --yaml=augeas-1.yaml & timeout --kill-after=40s 35s ./mgmt run --tmp-prefix --yaml=augeas-1.yaml &
pid=$! pid=$!
sleep 5s # let it converge sleep 5s # let it converge

View File

@@ -3,7 +3,7 @@
# should take a few seconds plus converged timeout, and test we don't hang! # should take a few seconds plus converged timeout, and test we don't hang!
# TODO: should we return a different exit code if the resources fail? # TODO: should we return a different exit code if the resources fail?
# TODO: should we be converged if one of the resources has permanently failed? # TODO: should we be converged if one of the resources has permanently failed?
$timeout --kill-after=20s 15s ./mgmt run --yaml exec-fail.yaml --converged-timeout=5 --no-watch --no-pgp --tmp-prefix & $timeout --kill-after=40s 35s ./mgmt run --yaml exec-fail.yaml --converged-timeout=5 --no-watch --no-pgp --tmp-prefix &
pid=$! pid=$!
wait $pid # get exit status wait $pid # get exit status
exit $? exit $?

View File

@@ -7,7 +7,7 @@ exit 0
mkdir -p /tmp/mgmt/a/b/c/ mkdir -p /tmp/mgmt/a/b/c/
# run empty graph, with prometheus support # run empty graph, with prometheus support
$timeout --kill-after=20s 15s ./mgmt run --tmp-prefix --yaml=examples/deep-dirs.yaml & $timeout --kill-after=40s 35s ./mgmt run --tmp-prefix --yaml=examples/deep-dirs.yaml &
pid=$! pid=$!
sleep 5s # let it converge sleep 5s # let it converge

View File

@@ -4,7 +4,7 @@ mkdir -p /tmp/mgmt/
rm /tmp/mgmt/f1 || true rm /tmp/mgmt/f1 || true
# run empty graph, with prometheus support # run empty graph, with prometheus support
timeout --kill-after=20s 15s ./mgmt run --tmp-prefix --yaml=file-move.yaml 2>&1 | tee /tmp/mgmt/file-move.log & timeout --kill-after=40s 35s ./mgmt run --tmp-prefix --yaml=file-move.yaml 2>&1 | tee /tmp/mgmt/file-move.log &
pid=$! pid=$!
sleep 5s # let it converge sleep 5s # let it converge

View File

@@ -7,7 +7,7 @@ if env | grep -q -e '^TRAVIS=true$'; then
fi fi
# run till completion # run till completion
$timeout --kill-after=20s 15s ./mgmt run --yaml t6.yaml --no-watch --tmp-prefix & $timeout --kill-after=40s 35s ./mgmt run --yaml t6.yaml --no-watch --tmp-prefix &
pid=$! pid=$!
sleep 1s # let it converge sleep 1s # let it converge
test -e /tmp/mgmt/f1 test -e /tmp/mgmt/f1