Commit 3f4b60cc authored by godog's avatar godog

enforce test timeout in CI

In a perfect world gitlab-runner would clean up itself, in practice e.g.
when cancelling jobs the shell executor keeps going:
https://gitlab.com/gitlab-org/gitlab-runner/issues/3376
parent 444e18d8
Pipeline #2896 passed with stage
in 4 minutes and 3 seconds
......@@ -4,14 +4,14 @@ stages:
run_base_test:
stage: test
script: "cd test && ./run-test.sh --apt-proxy $APT_PROXY_ADDR base"
script: "cd test && /usr/bin/timeout 3h ./run-test.sh --apt-proxy $APT_PROXY_ADDR base"
tags: [ai3]
except:
- schedules
run_full_test:
stage: test
script: "cd test && ./run-test.sh --wait-time 300 --apt-proxy $APT_PROXY_ADDR full"
script: "cd test && /usr/bin/timeout 3h ./run-test.sh --wait-time 300 --apt-proxy $APT_PROXY_ADDR full"
tags: [ai3]
only:
- schedules
......
......@@ -118,10 +118,10 @@ while [ $# -gt 0 ]; do
usage
exit 0
;;
--wait-time)
shift
wait_time="$1"
;;
--wait-time)
shift
wait_time="$1"
;;
-*)
echo "Unknown option '$1'" >&2
usage >&2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment