Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
Retry GHC 8.10 on Windows (#661)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cocreature authored Jun 22, 2020
1 parent 7080db9 commit ac8d7cd
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .azure/windows-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,20 @@ jobs:
stack install happy --stack-yaml $STACK_YAML
stack install alex --stack-yaml $STACK_YAML
stack install cabal-install --stack-yaml $STACK_YAML
stack build --only-dependencies --stack-yaml $STACK_YAML
# GHC 8.10 keeps crashing with various kinds of access violations and other
# errors so we retry 3 times.
if [ "$STACK_YAML" = "stack810.yaml" ]; then
stack build --only-dependencies --stack-yaml $STACK_YAML || stack build --only-dependencies --stack-yaml $STACK_YAML || stack build --only-dependencies --stack-yaml $STACK_YAML
else
stack build --only-dependencies --stack-yaml $STACK_YAML
fi
displayName: 'stack build --only-dependencies'
- bash: stack test --no-run-tests --ghc-options=-Werror --stack-yaml $STACK_YAML
- bash: |
if [ "$STACK_YAML" = "stack810.yaml" ]; then
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
else
stack test --no-run-tests --ghc-options=-Werror --stack-yaml $STACK_YAML
fi
displayName: 'stack test --ghc-options=-Werror'
# TODO: run test suite when failing tests are fixed or marked as broken. See https://github.com/digital-asset/ghcide/issues/474
- bash: |
Expand Down

0 comments on commit ac8d7cd

Please sign in to comment.