Merge ~ines-almeida/launchpad:increase-signing-tests-timeout into launchpad:master

Proposed by Ines Almeida
Status: Merged
Approved by: Ines Almeida
Approved revision: 321742e6384e9553830902ff2d1c5d0e0642d80a
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~ines-almeida/launchpad:increase-signing-tests-timeout
Merge into: launchpad:master
Diff against target: 16 lines (+4/-1)
1 file modified
lib/lp/archivepublisher/tests/test_sync_signingkeys.py (+4/-1)
Reviewer Review Type Date Requested Status
Jürgen Gmach Approve
Colin Watson (community) Approve
Review via email: mp+452093@code.launchpad.net

Commit message

Increase timeout of signing tests from 30 to 45 seconds

Some tests are consistently failing during builds with a timeout error, even though they don't seem stuck - they just might take a few seconds longer. This will help make the builder more stable.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve
Revision history for this message
Jürgen Gmach (jugmac00) :
review: Approve
321742e... by Ines Almeida

Add comment about timeout value in sign keys tests

Revision history for this message
Ines Almeida (ines-almeida) :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/lp/archivepublisher/tests/test_sync_signingkeys.py b/lib/lp/archivepublisher/tests/test_sync_signingkeys.py
2index 3c73754..7e8a1bb 100644
3--- a/lib/lp/archivepublisher/tests/test_sync_signingkeys.py
4+++ b/lib/lp/archivepublisher/tests/test_sync_signingkeys.py
5@@ -53,7 +53,10 @@ from lp.testing.script import run_script
6
7 class TestSyncSigningKeysScript(TestCaseWithFactory):
8 layer = ZopelessDatabaseLayer
9- run_tests_with = AsynchronousDeferredRunTest.make_factory(timeout=30)
10+ # A timeout of 30 seconds is slightly too short and can lead to
11+ # non-relevant test failures. 45 seconds is a value estimated from trial
12+ # and error.
13+ run_tests_with = AsynchronousDeferredRunTest.make_factory(timeout=45)
14
15 def setUp(self):
16 super().setUp()

Subscribers

People subscribed via source and target branches

to status/vote changes: