Comments (2)
So, let's make a list of identified issues. I'm working on this right now, it's just about narrowing it down and adding issues as they appear.
- We still have unix-style command calls, due to not using the Runner-class
- path length problems. Partly solved.
- If you look at this:
FAIL: datalad.tests.test_kraut.TestKrautTests.test_get_basic_minimal
_StringException: Binary content:
dep_info (application/json)
env_info (application/json)
exec_info (application/json)
metric_info (application/json)
output_info (application/json)
spec_info (application/json)
sys_info (application/json)
Traceback (most recent call last):
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\testkraut\testcase.py", line 68, in wrapped
return func(self, _(args + parameters), *_kw)
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\testkraut\testcase.py", line 718, in _run_spec_test
return TestFromSPEC._run_spec_test(self, spec_filename)
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\testkraut\testcase.py", line 209, in _run_spec_test
self._check_output_presence(spec)
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\testkraut\testcase.py", line 465, in _check_output_presence
matcher(target)))
File "C:\Python27\lib\site-packages\testtools\testcase.py", line 433, in assertThat
raise mismatch_error
MismatchError: '''
\r
\r
\r
(merging origin/git-annex into git-annex...)\r
(recording state in git...)\r
\r
get test-annex.dat \r
(from web...) \r
\r
Unable to access these remotes: web\r
\r
Try making some of these repositories available:\r
\t00000000-0000-0000-0000-000000000001 -- web\r
failed\r
(recording state in git...)\r
''' does not end with u'''
ecording state in git...)
'''.: unexpected output for 'tests::0::stdout'
This seems to be a problem with conversion of line endings or better it's absence.
- Some tests ignore that there's a direct mode. So a not yet getted file is not a link, but an actual file. Checking for "not exists" before, is just wrong in direct mode.
- Message below seems to be a problem not connected to windows and already resolved, right?
FAIL: datalad.tests.test_cmd.test_link_file_load
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(self.arg)
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\datalad\tests\utils.py", line 239, in newfunc
t((arg + (filename,)), **kw)
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\datalad\tests\test_cmd.py", line 189, in test_link_file_load
assert_equal(stats(tempfile), stats(tempfile2))
AssertionError: Tuples differ: (33206, 0, 0, 4L, 1426535023.6... != (33206, 0, 0, 4L, 1426535023.6...
First differing element 4:
1426535023.62
1426535023.62
- (33206, 0, 0, 4L, 1426535023.618778)
? ^ - (33206, 0, 0, 4L, 1426535023.618777)
? ^
- Have to adapt obscure filenames
- Look at this:
ERROR: datalad.tests.test_main.test_page2annex_separate_public(True, 'relaxed', 'keep')
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(self.arg)
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\datalad\tests\utils.py", line 103, in newfunc
t(((d,) + arg), *kw)
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\datalad\tests\utils.py", line 188, in newfunc
func(((url,)+arg), **kw_)
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\datalad\tests\test_main.py", line 151, in check_page2annex_separate_public
stats1 = drepo.page2annex()
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\datalad\crawler\main.py", line 306, in page2annex
git_add=git_add,
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\datalad\support\repos.py", line 259, in annex_file
public_annex.add_file(public_filename, href=href, add_mode=add_mode, git_add=git_add)
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\datalad\support\repos.py", line 110, in add_file
return self.run(_esc(annex_filename), git_cmd="add")
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\datalad\support\repos.py", line 51, in run
"cd %s && git %s %s" % (self.path, git_cmd, cmd))
File "c:\buildslave\datalad-tests-virtualbox-dl-win7-64\build\datalad\cmd.py", line 173, in run
raise RuntimeError(msg)
RuntimeError: Failed to run u'cd c:\users\datalad\appdata\local\temp\tmpu3d2t5 && git add "files\test.ascii"'. Exit code=128
There is no "git add" in direct mode, I think. Because there is no working tree. We have to adapt tests like this in general, to not call any command directly, but the annex or dataset methods. So, these classes know they are in direct mode and can act accordingly.
Edit: Dammit. I need to learn markdown.
from datalad.
test_main
tests disabled, some other fixed up. Amen for now
from datalad.
Related Issues (20)
- pytest collection fails on recentish neurodebians: Argument(s) {'collection_path'} are declared in the hookimpl but can not be found in the hookspec HOT 3
- datalad siblings enable fails in git-cloned dataset without git-annex branch HOT 1
- parallel get from datalad archive gives error
- Brainstorming: path to DataLad v2? HOT 1
- Install datalad by easybuild HOT 1
- datalad update fails randomly with error: "cannot lock ref 'refs/remotes/origin/master'" and ".... git-annex" HOT 1
- Github tarball checksums changed HOT 2
- Different HPC systems and users HOT 2
- Add ability to limit get (and thus install) --recursive installation of subdatasets
- Edge case: Large datalad saves with tight ulimits on many-core machines can fail
- 1-letter shortcut for `--reobtain-data` in datalad-update HOT 1
- `str(GitTransportRI)` broken, and with it `_get_flexible_source_candidates()`
- Boto dependency HOT 1
- Extension command line argument in conflict with `datalad` level argument HOT 3
- "Convert" .travis.yml into a github workflow
- DataLad extensions are not properly registered on Python 3.12 HOT 1
- FOI: "generic" analog to WTF?
- Datalad get can't find URL despite registering via addurls (and I can see the URL with git annex whereis) HOT 21
- `create_sibling_ria` does not release `IO` handler resources properly
- MacOS tests fail to install Python 3.7 (which is EOL anyway) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datalad.