-
Notifications
You must be signed in to change notification settings - Fork 710
testsuite: Add test for #9334 #9452
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
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.
👍
d166e76
to
0f655e2
Compare
But it doesn't fail on our CI? I'm confused... |
I don't know.. it might only fail with 9.6.3 (which is not currently tested). |
This adds a test which checks that v2-run works with profiling. ``` cabal v2-run --enable-profiling Main.hs ``` which is the same one as is run in ghcup-ci. This test fails on recent GHC versions on GHCUp CI so hopefully also on cabal CI. https://github.com/haskell/ghcup-metadata/actions/runs/6369779959/job/17290326630#step:3:15214
0f655e2
to
f661f0c
Compare
I rebased onto master, where 9.6.3 tests are run on windows, so we will perhaps see if there is a problem there! |
No luck so far: windows-9.6.3 succeeded |
One wild guess. The failing line is I don't think the verbosity flag is the problem, and in sufficiently recent cabals |
I tried to recreate that situation in the test. The file I added is I will further modify the test to look for |
hrm, maybe we should try to diagnose also by prs against ghcup's ci that tweaks the calls a bit? its very hard to see what might be happening. are they using the same or different windows images? |
Issue haskell#9334 identifies that `getScriptHash` can return invalid filepaths on certain platforms. This randomised test attempts to check that the filepaths it returns are valid. I have verified that this test readily fails on linux (when the logic about removing `/` is removed from ScriptUtils).
I have added a second unit test which uses randomised testing to check the filepaths are valid. |
I deliberately rewrote my code away from the hlint suggestion so it was nicer to document the clauses. I don't intend to change it back. |
The test passes on windows, because |
Re hlint: could you use |
Yes, we live in a world where specs are not followed, and we have to acknowledge it, I think. |
@mpickering: would you like any help with that one? |
Matthew thinks that this was ultimately not testing the right thing, so we are better off dropping the patch. |
This adds a test which checks that v2-run works with profiling.
which is the same one as is run in ghcup-ci.
This test fails on recent GHC versions on GHCUp CI so hopefully also on cabal CI.
https://github.com/haskell/ghcup-metadata/actions/runs/6369779959/job/17290326630#step:3:15214