Skip to content

Commit ac8d7cd

Browse files
authored
Retry GHC 8.10 on Windows (#661)
It keeps crashing and annoying everyone. The issue is in GHC not in our code and I believe it’s fixed in HEAD already but that doesn’t help us so let’s add some retries for now.
1 parent 7080db9 commit ac8d7cd

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.azure/windows-stack.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,20 @@ jobs:
4747
stack install happy --stack-yaml $STACK_YAML
4848
stack install alex --stack-yaml $STACK_YAML
4949
stack install cabal-install --stack-yaml $STACK_YAML
50-
stack build --only-dependencies --stack-yaml $STACK_YAML
50+
# GHC 8.10 keeps crashing with various kinds of access violations and other
51+
# errors so we retry 3 times.
52+
if [ "$STACK_YAML" = "stack810.yaml" ]; then
53+
stack build --only-dependencies --stack-yaml $STACK_YAML || stack build --only-dependencies --stack-yaml $STACK_YAML || stack build --only-dependencies --stack-yaml $STACK_YAML
54+
else
55+
stack build --only-dependencies --stack-yaml $STACK_YAML
56+
fi
5157
displayName: 'stack build --only-dependencies'
52-
- bash: stack test --no-run-tests --ghc-options=-Werror --stack-yaml $STACK_YAML
58+
- bash: |
59+
if [ "$STACK_YAML" = "stack810.yaml" ]; then
60+
stack test --no-run-tests --ghc-options=-Werror --stack-yaml $STACK_YAML || stack test --no-run-tests --ghc-options=-Werror --stack-yaml $STACK_YAML || stack test --no-run-tests --ghc-options=-Werror --stack-yaml $STACK_YAML
61+
else
62+
stack test --no-run-tests --ghc-options=-Werror --stack-yaml $STACK_YAML
63+
fi
5364
displayName: 'stack test --ghc-options=-Werror'
5465
# TODO: run test suite when failing tests are fixed or marked as broken. See https://github.com/digital-asset/ghcide/issues/474
5566
- bash: |

0 commit comments

Comments
 (0)