-
Notifications
You must be signed in to change notification settings - Fork 114
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
Remove unnecessary extra-source-files #672
Conversation
In local testing in |
Judging by the test failures, this looks like a nice learning opportunity for me! ;) |
For my own reference: I can reproduce the test failures locally with
|
There are different test failures: The
Lines 438 to 446 in c6f9ab8
This is the failing step: Line 70 in c6f9ab8
|
At this stage the test failures appear to be fixed, but there's still a difference in the number of tests that are run with + builtins.appendContext.nix: OK (0.02s)
+ builtins.eq-bottom-00.nix: OK (0.03s)
+ builtins.fromJSON-01.nix: OK (0.02s)
+ builtins.getContext.nix: OK (0.06s)
+ builtins.lessThan-01.nix: OK (0.06s)
+ builtins.mapAttrs-01.nix: OK (0.03s)
+ builtins.pathExists.nix: OK (0.01s)
+ builtins.replaceStrings-01.nix: OK (0.05s)
+ builtins.toJSON.nix: OK (0.03s)
+ current-system.nix: OK (0.02s)
+ ellipsis.nix: OK (0.02s)
+ paths-01.nix: OK (0.02s)
+ placeholder.nix: OK (0.01s) All of these are |
This is the test failure when I remove
|
|
810695f
to
0f1257f
Compare
A test failure in
https://travis-ci.org/github/haskell-nix/hnix/jobs/707980815 EDIT: Reported in haskell/statistics#169. |
0f1257f
to
6ba1843
Compare
More files than necessary were included from the nix submodule. This also adds some missing eval-compare test files. The testsuite now always runs the same number of tests, no matter the `buildFromSdist` setting. This also sorts the files from the submodule, so they are easier to navigate.
6ba1843
to
7341fab
Compare
Sorry, this PR must be followed actively both practically by hands and to get the change lists, so I could not follow and help with it. Maybe some comments may have been beneficial notes into the future, what should be addressed, upstream link for test error of #672 (comment). Also to understand the history of it, what was done - having more commits: what was removed (by: grep 'data/nix/' old.cabal | sort --stable > old.txt
grep 'data/nix/' new.cabal | sort --stable > new.txt
# Commit 1. What was removed:
comm -23 old.txt new.txt
# Commit 2. What was added:
comm -13 old.txt new.txt
# Commit 3. Sort:
# After first two done - what is left are the sort changes. I and others just can not follow PR with one commit with this much movement of lines around, we just can not see what was removed, what was added, and what was sorted. That is beneficial but pretty much optional. This diff is a very good basic case example of why to prefer preserving more granular commit history in the project. The main thing that Cabal file and package are cleaned, includes what is needed and consistent. Overall this is great change 👍 |
Ok. Lets move along. |
More files than necessary were included from the nix submodule.
This also adds some missing eval-compare test files. The testsuite
now always runs the same number of tests, no matter the
buildFromSdist
setting.This also sorts the files from the submodule, so they are easier to
navigate.
Context: #610