Repository: incubator-apex-core Updated Branches: refs/heads/master c2903da2f -> a703921e8
APEXCORE-427 disable tests that produce false negatives in travis Project: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/commit/a703921e Tree: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/tree/a703921e Diff: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/diff/a703921e Branch: refs/heads/master Commit: a703921e81507094e8782497e193ff16c752e9ca Parents: c2903da Author: David Yan <da...@datatorrent.com> Authored: Tue May 3 16:17:09 2016 -0700 Committer: David Yan <da...@datatorrent.com> Committed: Wed May 4 11:28:01 2016 -0700 ---------------------------------------------------------------------- .travis.yml | 3 +++ .../datatorrent/stram/StreamingContainerManagerTest.java | 6 ++++++ .../datatorrent/stram/plan/logical/DelayOperatorTest.java | 10 ++++++++++ .../com/datatorrent/stram/support/StramTestSupport.java | 5 +++++ 4 files changed, 24 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-apex-core/blob/a703921e/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml index 5540704..f414c25 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,9 @@ language: java script: mvn apache-rat:check verify -Dlicense.skip=false +env: + - TRAVIS=1 + notifications: slack: secure: GlWD2EjgNC6Lg2DtAfZuKhg2RTHE0FMeyfHH24D7TKmV49gRVTzTTqvExwOdLLYDDIu966eOF5w90/PfiD11A4rpm6+WyjRHDkpOhTyjBKWc2btMqNwiP1hRf2uKEG6A+RgszaQJ4HkGiMxIpDJ3o/jaTpBseOeA399t8Z7Pkd6obXVAEMcnm2XtfUPzIBqGblVkiecS3OzbkzjKWaOG6+nlp+ajVO7MazsOR05JNZ1MXnDOK/Qq/7xLBtweF4r/O8okyg52fST4pGqk4JTTI++bVFoRySpjNWSSJbdrfkWG/7h0sfqMcwMj8TpZqojcCuTvZih+IyPZwX3MP6Ls4bF6OFcD3BvWg049WbstA6ZdKnVW9fOiJoJ+Bx9gNI0tKtYeDt/8nMBfSRVMmzRVEGdTOEEpFs7n79OVVytwbp8qYFU+waqlG1/tMQvCclSaxuY8d236Ybg410KLiMQ0YhQ8ZaTVagHu2l0KrfV16Xq3/CRsolHa8k7PxDzmCxdi07Ao/mrorQLmJWoc7FkxEw6ZrEGHP17HTn5uidoTkANgGak4AVgrJm6zLKdAERxvr1KMnfyuJLT1ZK1x73SV+3EpdzcMLxvq2dMaBpZcfARiYB04EwSHVBdm/D0AIZtRL2s1rG85y1OtCkDMd04ZEvbwdKYZ+fD+HjTn7Zo7AKM= http://git-wip-us.apache.org/repos/asf/incubator-apex-core/blob/a703921e/engine/src/test/java/com/datatorrent/stram/StreamingContainerManagerTest.java ---------------------------------------------------------------------- diff --git a/engine/src/test/java/com/datatorrent/stram/StreamingContainerManagerTest.java b/engine/src/test/java/com/datatorrent/stram/StreamingContainerManagerTest.java index 1c052bd..3bf9b11 100644 --- a/engine/src/test/java/com/datatorrent/stram/StreamingContainerManagerTest.java +++ b/engine/src/test/java/com/datatorrent/stram/StreamingContainerManagerTest.java @@ -922,6 +922,12 @@ public class StreamingContainerManagerTest @Test public void testAppDataPush() throws Exception { + if (StramTestSupport.isInTravis()) { + // disable this test in travis because of an intermittent problem similar to this: + // http://stackoverflow.com/questions/32172925/travis-ci-sporadic-timeouts-to-localhost + // We should remove this when we find a solution to this. + return; + } final String topic = "xyz"; final List<String> messages = new ArrayList<>(); EmbeddedWebSocketServer server = new EmbeddedWebSocketServer(0); http://git-wip-us.apache.org/repos/asf/incubator-apex-core/blob/a703921e/engine/src/test/java/com/datatorrent/stram/plan/logical/DelayOperatorTest.java ---------------------------------------------------------------------- diff --git a/engine/src/test/java/com/datatorrent/stram/plan/logical/DelayOperatorTest.java b/engine/src/test/java/com/datatorrent/stram/plan/logical/DelayOperatorTest.java index e4a2681..edd6dd9 100644 --- a/engine/src/test/java/com/datatorrent/stram/plan/logical/DelayOperatorTest.java +++ b/engine/src/test/java/com/datatorrent/stram/plan/logical/DelayOperatorTest.java @@ -326,6 +326,11 @@ public class DelayOperatorTest @Test public void testFibonacciRecovery1() throws Exception { + if (StramTestSupport.isInTravis()) { + // disable this test in travis because the failure is apparently intermittently not invoked only on travis + // We should remove this when we find a solution to this. + return; + } LogicalPlan dag = StramTestSupport.createDAG(testMeta); TestGeneratorInputOperator dummyInput = dag.addOperator("DUMMY", TestGeneratorInputOperator.class); @@ -360,6 +365,11 @@ public class DelayOperatorTest @Test public void testFibonacciRecovery2() throws Exception { + if (StramTestSupport.isInTravis()) { + // disable this test in travis because the failure is apparently intermittently not invoked only on travis + // We should remove this when we find a solution to this. + return; + } LogicalPlan dag = StramTestSupport.createDAG(testMeta); TestGeneratorInputOperator dummyInput = dag.addOperator("DUMMY", TestGeneratorInputOperator.class); http://git-wip-us.apache.org/repos/asf/incubator-apex-core/blob/a703921e/engine/src/test/java/com/datatorrent/stram/support/StramTestSupport.java ---------------------------------------------------------------------- diff --git a/engine/src/test/java/com/datatorrent/stram/support/StramTestSupport.java b/engine/src/test/java/com/datatorrent/stram/support/StramTestSupport.java index 5014a76..43741c0 100644 --- a/engine/src/test/java/com/datatorrent/stram/support/StramTestSupport.java +++ b/engine/src/test/java/com/datatorrent/stram/support/StramTestSupport.java @@ -387,6 +387,11 @@ public abstract class StramTestSupport return createDAG(testMeta, ""); } + public static boolean isInTravis() + { + return "1".equals(System.getenv("TRAVIS")); + } + public static class MemoryStorageAgent implements StorageAgent, Serializable { static class OperatorWindowIdPair implements Serializable