Repository navigation
Add test cases that reproduce sdist --project-file. - #8226
Conversation
|
If in the For the |
If I understand what is says, perhaps it's because the place the project file is in is the root from which sdist operates, not the directory sdist was called in?
Thank you for the repro. So which of the four calls should work fine? BTW, did you try moving the options before |
|
Marking this PR as draft 🙂 |
5ffaf93 to
3cc1016
Compare
Tests of sdist with
|
d36901c to
3ef0988
Compare
3ef0988 to
9c88a41
Compare
|
This was CI green but out of date with the master branch. I've just rebased. |
9c88a41 to
0393803
Compare
andreasabel
left a comment
There was a problem hiding this comment.
Thanks, great to have these tests!
Would it be possible to add to each test (I guess the .hs files) a comment stating what this test is testing and what the expected outcome is (like "should fail with...", "should succeed...")?
I think this would make it easier for posterity to comprehend the tests, and to fix tests should they be failiing because of a change in cabal...
992ad33 to
1a40ba1
Compare
|
@andreasabel I've left notes in the The |
|
Currently comparing |
18dc465 to
debfdfe
Compare
andreasabel
left a comment
There was a problem hiding this comment.
Thanks, @philderbeast , for equipping the test with descriptions!
|
@philderbeast : Thanks! |
debfdfe to
1ad1704
Compare
- Move project sdist tests to cabal-testsuite - Add --ignore-project test - Duplicate tests but without cabal.project - Add a cabal.project one folder up - Add a package Z in the root - Rerun --accept with more immediate parent project - Add a readme for the tests - Fix problems with uv package, update expected output - Add U and V modules - Explain what is wrong with cabal.dot-uv.test.hs - Add a note on cabal.no-project.test.hs - Explain what is wrong with cabal.sub-pq.test.hs - Explain what is wrong with cabal.sub-rs.test.hs - Explain what is wrong with cabal.dot-uv.test.hs - Leave a note explaining cabal.no-project.test.hs - Leave a note explaining cabal.project.test.hs - Leave a note explaining cabal.sub-pq.test.hs - Explain what is wrong with cabal.sub-rs.test.hs - Patches for project respecting behaviour - Explain root ignore-project and no-project tests - Add *.v2.test.hs variants exercising v2-sdist - Add v2 patches, test out not using <ROOT>
1ad1704 to
1e62b82
Compare
|
@andreasabel I squashed manually. Label merge+no rebase is necessary when the pull request is from an organisation. |
|
@philderbeast: thank you very much again for the exotic label justification ceremony. BTW, I think, after you squashed, you forgot to rebase just before merging, which resulted in a tangled git history (not that tangled and that's not a big deal, but helps a bit when trawling the commit list, e.g., when bisecting problems). I'm sorry about the trouble --- normally that's one of the things mergify does for us, rebasing and testing as many times as needed, if the branch moves while it's working. |
|
@philderbeast wrote:
Ah, I didn't know about that. Can I read up on this somewhere? |
|
@andreasabel the normal |
|
@philderbeast Thanks for the heads up! Where can I read about this? |
|
@andreasabel we switched to a merge queues with #11015.
This is using Mergify's draft pull requests. |
This is a WIP.Struggling a bit to navigate the test set up, I opted instead to create a small set of tests for reproducing the problem ofcabal sdist --project-filenot respecting the project file option, #7241.I'm testing this with: