]> source.dussan.org Git - jgit.git/commitdiff
Increase bazel timeout for long running tests 48/143648/2
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 10 Jun 2019 21:35:20 +0000 (23:35 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 10 Jun 2019 21:40:03 +0000 (23:40 +0200)
EolRepositoryTest and GcCommitSelectionTest timed out frequently when
running unit tests using bazel with the default timeout "moderate"
(300s). Increase timeout of these tests to "long" (900s).

Change-Id: I43588cf950f55b50f868d9fe9c66d22bd428a54c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tests.bzl

index 3665c2499139db27be4ee23292ce549e68943f13..d639a5bea14fd65e63fc1a41f8522bfd51f78507 100644 (file)
@@ -7,6 +7,7 @@ def tests(tests):
     for src in tests:
         name = src[len("tst/"):len(src) - len(".java")].replace("/", "_")
         labels = []
+        timeout = "moderate"
         if name.startswith("org_eclipse_jgit_"):
             l = name[len("org.eclipse.jgit_"):]
             if l.startswith("internal_storage_"):
@@ -60,6 +61,8 @@ def tests(tests):
         heap_size = "-Xmx256m"
         if src.endswith("HugeCommitMessageTest.java"):
             heap_size = "-Xmx512m"
+        if src.endswith("EolRepositoryTest.java") or src.endswith("GcCommitSelectionTest.java"):
+            timeout = "long"
 
         junit_tests(
             name = name,
@@ -77,4 +80,5 @@ def tests(tests):
             ],
             flaky = flaky,
             jvm_flags = [heap_size, "-Dfile.encoding=UTF-8"],
+            timeout = timeout,
         )