-
-
Notifications
You must be signed in to change notification settings - Fork 388
Include testdata hie.yaml cradles #399
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
Conversation
My tests were mysteriously failing on CI but not locally. Turns out the cradle is necessary for getting tests to run. This also correlates with how the `context` functional tests are timing out (no hie.yaml checked in) but `eval` works just fine (has a hie.yaml).
Shouldn't these be generated as needed? |
@fendor if they should be, they currently aren't. |
Since you are not adding them to the git repo, I am wondering why it works when you stop ignoring them? |
I think the issue is here: https://github.com/haskell/haskell-language-server/blob/master/test/utils/Test/Hls/Util.hs#L71 We did not have time to get our existing test-setup into shape since the merge with ghcide. |
I'm not adding them to the git repo, but this gitignore caused me to spend 3 hours chasing my tail trying to figure out why the hell CI was broken but my tests worked locally. This PR doesn't fix anything, but it brings attention and will save future plugin authors pain. |
But you should not commit them right? I am sorry this caused so much pain for you, could you explain why it was hard to debug? We should improve this situation for everyone! |
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.
I am fine with it, but we should tackle the issue of getting the tests up-to-date
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.
Should we be calling setupBuildToolFiles
at the start of these tests instead to fix this?
Isnt it called? |
I infer from the discussion that this pr should be closed o changed to add |
@jneira yes that would seem like the root cause. But now I'm stumped as to how the tests are working in the first place even |
@bubba @fendor @isovector me too, analyzing the test code and data:
haskell-language-server/.gitignore Lines 23 to 24 in 438f699
I suppose they were added with
So, i would ignore
|
Finally i've added hie.yaml forcily in the pr to go forward. The fix should be in another pr. |
Opened #517 to track the issue with testdata hie.yaml. |
My tests were mysteriously failing on CI but not locally. Turns out the cradle is necessary for getting tests to run.
This also correlates with how the
context
functional tests are timing out (no hie.yaml checked in) buteval
works just fine (has a hie.yaml).