This is an automated email from the ASF dual-hosted git repository.

dcapwell pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git


The following commit(s) were added to refs/heads/trunk by this push:
     new bed79d2c Ninja for CASSANDRA-18874: When using Elle make sure to set 
-Djava.awt.headless=true so rhizome does not try to spin up a GUI.  Make the 
build timeout after 20m as a successful build takes around 10m (the default 
timeout)
bed79d2c is described below

commit bed79d2c4a1564857c8ac53b66db15d65e5a3b5f
Author: David Capwell <[email protected]>
AuthorDate: Wed Nov 8 15:05:51 2023 -0800

    Ninja for CASSANDRA-18874: When using Elle make sure to set 
-Djava.awt.headless=true so rhizome does not try to spin up a GUI.  Make the 
build timeout after 20m as a successful build takes around 10m (the default 
timeout)
---
 .circleci/config.yml                                      | 7 +++++--
 accord-core/src/test/java/accord/verify/ElleVerifier.java | 3 +++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 2f59771f..c78356f0 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -80,8 +80,11 @@ jobs:
             - ~/.gradle
           key: v1-dependencies-{{ checksum "build.gradle" }}-{{ checksum 
"accord-core/build.gradle" }}-{{ checksum "accord-maelstrom/build.gradle" }}-{{ 
checksum "gradle/wrapper/gradle-wrapper.properties" }}
 
-      # run tests!
-      - run: ./gradlew check
+      - run:
+          name: Run Tests
+          command: ./gradlew check
+          no_output_timeout: 20m
+
       - run:
           name: Save Test Results
           command: |
diff --git a/accord-core/src/test/java/accord/verify/ElleVerifier.java 
b/accord-core/src/test/java/accord/verify/ElleVerifier.java
index c4b228ec..a336ae58 100644
--- a/accord-core/src/test/java/accord/verify/ElleVerifier.java
+++ b/accord-core/src/test/java/accord/verify/ElleVerifier.java
@@ -281,6 +281,9 @@ public class ElleVerifier implements Verifier
     {
         static
         {
+            // Needed else elle loads rhizome which then would call 
java.awt.Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() which fails in CI
+            System.setProperty("java.awt.headless", "true");
+
             IFn require = Clojure.var("clojure.core", "require");
             require.invoke(Clojure.read("elle.list-append"));
             require.invoke(Clojure.read("jepsen.history"));


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to