-
-
Notifications
You must be signed in to change notification settings - Fork 388
Set the XDG_CACHE_HOME for tests #4572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
1a34302
to
7df2e36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. But ghcide test is not running for this PR, do you know why it is skipped
Outdated skip in CI. Gonna fix that! |
Test failures all look genuine, so more investigation is required. |
3be9351
to
8dcd861
Compare
then mkHomeModLocation dflags (pathToModuleName fp) fp | ||
then mkHomeModLocation dflags mod fp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be causing long-path issues on windows.
I am unsure how relevant this still is... Anybody an idea?
reexported = Position 55 14 ; reexportedSig = getDocUri "Bar.hs" >>= \bar -> return [ExpectHoverText ["Bar", "Bar", "Haddock"], if ghcVersion >= GHC94 && ghcVersion < GHC910 then mkL bar 3 5 3 8 else mkL bar 3 0 3 14] | ||
reexported = Position 55 14 ; reexportedSig = getDocUri "Bar.hs" >>= \bar -> return [ExpectHoverText ["Bar", "Bar", "Haddock"], mkL bar 3 0 3 14] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be caused by a race/inconsistency between serving a hover request based on hiedb
and getting the information from an interface file.
019575a
to
6920cae
Compare
This makes sure each test run is independent. Makes the tests * iface-error-test-1 * iface-th-test less flaky locally. Should not have any effect on the CI flakiness issue. --- Fix test cases to work with the temporary `XDG_CACHE_HOME` Some tests were launching additional HLS instances for the tests. Fixed, which should make the test slightly faster.
Ghcide test infrastructure was refactored to depend on `hls-test-utils`.
6920cae
to
2a07a93
Compare
This makes sure each test run is independent.
Makes the tests
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.