Skip to content

Commit ce96b4c

Browse files
committed
Separete test suites to fix --rerun
1 parent 9d82f77 commit ce96b4c

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

.circleci/config.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,21 @@ defaults: &defaults
6464
no_output_timeout: 120m
6565

6666
- run:
67-
name: Test haskell-language-server
67+
name: Test haskell-language-server func-test suite
6868
# Tasty by default will run all the tests in parallel. Which should
6969
# work ok, but given that these CircleCI runners aren't the beefiest
7070
# machine can cause some flakiness. So pass -j1 to Tasty (NOT Stack) to
7171
# tell it to go slow and steady.
72-
command: stack --stack-yaml=${STACK_FILE} test haskell-language-server --dump-logs --test-arguments="-j1 --rerun-update" || stack --stack-yaml=${STACK_FILE} test haskell-language-server --dump-logs --test-arguments="-j1 --rerun" || stack --stack-yaml=${STACK_FILE} test haskell-language-server --dump-logs --test-arguments="-j1 --rerun"
72+
command: stack --stack-yaml=${STACK_FILE} test haskell-language-server:func-test --dump-logs --test-arguments="-j1 --rerun-update" || stack --stack-yaml=${STACK_FILE} test haskell-language-server:func-test --dump-logs --test-arguments="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true stack --stack-yaml=${STACK_FILE} test haskell-language-server:func-test --dump-logs --test-arguments="-j1 --rerun"
7373
no_output_timeout: 120m
7474

75+
- run:
76+
name: Test haskell-language-server wrapper-test suite
77+
command: stack --stack-yaml=${STACK_FILE} test haskell-language-server:wrapper-test --dump-logs --test-arguments="-j1"
78+
no_output_timeout: 30m
79+
7580
- run:
7681
name: Test hls-tactics-plugin
77-
# Tasty by default will run all the tests in parallel. Which should
78-
# work ok, but given that these CircleCI runners aren't the beefiest
79-
# machine can cause some flakiness. So pass -j1 to Tasty (NOT Stack) to
80-
# tell it to go slow and steady.
8182
command: stack --stack-yaml=${STACK_FILE} test hls-tactics-plugin:test:tests --dump-logs --test-arguments="-j1"
8283
no_output_timeout: 30m
8384

.github/workflows/test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,23 @@ jobs:
5858
shell: bash
5959
# Retry it three times to workaround compiler segfaults in windows
6060
run: cabal build || cabal build || cabal build
61-
- name: Test
61+
62+
- name: Test func-test suite
6263
shell: bash
6364
env:
6465
HLS_TEST_EXE: hls
6566
HLS_WRAPPER_TEST_EXE: hls-wrapper
6667
# run the tests without parallelism, otherwise tasty will attempt to run
6768
# all functional test cases simultaneously which causes way too many hls
6869
# instances to be spun up for the poor github actions runner to handle
69-
run: cabal test --test-options="-j1 --rerun-update" || cabal test --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test --test-options="-j1 --rerun"
70+
run: cabal test func-test --test-options="-j1 --rerun-update" || cabal test func-test --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test func-test --test-options="-j1 --rerun"
7071

72+
- name: Test wrapper-test suite
73+
shell: bash
74+
env:
75+
HLS_TEST_EXE: hls
76+
HLS_WRAPPER_TEST_EXE: hls-wrapper
77+
# run the tests without parallelism, otherwise tasty will attempt to run
78+
# all functional test cases simultaneously which causes way too many hls
79+
# instances to be spun up for the poor github actions runner to handle
80+
run: cabal test wrapper-test --test-options="-j1"

0 commit comments

Comments
 (0)