From 6c137771d938d2ae9292360a58a0e1ad3776a170 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 14 Jul 2020 17:13:35 +0200 Subject: [PATCH] ci travis: tweak the timeouts a bit In the past week the Travis runs have been consistently taking much more time than before, usually around 20 minutes, leading to our CI timing out. https://travis-ci.com/github/CZ-NIC/knot-resolver/builds --- .gitlab-ci.yml | 4 +++- ci/travis.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1eb35f350..ce8c28aa9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -161,7 +161,9 @@ build:darwin: - master@knot/knot-resolver variables: - $SKIP_CI == "1" - start_in: 3 minutes # give the build in Travis CI time to finish + start_in: 10 minutes # give the build in Travis CI time to finish + # ^^ Travis takes around 20m recently and the CI script waits for 15m, + # and it gets ran a bit later due to the build phase. script: - ci/travis.py ${CI_COMMIT_REF_NAME} diff --git a/ci/travis.py b/ci/travis.py index 1fc7e1feb..0c6858249 100755 --- a/ci/travis.py +++ b/ci/travis.py @@ -9,8 +9,8 @@ import requests BRANCH_API_ENDPOINT = "https://api.travis-ci.com/repos/CZ-NIC/knot-resolver/branches/{branch}" JOB_URL = "https://travis-ci.com/CZ-NIC/knot-resolver/jobs/{job_id}" -TIMEOUT = 600 # 10 mins max -POLL_DELAY = 15 +TIMEOUT = 15*60 # 15 mins max +POLL_DELAY = 20 job_id = None -- 2.47.2