Skip to content

Commit 2a774a7

Browse files
committed
Add comment and fix formatting.
1 parent 242a8a1 commit 2a774a7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

rules_haskell_tests/tests/RunTests.hs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ main = hspec $ around_ printStatsHook $ do
143143
outputSatisfy p (bazel ["run", "//tests/repl-name-conflicts:lib@repl", "--", "-ignore-dot-ghci", "-e", "stdin"])
144144

145145
it "Repl works with remote_download_toplevel" $ do
146+
-- This test has a tendency to fail with Exit Code: ExitFailure (-9) on the GitHub macos
147+
-- runners. To give it every chance to succeed, we shutdown Bazel to provide as much
148+
-- memory as possible.
146149
shutdownBazel "."
147150
let p (stdout, stderr) = not $ any ("error" `isInfixOf`) [stdout, stderr]
148151
withSystemTempDirectory "bazel_disk_cache" $ \tmp_disk_cache -> do
@@ -209,12 +212,8 @@ printStats msg = do
209212
topExists <- doesFileExist topPath
210213
dfExists <- doesFileExist dfPath
211214
if topExists || dfExists then putStrLn msg else pure()
212-
if topExists
213-
then _printMemory
214-
else pure()
215-
if dfExists
216-
then _printDiskInfo
217-
else pure()
215+
if topExists then _printMemory else pure()
216+
if dfExists then _printDiskInfo else pure()
218217

219218
-- | Print information about the current memory state to debug intermittent failures
220219
-- Related to https://github.com/tweag/rules_haskell/issues/2089

0 commit comments

Comments
 (0)