This is an automated email from the ASF dual-hosted git repository.
hsaputra pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/master by this push:
new 07158da Unit test run with gradle failing
07158da is described below
commit 07158dabec8cc556f71d02789d989660c3804bbc
Author: Prashant Kumar <[email protected]>
AuthorDate: Fri Aug 27 10:09:41 2021 -0700
Unit test run with gradle failing
Descriptions of the changes in this PR:
### Motivation
Benchmark tests were failing due to
- Missing runtime test dependency of MetricsCore
- Lack of enough JVM memory.
### Changes
- Include metricsCore as testDependency
- Increase heap size of 4 GB.
Master Issue: #2640
Reviewers: Henry Saputra <[email protected]>, Enrico Olivelli
<[email protected]>
This closes #2777 from pkumar-singh/build_with_gradle
---
bookkeeper-benchmark/build.gradle | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/bookkeeper-benchmark/build.gradle
b/bookkeeper-benchmark/build.gradle
index 8317841..00e1cf7 100644
--- a/bookkeeper-benchmark/build.gradle
+++ b/bookkeeper-benchmark/build.gradle
@@ -51,12 +51,20 @@ dependencies {
testImplementation depLibs.hamcrest
testImplementation depLibs.snappy
testImplementation depLibs.zookeeperTest
-
-
+ testImplementation depLibs. metricsCore
annotationProcessor depLibs.lombok
testAnnotationProcessor depLibs.lombok
}
+test {
+ maxHeapSize = '4G'
+ forkEvery = 1
+ jvmArgs("-Djunit.timeout.test=600000",
+ "-Djunit.max.retry=3",
+ "-Djava.net.preferIPv4Stack=true",
+ "-Dio.netty.leakDetection.level=paranoid")
+}
+
jar {
archiveBaseName = 'bookkeeper-benchmark'
}