You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2020/09/08 18:08:36 UTC

[tinkerpop] 01/01: Speed up spark tests a bit by ignoring gryo process tests

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

spmallette pushed a commit to branch travis-fix
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit d289e5fa360e49cf8975f45976e98c196b22776c
Author: Stephen Mallette <st...@amazon.com>
AuthorDate: Tue Sep 8 14:01:27 2020 -0400

    Speed up spark tests a bit by ignoring gryo process tests
    
    These gryo process tests are repeated and really focus on bringing serialization failures to light. Since we don't touch gryo so much anymore this tests feel a bit duplicative to run the entire battery of tests. Hopefully this will bring build test times down for travis to avoid timeouts that have been frequently occurring. CTR
---
 .travis.yml           | 14 +++++++-------
 spark-gremlin/pom.xml | 27 +++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 7 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 5295b48..a03dccb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -42,23 +42,23 @@ jobs:
     - stage: "tests"
       script: "mvn clean install -Dci --batch-mode -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
       name: "mvn clean install"
-    - script: "touch gremlin-dotnet/src/.glv && touch gremlin-dotnet/test/.glv && mvn clean install -q -DskipTests && mvn verify -pl :gremlin-dotnet,:gremlin-dotnet-tests -P gremlin-dotnet"
+    - script: "touch gremlin-dotnet/src/.glv && touch gremlin-dotnet/test/.glv && mvn clean install -q -DskipTests -Dci && mvn verify -pl :gremlin-dotnet,:gremlin-dotnet-tests -P gremlin-dotnet"
       name: ".net"
-    - script: "touch gremlin-python/.glv && mvn clean install -q -DskipTests && mvn verify -pl gremlin-python"
+    - script: "touch gremlin-python/.glv && mvn clean install -q -DskipTests -Dci && mvn verify -pl gremlin-python"
       name: "python"
-    - script: "mvn clean install -q -DskipTests && mvn verify -pl :gremlin-javascript"
+    - script: "mvn clean install -q -DskipTests -Dci && mvn verify -pl :gremlin-javascript"
       name: "javascript"
     - script:
-      - "mvn clean install -q -DskipTests"
+      - "mvn clean install -q -DskipTests -Dci"
       - "mvn verify -pl :gremlin-server -DskipTests -DskipIntegrationTests=false -DincludeNeo4j"
       name: "gremlin server"
     - script:
-        - "mvn clean install -q -DskipTests"
+        - "mvn clean install -q -DskipTests -Dci"
         - "mvn verify -pl :gremlin-console -DskipTests -DskipIntegrationTests=false"
       name: "gremlin console"
     - script:
-      - "mvn clean install -q -DskipTests"
-      - "travis_wait 60 mvn verify -pl :spark-gremlin -DskipTests -DskipIntegrationTests=false"
+      - "mvn clean install -q -DskipTests -Dci"
+      - "travis_wait 60 mvn verify -pl :spark-gremlin -DskipTests -DskipIntegrationTests=false -Dci"
       name: "spark"
     - script: "docker/build.sh"
       name: "docker"
diff --git a/spark-gremlin/pom.xml b/spark-gremlin/pom.xml
index d8f2847..b8dd58a 100644
--- a/spark-gremlin/pom.xml
+++ b/spark-gremlin/pom.xml
@@ -404,4 +404,31 @@
             </plugin>
         </plugins>
     </build>
+
+    <profiles>
+        <profile>
+            <!-- Continuous Integration - skips gryo process tests as we push the time limit of builds in Travis -->
+            <id>ci</id>
+            <activation>
+                <activeByDefault>false</activeByDefault>
+                <property>
+                    <name>ci</name>
+                </property>
+            </activation>
+
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-failsafe-plugin</artifactId>
+                        <configuration>
+                            <excludes>
+                                <exclude>SparkGryoSerializerGraphComputerProcessIntegrateTest.java</exclude>
+                            </excludes>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>