git.iko.soy/distributed-process
on master help sign in
Don't run some tests that fail occasionally in CI.
6419364Facundo Domínguez
.travis.yml+11−5
@@ -21,12 +21,18 @@ before_install:
21 # workaround for https://ghc.haskell.org/trac/ghc/ticket/9221
21 # workaround for https://ghc.haskell.org/trac/ghc/ticket/9221
22 # taken from https://github.com/hvr/multi-ghc-travis/blob/0fa68f78c2b1b059f904c9abc85510a3bb4f57e2/README.md
22 # taken from https://github.com/hvr/multi-ghc-travis/blob/0fa68f78c2b1b059f904c9abc85510a3bb4f57e2/README.md
23 - sed -i 's/^jobs:/-- jobs:/' $HOME/.cabal/config
23 - sed -i 's/^jobs:/-- jobs:/' $HOME/.cabal/config
24− - cabal sandbox init
25− - cabal sandbox add-source .
26− - cabal sandbox add-source distributed-process-tests/
27
24
28install:
25install:
29− - cabal install --only-dependencies distributed-process-tests/
26+ - cabal install --jobs=2 --enable-tests --only-dependencies . distributed-process-tests/
30
27
31script:
28script:
29+ - cabal install --jobs=2
32− - cabal install --run-tests distributed-process-tests/
30+ - cd distributed-process-tests/
31+ - cabal configure --enable-tests
32+ - cabal build --jobs=2
33+ # skip intermittent tests Reconnect and SpawnReconnect
34+ - dist/build/TestCHInMemory/TestCHInMemory --plain -t '!Flaky'
35+ - dist/build/TestClosure/TestClosure --plain -t '!SpawnReconnect'
36+ - dist/build/TestStats/TestStats --plain
37+ - dist/build/TestMx/TestMx --plain
38+ - dist/build/TestTracing/TestTracing --plain
distributed-process-tests/src/Control/Distributed/Process/Tests/CH.hs+9−5
@@ -1513,9 +1513,7 @@ tests testtrans = return [
1513 , testCase "Timeout0" (testTimeout0 testtrans)
1513 , testCase "Timeout0" (testTimeout0 testtrans)
1514 , testCase "SendToTerminated" (testSendToTerminated testtrans)
1514 , testCase "SendToTerminated" (testSendToTerminated testtrans)
1515 , testCase "TypedChannnels" (testTypedChannels testtrans)
1515 , testCase "TypedChannnels" (testTypedChannels testtrans)
1516− , testCase "MergeChannels" (testMergeChannels testtrans)
1517 , testCase "Terminate" (testTerminate testtrans)
1516 , testCase "Terminate" (testTerminate testtrans)
1518− , testCase "Registry" (testRegistry testtrans)
1519 , testCase "RegistryRemoteProcess" (testRegistryRemoteProcess testtrans)
1517 , testCase "RegistryRemoteProcess" (testRegistryRemoteProcess testtrans)
1520 , testCase "RemoteRegistry" (testRemoteRegistry testtrans)
1518 , testCase "RemoteRegistry" (testRemoteRegistry testtrans)
1521 , testCase "RemoteRegistryRemoteProcess" (testRemoteRegistryRemoteProcess testtrans)
1519 , testCase "RemoteRegistryRemoteProcess" (testRemoteRegistryRemoteProcess testtrans)
@@ -1556,8 +1554,7 @@ tests testtrans = return [
1556 -- The "missing" combinations in the list below don't make much sense, as
1554 -- The "missing" combinations in the list below don't make much sense, as
1557 -- we cannot guarantee that the monitor reply or link exception will not
1555 -- we cannot guarantee that the monitor reply or link exception will not
1558 -- happen before the unmonitor or unlink
1556 -- happen before the unmonitor or unlink
1559− testCase "MonitorUnreachable" (testMonitorUnreachable testtrans True False)
1560− , testCase "MonitorNormalTermination" (testMonitorNormalTermination testtrans True False)
1557+ testCase "MonitorNormalTermination" (testMonitorNormalTermination testtrans True False)
1561 , testCase "MonitorAbnormalTermination" (testMonitorAbnormalTermination testtrans True False)
1558 , testCase "MonitorAbnormalTermination" (testMonitorAbnormalTermination testtrans True False)
1562 , testCase "MonitorLocalDeadProcess" (testMonitorLocalDeadProcess testtrans True False)
1559 , testCase "MonitorLocalDeadProcess" (testMonitorLocalDeadProcess testtrans True False)
1563 , testCase "MonitorRemoteDeadProcess" (testMonitorRemoteDeadProcess testtrans True False)
1560 , testCase "MonitorRemoteDeadProcess" (testMonitorRemoteDeadProcess testtrans True False)
@@ -1579,7 +1576,14 @@ tests testtrans = return [
1579 , testCase "MonitorLiveNode" (testMonitorLiveNode testtrans)
1576 , testCase "MonitorLiveNode" (testMonitorLiveNode testtrans)
1580 , testCase "MonitorChannel" (testMonitorChannel testtrans)
1577 , testCase "MonitorChannel" (testMonitorChannel testtrans)
1581 -- Reconnect
1578 -- Reconnect
1579+ ]
1580+
1581+ -- Tests that fail occasionally and should be revised
1582+ , testGroup "Flaky" [
1582− , testCase "Reconnect" (testReconnect testtrans)
1583+ testCase "Reconnect" (testReconnect testtrans)
1584+ , testCase "Registry" (testRegistry testtrans)
1585+ , testCase "MergeChannels" (testMergeChannels testtrans)
1586+ , testCase "MonitorUnreachable" (testMonitorUnreachable testtrans True False)
1583 ]
1587 ]
1584 ]
1588 ]
1585
1589