Browse Source

Increase timeout for zuul to settle in tests

We're seeing a lot of occurrences where a test case failed with the
message 'Timeout waiting for zuul to settle' withoutany obvious
reason. After digging into one of these logs more deeply it gets
aborted just while doing regular git stuff during job
preparation. Thus it looks like the default timeout of 30 seconds is
just not enough on some slower nodes.

[1] Log snippet
2019-02-04 06:39:57,848 zuul.AnsibleJob                  DEBUG    [build: 19a6f8c3d3] Create reference refs/heads/master at 1b86034fbd in /tmp/tmpljq8cb9b
/zuul-test/19a6f8c3d35e49c29f89e83b8cb1204a/work/src/review.example.com/org/project
2019-02-04 06:39:57,859 git.cmd                          DEBUG    Popen(['git', 'cat-file', '--batch-check'], cwd=/tmp/tmpljq8cb9b/zuul-test/19a6f8c3d35e49c29f89e83b8cb1204a/work/src/review.example.com/org/
project, universal_newlines=False, shell=None)
2019-02-04 06:39:57,868 zuul.test                        ERROR    Timeout waiting for Zuul to settle
2019-02-04 06:39:57,869 zuul.test                        ERROR    Queue status:
2019-02-04 06:39:57,869 zuul.test                        ERROR      <queue.Queue object at 0x7fea0c2426d8>: True
2019-02-04 06:39:57,869 zuul.test                        ERROR      <queue.Queue object at 0x7fea0c242278>: True
2019-02-04 06:39:57,869 zuul.test                        ERROR      <zuul.lib.queue.MergedQueue object at 0x7fea0c242630>: True
2019-02-04 06:39:57,869 zuul.test                        ERROR      <queue.Queue object at 0x7fea0c095eb8>: True
2019-02-04 06:39:57,869 zuul.test                        DEBUG    <Build 19a6f8c3d3 of project-test1 voting:True on <Worker Unknown>> has not reported start
2019-02-04 06:39:57,869 zuul.test                        ERROR    All builds waiting: False
2019-02-04 06:39:57,870 zuul.test                        ERROR    All builds reported: True
2019-02-04 06:39:57,870 zuul.test                        ERROR    All requests completed: True
2019-02-04 06:39:57,870 zuul.test                        ERROR    Merge client jobs: set()

Change-Id: I48b0e452c894e0767625465daa749837bb1bd8fd
tags/3.6.0
Tobias Henkel 5 months ago
parent
commit
f08d66f81f
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tests/base.py

+ 1
- 1
tests/base.py View File

@@ -2187,7 +2187,7 @@ class PostgresqlSchemaFixture(fixtures.Fixture):
2187 2187
 
2188 2188
 class BaseTestCase(testtools.TestCase):
2189 2189
     log = logging.getLogger("zuul.test")
2190
-    wait_timeout = 30
2190
+    wait_timeout = 60
2191 2191
 
2192 2192
     def attachLogs(self, *args):
2193 2193
         def reader():

Loading…
Cancel
Save