git.iko.soy/distributed-process
on master help sign in
Don't run some tests that fail occasionally in CI.

The tests Reconnect, Registry, MergeChannels, MonitorUnreachable and SpawnReconnect are failing occasionally, introducing some false positives in CI. We disable them until devoting some effor to improve them.

commit6419364d8ef4b32960ca71d1fed54860e1cca39d authorFacundo Domínguez <facundo.dominguez@tweag.io> dateTue 20 Oct 2015, 17:43 (11 years ago) parenteb32937
2 files changed+20−10
.travis.yml+11−5 distributed-process-tests/src/Control/Distributed/Process/Tests/CH.hs+9−5
.travis.yml+11−5
@@ -21,12 +21,18 @@ before_install:
2121 # workaround for https://ghc.haskell.org/trac/ghc/ticket/9221
2222 # taken from https://github.com/hvr/multi-ghc-travis/blob/0fa68f78c2b1b059f904c9abc85510a3bb4f57e2/README.md
2323 - 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/
2724
2825install:
29− - cabal install --only-dependencies distributed-process-tests/
26+ - cabal install --jobs=2 --enable-tests --only-dependencies . distributed-process-tests/
3027
3128script:
32− - cabal install --run-tests distributed-process-tests/
29+ - cabal install --jobs=2
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 [
15131513 , testCase "Timeout0" (testTimeout0 testtrans)
15141514 , testCase "SendToTerminated" (testSendToTerminated testtrans)
15151515 , testCase "TypedChannnels" (testTypedChannels testtrans)
1516− , testCase "MergeChannels" (testMergeChannels testtrans)
15171516 , testCase "Terminate" (testTerminate testtrans)
1518− , testCase "Registry" (testRegistry testtrans)
15191517 , testCase "RegistryRemoteProcess" (testRegistryRemoteProcess testtrans)
15201518 , testCase "RemoteRegistry" (testRemoteRegistry testtrans)
15211519 , testCase "RemoteRegistryRemoteProcess" (testRemoteRegistryRemoteProcess testtrans)
@@ -1556,8 +1554,7 @@ tests testtrans = return [
15561554 -- The "missing" combinations in the list below don't make much sense, as
15571555 -- we cannot guarantee that the monitor reply or link exception will not
15581556 -- 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)
15611558 , testCase "MonitorAbnormalTermination" (testMonitorAbnormalTermination testtrans True False)
15621559 , testCase "MonitorLocalDeadProcess" (testMonitorLocalDeadProcess testtrans True False)
15631560 , testCase "MonitorRemoteDeadProcess" (testMonitorRemoteDeadProcess testtrans True False)
@@ -1579,7 +1576,14 @@ tests testtrans = return [
15791576 , testCase "MonitorLiveNode" (testMonitorLiveNode testtrans)
15801577 , testCase "MonitorChannel" (testMonitorChannel testtrans)
15811578 -- Reconnect
1582− , testCase "Reconnect" (testReconnect testtrans)
1579+ ]
1580+
1581+ -- Tests that fail occasionally and should be revised
1582+ , testGroup "Flaky" [
1583+ testCase "Reconnect" (testReconnect testtrans)
1584+ , testCase "Registry" (testRegistry testtrans)
1585+ , testCase "MergeChannels" (testMergeChannels testtrans)
1586+ , testCase "MonitorUnreachable" (testMonitorUnreachable testtrans True False)
15831587 ]
15841588 ]
15851589