You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by cb...@apache.org on 2022/12/08 09:09:58 UTC
[pulsar-client-reactive] branch main updated: Pass -XX:TieredStopAtLevel=1 for tests to reduce flakiness (#102)
This is an automated email from the ASF dual-hosted git repository.
cbornet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-client-reactive.git
The following commit(s) were added to refs/heads/main by this push:
new 94fe8a3 Pass -XX:TieredStopAtLevel=1 for tests to reduce flakiness (#102)
94fe8a3 is described below
commit 94fe8a38c65fd4597ca81c3898ac3948c4efe5b3
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Thu Dec 8 11:09:53 2022 +0200
Pass -XX:TieredStopAtLevel=1 for tests to reduce flakiness (#102)
---
.../main/groovy/pulsar-client-reactive.test-conventions.gradle | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/buildSrc/src/main/groovy/pulsar-client-reactive.test-conventions.gradle b/buildSrc/src/main/groovy/pulsar-client-reactive.test-conventions.gradle
index 91c064e..37cbc80 100644
--- a/buildSrc/src/main/groovy/pulsar-client-reactive.test-conventions.gradle
+++ b/buildSrc/src/main/groovy/pulsar-client-reactive.test-conventions.gradle
@@ -49,4 +49,11 @@ tasks.register('integrationTest', Test) {
shouldRunAfter test
}
-check.dependsOn integrationTest
\ No newline at end of file
+check.dependsOn integrationTest
+
+
+tasks.withType(Test) {
+ // reduces CPU usage in tests when JIT compiler doesn't spend time compiling code
+ // this could help reduce flakiness in CI where there's less CPU resources available
+ jvmArgs '-XX:TieredStopAtLevel=1'
+}
\ No newline at end of file