[igt-dev] [PATCH i-g-t] runner/tests: Increase the timeout by 10x

Arkadiusz Hiler arkadiusz.hiler at intel.com
Wed Dec 11 09:52:54 UTC 2019


The default timeout is 30s.

Recently we see more `ninja test` invocation failing due to runner tests
timing out. This happens for slower environments, i.e. running the
cross-compiled binaries through qemu.

Freedesktop CI/CD runners are shared machines with a lot of cores and
they accept many parallel jobs coming from multiple projects. There
are no resources guarantees, which leads to the sporadic slowness.

Runner tests are taking 10x longer than the next slowest test invoked by
`ninja test` on a typical run. They also seem more prone to resource
thrashing by other processes on the machine, probably due to heavier
reliance on disk IO.

Let's just give them proportional leeway when it comes to timing out.

Cc: Petri Latvala <petri.latvala at intel.com>
Issue: https://gitlab.freedesktop.org/freedesktop/freedesktop/issues/197
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
---
 runner/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/runner/meson.build b/runner/meson.build
index 6d8d3ab2..404b8e04 100644
--- a/runner/meson.build
+++ b/runner/meson.build
@@ -60,14 +60,14 @@ if jsonc.found()
 				 link_with : runnerlib,
 				 install : false,
 				 dependencies : igt_deps)
-	test('runner', runner_test)
+	test('runner', runner_test, timeout : 300)
 
 	runner_json_test = executable('runner_json_test', runner_json_test_sources,
 				      c_args : '-DJSON_TESTS_DIRECTORY="@0@"'.format(join_paths(meson.current_source_dir(), 'json_tests_data')),
 				      link_with : runnerlib,
 				      install : false,
 				      dependencies : [igt_deps, jsonc])
-	test('runner_json', runner_json_test)
+	test('runner_json', runner_json_test, timeout : 300)
 
 	build_info += 'Build test runner: true'
 	if liboping.found()
-- 
2.23.0



More information about the igt-dev mailing list