Set the XDG_CACHE_HOME for tests
This makes sure each test run is independent.
Makes the tests
- iface-error-test-1
- iface-th-test
less flaky locally. On my machine, these tests were consistently failing after the first successful execution (due to caching the hiedb afaict.)
Should not have any effect on the CI flakiness issue.
https://github.com/haskell/haskell-language-server/blob/master/.github/workflows/test.yml#L51
Outdated skip in CI. Gonna fix that!
Test failures all look genuine, so more investigation is required.
Is it blocking by the long path issue for windows? Can we shrink the test cache dir path?
@soulomoon Yes, it is blocking :(
I have no idea how to further shrink down the test cache dir path, without either reimplementing createTemporaryDirectory, or mangling test-case names.
I am further confused why this even is an issue, as the CI runners allegedly enable long file paths.
That seems to be ghc's issue ? see https://gitlab.haskell.org/ghc/ghc/-/issues/13373 @fendor
So to workaround this, we might have to customize our createTemporaryDirectory ?
I am not sure if the issue is still relevant
The lazy solution to set a shorter test directory on windows seems to be working. Finally!
@guibou, @soulomoon perhaps a final review? Otherwise, Ill just merge it.