From f84defbf519ec855d1c2beacef6c8c341c75e27d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Fri, 24 Apr 2020 09:10:05 +0200 Subject: setup.cfg: Increase pytest default timeout CI runners sometimes need more time under load. --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 8b3d60388..7d3599e14 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,7 +8,7 @@ tag_regex = *.*.* parentdir_prefix = BuildStream- [tool:pytest] -addopts = --verbose --basetemp ./tmp --durations=20 --timeout=900 +addopts = --verbose --basetemp ./tmp --durations=20 --timeout=1800 norecursedirs = src tests/integration/project integration-cache tmp __pycache__ .eggs python_files = tests/*/*.py env = -- cgit v1.2.1 From 0024c4688d1633612626e4513951d71d5bd02bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Fri, 24 Apr 2020 09:05:51 +0200 Subject: tests/testutils/constants.py: Increase pexpect timeouts CI runners sometimes need more time under load. --- tests/testutils/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testutils/constants.py b/tests/testutils/constants.py index e14624143..e95d4428e 100644 --- a/tests/testutils/constants.py +++ b/tests/testutils/constants.py @@ -5,11 +5,11 @@ # # Use this for operations that are expected to finish within a short amount of # time. Like `bst init`, `bst show` on a small project. -PEXPECT_TIMEOUT_SHORT = 5 +PEXPECT_TIMEOUT_SHORT = 30 # Timeout for longer interactive operations (in seconds). # # Use this for operations that are expected to take longer amounts of time, # like `bst build` on a small project. -PEXPECT_TIMEOUT_LONG = 60 +PEXPECT_TIMEOUT_LONG = 300 -- cgit v1.2.1 From 350880fbb36a6f6bc4704a589309e1239a88fb7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Fri, 24 Apr 2020 09:11:43 +0200 Subject: tests/format/variables.py: Increase timeout for test_cyclic_variables CI runners sometimes need more time under load. --- tests/format/variables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/format/variables.py b/tests/format/variables.py index 11a34ee07..ecc1e2b12 100644 --- a/tests/format/variables.py +++ b/tests/format/variables.py @@ -61,7 +61,7 @@ def test_missing_variable(cli, datafiles, element): result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.UNRESOLVED_VARIABLE) -@pytest.mark.timeout(3, method="signal") +@pytest.mark.timeout(15, method="signal") @pytest.mark.datafiles(os.path.join(DATA_DIR, "cyclic_variables")) def test_cyclic_variables(cli, datafiles): print_warning("Performing cyclic test, if this test times out it will " + "exit the test sequence") -- cgit v1.2.1