diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2019-06-10 23:35:20 +0200 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2019-07-16 12:11:22 +0900 |
commit | 0966731cad37fab239d458735c14be012cc70958 (patch) | |
tree | a8965e6c10e887c3cffcb48d461695aa192ec595 | |
parent | bbef67e8d02e9baff1d23f98e7252ebba1221b84 (diff) | |
download | jgit-0966731cad37fab239d458735c14be012cc70958.tar.gz jgit-0966731cad37fab239d458735c14be012cc70958.zip |
Increase bazel timeout for long running tests
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>
-rw-r--r-- | org.eclipse.jgit.test/tests.bzl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tests.bzl b/org.eclipse.jgit.test/tests.bzl index 7ff90d4846..345da81103 100644 --- a/org.eclipse.jgit.test/tests.bzl +++ b/org.eclipse.jgit.test/tests.bzl @@ -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_"): package = name[len("org.eclipse.jgit_"):] if package.startswith("internal_storage_"): @@ -51,6 +52,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, @@ -68,4 +71,5 @@ def tests(tests): ], flaky = flaky, jvm_flags = [heap_size, "-Dfile.encoding=UTF-8"], + timeout = timeout, ) |