Skip to content

Commit 2474e7c

Browse files
authored
[hls-graph] clean up databaseDirtySet (#2294)
* attempt to fix hiedb lock errors it looks like the test runner has a preexisting process locking the hiedb * Move ghcide cache to the tmp folder * Use ${{ runner.temp }} * clean up the hie-bios cache too * The runner context doesn't exist outside the steps section
1 parent 44016a7 commit 2474e7c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@ jobs:
138138
sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \
139139
src/**/*.hs exe/*.hs
140140
141+
# this is only safe if the test environment is isolated
142+
- name: setup ide cache
143+
run: |
144+
export XDG_CACHE_HOME=$RUNNER_TEMP/cache
145+
rm -rf ~/.cache/ghcide
146+
rm -rf ~/.cache/hie-bios
147+
rm -rf $XDG_CACHE_HOME/ghcide
148+
rm -rf $XDG_CACHE_HOME/hie-bios
149+
141150
- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
142151
name: Build
143152
# Retry it three times to workaround compiler segfaults in windows

0 commit comments

Comments
 (0)