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
Enabled testrepo-based tests on Windows #3975
Conversation
This changes removes the ability to deal with filenames that have trailing slashes on non-windows systems for reasons of implementation simplicity. If there are such file names we might reconsider, but I doubt that any other part of datalad can handle those. Fixes dataladgh-3974
Made possible by fix of dataladgh-3974
Codecov Report
@@ Coverage Diff @@
## master #3975 +/- ##
==========================================
- Coverage 89.78% 89.72% -0.07%
==========================================
Files 271 271
Lines 36323 36351 +28
==========================================
+ Hits 32612 32615 +3
- Misses 3711 3736 +25
Continue to review full report at Codecov.
|
Possibly temporarily. Hints in comments in diff.
The file:// URLs we generate are not compatible with git submodule on windows
A bunch of additional tests are running now. Each failure is annotated with a link the the traceback log.
d11eef2
to
3039518
Compare
Include a (within-file) code move in order to get failure decorators defined before first use
Given that this PR makes a number of additional tests run, with relatively minimal impact on behavior on other platforms I'll merge this one now. A follow-up PR will (have to) come with #3977, so potential fixups can be incorporated there. |
A good number of test modules no longer show up in the appveyor logs, including those that test very basic and important functionality (e.g., GitRepo, save, get, and clone). It looks like these were lost starting with dataladgh-3975 (2020-01-02), in particular the last commit of that series (715be1f). One change of that commit was to decorate with_testrepos() with known_failure_appveyor(). (Before the series, the function returned by with_testrepos() raised a SkipTest if on Windows.) Based on replacing the decorator with a plain SkipTest [*], it seems that any module that uses with_testrepos() isn't executed on appveyor (for reasons that I don't understand). Drop the known_failure_appveyor() decorator and instead raise a SkipTest if on appveyor to restore the execution of tests modules. Closes datalad#4411. [*] https://ci.appveyor.com/project/mih/datalad/builds/35927969
A good number of test modules no longer show up in the appveyor logs, including those that test very basic and important functionality (e.g., GitRepo, save, get, and clone). It looks like these were lost starting with dataladgh-3975 (2020-01-02), in particular the last commit of that series (715be1f). One change of that commit was to decorate with_testrepos() with known_failure_appveyor(). (Before the series, the function returned by with_testrepos() raised a SkipTest if on Windows.) Based on replacing the decorator with a plain SkipTest [*], it seems that any module that uses with_testrepos() isn't executed on appveyor (for reasons that I don't understand). Drop the known_failure_appveyor() decorator and instead raise a SkipTest if on appveyor to restore the execution of these test modules. Closes datalad#4411. [*] https://ci.appveyor.com/project/mih/datalad/builds/35927969
...as much as feels feasible right now. In any case, this is a huge step forward in terms of critical test coverage on windows. We are now in the position to investigate individual tests, instead of facing global failure.
There is still an open issue with
get_local_file_ur l()
#3977, but given that this is needed for #3966 it will have to come in a separate PR.