Skip to content
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

BF: Let save -a commit modified submodules too (closes: gh-636) #739

Merged
merged 2 commits into from
Sep 2, 2016

Conversation

mih
Copy link
Member

@mih mih commented Aug 29, 2016

No description provided.

@yarikoptic
Copy link
Member

I think symlinks strike back
Osx


======================================================================
ERROR: datalad.interface.tests.test_save.test_save
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/datalad/buildslave/datalad-pr-dl-osx-64/build/venv-ci/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/Users/datalad/buildslave/datalad-pr-dl-osx-64/build/datalad/tests/utils.py", line 666, in newfunc
    t(*(arg + (uri,)), **kw)
  File "/Users/datalad/buildslave/datalad-pr-dl-osx-64/build/datalad/interface/tests/test_save.py", line 56, in test_save
    subds = Dataset(opj(ds.path, 'sub ds')).create(add_to_super=True)
  File "/Users/datalad/buildslave/datalad-pr-dl-osx-64/build/datalad/distribution/dataset.py", line 438, in apply_func
    return f(**kwargs)
  File "/Users/datalad/buildslave/datalad-pr-dl-osx-64/build/datalad/distribution/create.py", line 172, in __call__
    annex_init_opts=annex_init_opts)
  File "/Users/datalad/buildslave/datalad-pr-dl-osx-64/build/datalad/distribution/dataset.py", line 297, in create_subdataset
    raise ValueError("path %s outside dataset %s" % (path, self))
ValueError: path /var/folders/90/vkz4dwlx0ss72djd8hywgppc0000gp/T/datalad_temp_clone_url_0oZrqP/sub ds outside dataset <Dataset path=/private/var/folders/90/vkz4dwlx0ss72djd8hywgppc0000gp/T/datalad_temp_clone_url_0oZrqP>
-------------------- >> begin captured logging << --------------------
datalad.cmd: ERROR: Failed to start ['git', 'rev-parse', '--show-toplevel']" under '/var/folders/90/vkz4dwlx0ss72djd8hywgppc0000gp/T/datalad_temp_clone_url_0oZrqP/sub ds/..'": [Errno 2] No such file or directory: '/var/folders/90/vkz4dwlx0ss72djd8hywgppc0000gp/T/datalad_temp_clone_url_0oZrqP/sub ds/..' [subprocess.py:_execute_child:1335]
datalad.cmd: ERROR: Failed to start ['git', 'rev-parse', '--show-toplevel']" under '/var/folders/90/vkz4dwlx0ss72djd8hywgppc0000gp/T/datalad_temp_clone_url_0oZrqP/sub ds'": [Errno 2] No such file or directory: '/var/folders/90/vkz4dwlx0ss72djd8hywgppc0000gp/T/datalad_temp_clone_url_0oZrqP/sub ds' [subprocess.py:_execute_child:1335]
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 504 tests in 586.519s

@coveralls
Copy link

coveralls commented Aug 29, 2016

Coverage Status

Coverage increased (+0.02%) to 86.591% when pulling 785b833 on hanke:bf-saveall into 5bbbe2f on datalad:master.

@mih
Copy link
Member Author

mih commented Aug 29, 2016

Hmm, I have no idea. Is there any records of how to deal with this?

On Aug 29, 2016 20:24, "Yaroslav Halchenko" notifications@github.com
wrote:

I think symlinks strike back
Osx

ERROR: datalad.interface.tests.test_save.test_save

Traceback (most recent call last):
File "/Users/datalad/buildslave/datalad-pr-dl-osx-64/build/venv-ci/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(self.arg)
File "/Users/datalad/buildslave/datalad-pr-dl-osx-64/build/datalad/tests/utils.py", line 666, in newfunc
t(
(arg + (uri,)), **kw)
File "/Users/datalad/buildslave/datalad-pr-dl-osx-64/build/datalad/interface/tests/test_save.py", line 56, in test_save
subds = Dataset(opj(ds.path, 'sub ds')).create(add_to_super=True)
File "/Users/datalad/buildslave/datalad-pr-dl-osx-64/build/datalad/distribution/dataset.py", line 438, in apply_func
return f(**kwargs)
File "/Users/datalad/buildslave/datalad-pr-dl-osx-64/build/datalad/distribution/create.py", line 172, in call
annex_init_opts=annex_init_opts)
File "/Users/datalad/buildslave/datalad-pr-dl-osx-64/build/datalad/distribution/dataset.py", line 297, in create_subdataset
raise ValueError("path %s outside dataset %s" % (path, self))
ValueError: path /var/folders/90/vkz4dwlx0ss72djd8hywgppc0000gp/T/datalad_temp_clone_url_0oZrqP/sub ds outside dataset
-------------------- >> begin captured logging << --------------------
datalad.cmd: ERROR: Failed to start ['git', 'rev-parse', '--show-toplevel']" under '/var/folders/90/vkz4dwlx0ss72djd8hywgppc0000gp/T/datalad_temp_clone_url_0oZrqP/sub ds/..'": [Errno 2] No such file or directory: '/var/folders/90/vkz4dwlx0ss72djd8hywgppc0000gp/T/datalad_temp_clone_url_0oZrqP/sub ds/..' [subprocess.py:_execute_child:1335]
datalad.cmd: ERROR: Failed to start ['git', 'rev-parse', '--show-toplevel']" under '/var/folders/90/vkz4dwlx0ss72djd8hywgppc0000gp/T/datalad_temp_clone_url_0oZrqP/sub ds'": [Errno 2] No such file or directory: '/var/folders/90/vkz4dwlx0ss72djd8hywgppc0000gp/T/datalad_temp_clone_url_0oZrqP/sub ds' [subprocess.py:_execute_child:1335]
--------------------- >> end captured logging << ---------------------


