Skip to content

Commit 05ee76d

Browse files
authored
Merge pull request #570 from jneira/fix-rerun
Fix tasty rerun
2 parents d0f02b5 + 77b17d2 commit 05ee76d

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

.circleci/config.yml

Lines changed: 12 additions & 11 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" || 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

@@ -128,10 +129,10 @@ jobs:
128129
- STACK_FILE: "stack-8.10.2.yaml"
129130
<<: *defaults
130131

131-
# ghc-nightly:
132-
# environment:
133-
# - STACK_FILE: "stack.yaml"
134-
# <<: *defaults
132+
ghc-nightly:
133+
environment:
134+
- STACK_FILE: "stack.yaml"
135+
<<: *defaults
135136

136137
cabal:
137138
working_directory: ~/build
@@ -189,7 +190,7 @@ jobs:
189190
- cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
190191
- run:
191192
name: Build
192-
command: nix-shell -j4 --run "cabal new-update && cabal new-build -j1 --enable-tests"
193+
command: nix-shell -j4 --run "cabal new-update && (cabal new-build -j1 --enable-tests || cabal new-build -j1 --enable-tests) "
193194
no_output_timeout: 30m
194195
- save_cache:
195196
key: cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}

.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" || cabal test wrapper-test --test-options="-j1" || cabal test wrapper-test --test-options="-j1"

stack.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ extra-deps:
2929
# - ghcide-0.1.0
3030
- ghc-check-0.5.0.1
3131
- ghc-exactprint-0.6.3.2
32-
- ghc-lib-8.10.2.20200808
33-
- ghc-lib-parser-8.10.2.20200808
32+
- ghc-lib-8.10.2.20200916
33+
- ghc-lib-parser-8.10.2.20200916
3434
- ghc-lib-parser-ex-8.10.0.16
3535
- ghc-source-gen-0.4.0.0
3636
- haddock-api-2.22.0@rev:1
@@ -42,7 +42,7 @@ extra-deps:
4242
- HsYAML-0.2.1.0@rev:1
4343
- HsYAML-aeson-0.2.0.0@rev:2
4444
- implicit-hie-cradle-0.2.0.1
45-
- implicit-hie-0.1.1.0
45+
- implicit-hie-0.1.2.0
4646
- indexed-profunctors-0.1
4747
- lens-4.18
4848
- lsp-test-0.11.0.6

0 commit comments

Comments
 (0)