]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci travis: tweak the timeouts a bit
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 14 Jul 2020 15:13:35 +0000 (17:13 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Wed, 15 Jul 2020 07:26:49 +0000 (09:26 +0200)
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
ci/travis.py

index 1eb35f350d7dc45976b88d9adabfa4e5c8429400..ce8c28aa971d2dccc1873601394123b3d5e342f3 100644 (file)
@@ -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}
 
index 1fc7e1febd3af0e5878e5ff54f3020ab23ca2d27..0c68582491a2e010fb8870953acf2cd968934d2f 100755 (executable)
@@ -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