Skip to content

Commit 38672e0

Browse files
committed
Slow down Tasty by limiting it to -j1
Fixes flakey CI builds. Turns out it was trying to run every single test in parallel at once, which is why when #247 added two extra tests it was just enough to push it over the limit and cause things to fail
1 parent 3dbfa68 commit 38672e0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.circleci/config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ defaults: &defaults
4242

4343
- run:
4444
name: Build Testsuite without running it
45-
command: stack -j 2 --stack-yaml=${STACK_FILE} build --test --no-run-tests
45+
command: stack --stack-yaml=${STACK_FILE} build --test --no-run-tests
4646
no_output_timeout: 30m
4747

4848
- store_artifacts:
@@ -65,8 +65,11 @@ defaults: &defaults
6565

6666
- run:
6767
name: Test haskell-language-server
68-
# Tests MUST run with -j1, since multiple ghc-mod sessions are not allowed
69-
command: stack -j 1 --stack-yaml=${STACK_FILE} test haskell-language-server --dump-logs
68+
# Tasty by default will run all the tests in parallel. Which should
69+
# work ok, but given that these CircleCI runners aren't the beefiest
70+
# machine can cause some flakiness. So pass -j1 to Tasty (NOT Stack) to
71+
# tell it to go slow and steady.
72+
command: stack --stack-yaml=${STACK_FILE} test haskell-language-server --dump-logs --test-arguments="-j1"
7073
no_output_timeout: 120m
7174

7275
- store_test_results:

0 commit comments

Comments
 (0)