From b166f188087d44bc767c4c7ec114f79d3a7fc689 Mon Sep 17 00:00:00 2001 From: Pepe Iborra Date: Sun, 24 Oct 2021 15:10:00 +0100 Subject: [PATCH] attempt to fix hiedb lock errors it looks like the test runner has a preexisting process locking the hiedb --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b8fda765034..8c95631a1f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -138,6 +138,13 @@ jobs: sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \ src/**/*.hs exe/*.hs + # this is only safe if the test environment is isolated + - name: clean ide cache + run: | + pgrep -af ghcide; true + pgrep -af hls; true + rm -rf ~/.cache/ghcide + - if: ${{ needs.pre_job.outputs.should_skip != 'true' }} name: Build # Retry it three times to workaround compiler segfaults in windows