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>
for src in tests:
name = src[len("tst/"):len(src) - len(".java")].replace("/", "_")
labels = []
+ timeout = "moderate"
if name.startswith("org_eclipse_jgit_"):
package = name[len("org.eclipse.jgit_"):]
if package.startswith("internal_storage_"):
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,
],
flaky = flaky,
jvm_flags = [heap_size, "-Dfile.encoding=UTF-8"],
+ timeout = timeout,
)