Ran 504 tests in 586.519s


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#739 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAIVH-3GO_2iyHFnc91IwxfQzkMt7tNtks5qkyPLgaJpZM4Jvu23
.

@mih
Copy link
Member Author

mih commented Aug 29, 2016

I cannot replicate the travis failure with TMPDIR=/tmp/sym link. It seems to resolve just fine on my machine...

@yarikoptic
Copy link
Member

yarikoptic commented Aug 29, 2016

Just to make sure, you did have that directory a symlink to /tmp right?
NB github refuses to format it properly for me :-/

> ln -sf /tmp /tmp/symlink; TMPDIR=/tmp/symlink nosetests -s -v datalad.interface.tests.test_save 
datalad.interface.tests.test_save.test_save ... ERROR

======================================================================
ERROR: datalad.interface.tests.test_save.test_save
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/yoh/proj/datalad/datalad/datalad/tests/utils.py", line 666, in newfunc
    t(*(arg + (uri,)), **kw)
  File "/home/yoh/proj/datalad/datalad/datalad/interface/tests/test_save.py", line 56, in test_save
    subds = Dataset(opj(ds.path, 'sub ds')).create(add_to_super=True)
  File "/home/yoh/proj/datalad/datalad/datalad/distribution/dataset.py", line 438, in apply_func
    return f(**kwargs)
  File "/home/yoh/proj/datalad/datalad/datalad/distribution/create.py", line 172, in __call__
    annex_init_opts=annex_init_opts)
  File "/home/yoh/proj/datalad/datalad/datalad/distribution/dataset.py", line 297, in create_subdataset
    raise ValueError("path %s outside dataset %s" % (path, self))
ValueError: path /tmp/symlink/datalad_temp_clone_url_vyYYDq/sub ds outside dataset <Dataset path=/tmp/datalad_temp_clone_url_vyYYDq>

@yarikoptic
Copy link
Member

https://github.com/datalad/datalad/pull/743/files#diff-3947667888c8ff9d4bfc6c26f2be70f9R391 (pushed a temp PR -- didn't finish messing with it yet) might help with it... feel free to absorb that piece of code if does

@mih
Copy link
Member Author

mih commented Aug 30, 2016

FTR: this issue sits deeper than expected. Even in the construction of
testrepos there are inappropriate uses of realpath() IMHO. We should talk
about this.

On Aug 30, 2016 03:12, "Yaroslav Halchenko" notifications@github.com
wrote:

https://github.com/datalad/datalad/pull/743/files#diff-
3947667888c8ff9d4bfc6c26f2be70f9R391 (pushed a temp PR -- didn't finish
messing with it yet) might help with it... feel free to absorb that piece
of code if does


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#739 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAIVH6HhpHIjb0VYr1LaBUSLnWJHpFxIks5qk4OLgaJpZM4Jvu23
.

@codecov-io
Copy link

codecov-io commented Aug 31, 2016

Current coverage is 86.79% (diff: 100%)

Merging #739 into master will increase coverage by 0.05%

@@             master       #739   diff @@
==========================================
  Files           198        198          
  Lines         17890      17898     +8   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          15517      15534    +17   
+ Misses         2373       2364     -9   
  Partials          0          0          

Powered by Codecov. Last update 8c42f85...b53b583

@coveralls
Copy link

coveralls commented Aug 31, 2016

Coverage Status

Coverage increased (+0.02%) to 86.622% when pulling 0842ef3 on mih:bf-saveall into 64730e6 on datalad:master.

@coveralls
Copy link

coveralls commented Sep 1, 2016

Coverage Status

Coverage increased (+0.06%) to 86.792% when pulling b53b583 on mih:bf-saveall into 8c42f85 on datalad:master.

@mih mih merged commit b53b583 into datalad:master Sep 2, 2016
@mih mih deleted the bf-saveall branch June 24, 2017 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants