-
Notifications
You must be signed in to change notification settings - Fork 696
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
Allow "cycles" through test suite dependencies #3422
Draft
23Skidoo
wants to merge
9
commits into
master
Choose a base branch
from
PrivateTestDeps
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Commits on May 18, 2016
-
Add test for cycles through test suites
Of course, this test currently fails.
Configuration menu - View commit details
-
Copy full SHA for ac82c75 - Browse repository at this point
Copy the full SHA ac82c75View commit details -
Make private test suite deps independent
When a test suite has a dependency which is not shared with the main library, we can consider it independent. This addresses #1575 to some degree. Suppose * optparse-applicative has a test suite that depends on tasty * tasty has a (regular) dependency on optparse-applicative We can resolve this by linking optparse-applicative's test suite against an older version of itself. This only works provided that optparse-applicative's test suite does not declare optparse-applicative as a dependency (and instead just compiles in the modules from the src/ directory or whatever). If the test suite did declare the library as a dependency, then clearly the test suite needs to be built against _this_ version of the library; it would be terribly confusing if the test suite got built against an older version. But if the test suite gets built against the library itself, then if the test suite also needs tasty, we cannot pick two different versions in the same application (yet). In this commit we add the appropriate qualifiers; however, the resulting install plan will now be rejected by the internal validity check. That's next up.
Configuration menu - View commit details
-
Copy full SHA for 2d0ed5f - Browse repository at this point
Copy the full SHA 2d0ed5fView commit details -
Only insist on consistency for libraries
For test suites etc. we might want to allow for inconsistent dependencies. For instance, in the optparse-applicative -> tasty -> optparse-applicative dependency cycle we might want to allow two versions of optparse-applicative in the same executable (one that is the library-under-test and one used internally by tasty).
Configuration menu - View commit details
-
Copy full SHA for e52a9e3 - Browse repository at this point
Copy the full SHA e52a9e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for fecaba2 - Browse repository at this point
Copy the full SHA fecaba2View commit details -
Integration test for private test suite deps
Details of the test in the README.
Configuration menu - View commit details
-
Copy full SHA for f7db1d9 - Browse repository at this point
Copy the full SHA f7db1d9View commit details -
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Configuration menu - View commit details
-
Copy full SHA for 0b1ad1a - Browse repository at this point
Copy the full SHA 0b1ad1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f08a6e8 - Browse repository at this point
Copy the full SHA f08a6e8View commit details -
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Configuration menu - View commit details
-
Copy full SHA for cd5bd8c - Browse repository at this point
Copy the full SHA cd5bd8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bd7c2e - Browse repository at this point
Copy the full SHA 4bd7c2eView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.