-
Notifications
You must be signed in to change notification settings - Fork 4
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
Re-enable Datalad SSH tests on macOS #55
base: master
Are you sure you want to change the base?
Conversation
everything was merged and released on datalad end since back then. Could you please re-trigger CI run here @jwodder ? |
@yarikoptic CI run triggered. |
Mac is still ain't happy:
|
ha -- some pass and some fail with e.g.
is it the same "too long of a path" issue? |
@yarikoptic What "too long of a path" issue? The only such issue I recall on macOS affected Conda's decisions about filling in shebangs. |
argh, failed to find related discussion ATM. But you could try meanwhile setting |
Underlying issue https://unix.stackexchange.com/questions/367008/why-is-socket-path-length-limited-to-a-hundred-chars#:~:text=Mac%20OS%20X%2010.9%3A%20104%20characters maximal socket path length 104 . In Datalad were use HOME in TMPDIR while testing |
From error messages it seems like |
@yarikoptic #58 uses a third-party action for setting up Docker on macOS as an alternative to the Docker Machine approach on this branch. I'm not entirely certain how reliable the action in question is, and so I want to leave both PRs open for now. |
blocker was resolved, |
@yarikoptic This PR seems to work now, aside from some datalad test failures. |
well, it doesn't work in a sense that ssh related tests fail on macOS:
and a sample ERROR2022-04-05T17:54:00.1381720Z ======================================================================
2022-04-05T17:54:00.1381870Z ERROR: datalad.support.tests.test_annexrepo.test_annex_ssh
2022-04-05T17:54:00.1382130Z ----------------------------------------------------------------------
2022-04-05T17:54:00.1382240Z Traceback (most recent call last):
2022-04-05T17:54:00.1382640Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/nose/case.py", line 198, in runTest
2022-04-05T17:54:00.1382740Z self.test(*self.arg)
2022-04-05T17:54:00.1383170Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/tests/utils.py", line 288, in _wrap_skip_ssh
2022-04-05T17:54:00.1383270Z return func(*args, **kwargs)
2022-04-05T17:54:00.1383740Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/tests/utils.py", line 307, in _wrap_skip_nomultiplex_ssh
2022-04-05T17:54:00.1383850Z return func(*args, **kwargs)
2022-04-05T17:54:00.1384290Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/tests/utils.py", line 874, in _wrap_with_tempfile
2022-04-05T17:54:00.1384410Z return t(*(arg + (filename,)), **kw)
2022-04-05T17:54:00.1385030Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/support/tests/test_annexrepo.py", line 1223, in test_annex_ssh
2022-04-05T17:54:00.1385270Z ar.copy_to(["foo"], remote="ssh-remote-1")
2022-04-05T17:54:00.1385730Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/support/gitrepo.py", line 325, in _wrap_normalize_paths
2022-04-05T17:54:00.1385860Z result = func(self, files_new, *args, **kwargs)
2022-04-05T17:54:00.1386300Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/support/annexrepo.py", line 2902, in copy_to
2022-04-05T17:54:00.1386520Z files, ['--in', '.', '--not', '--in', remote])
2022-04-05T17:54:00.1386980Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/support/annexrepo.py", line 1514, in _get_expected_files
2022-04-05T17:54:00.1387100Z merge_annex_branches=merge_annex_branches
2022-04-05T17:54:00.1387930Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/support/annexrepo.py", line 1078, in _call_annex_records
2022-04-05T17:54:00.1388040Z raise e
2022-04-05T17:54:00.1388570Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/support/annexrepo.py", line 1050, in _call_annex_records
2022-04-05T17:54:00.1388650Z **kwargs,
2022-04-05T17:54:00.1389360Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/support/annexrepo.py", line 943, in _call_annex
2022-04-05T17:54:00.1389450Z **kwargs)
2022-04-05T17:54:00.1390700Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/runner/gitrunner.py", line 227, in run_on_filelist_chunks
2022-04-05T17:54:00.1390830Z **kwargs):
2022-04-05T17:54:00.1391330Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/runner/gitrunner.py", line 161, in _get_chunked_results
2022-04-05T17:54:00.1391410Z **kwargs)
2022-04-05T17:54:00.1391820Z File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/datalad/runner/runner.py", line 205, in run
2022-04-05T17:54:00.1391910Z **results,
2022-04-05T17:54:00.1392750Z datalad.runner.exception.CommandError: CommandError: 'git -c diff.ignoreSubmodules=none annex find --in . --not --in ssh-remote-1 --json --json-error-messages -c annex.dotfiles=true -- foo' failed with exitcode 1 under /private/tmp/DLTMP/datalad_temp_test_annex_ssh1x6hktex/main [info keys: stdout_json] [err: 'Unable to parse git config from ssh-remote-1
2022-04-05T17:54:00.1393350Z fatal: '/private/tmp/DLTMP/datalad_temp_test_annex_ssh1x6hktex/remote1' does not appear to be a git repository
2022-04-05T17:54:00.1393930Z CommandError: 'ssh -o ControlPath=/Users/runner/Library/Caches/datalad/sockets/89d769bb -o SendEnv=GIT_PROTOCOL datalad-test 'git-upload-pack '"'"'/private/tmp/DLTMP/datalad_temp_test_annex_ssh1x6hktex/remote1'"'"''' failed with exitcode 128
2022-04-05T17:54:00.1394060Z fatal: Could not read from remote repository.
2022-04-05T17:54:00.1394070Z
2022-04-05T17:54:00.1394210Z Please make sure you have the correct access rights
2022-04-05T17:54:00.1394310Z and the repository exists.
2022-04-05T17:54:00.1394610Z git-annex: cannot determine uuid for ssh-remote-1 (perhaps you need to run "git annex sync"?)']
|
having said that:
and it seems we are running into some TMPDIR binds related issue which we had encountered before? e.g.
|
@yarikoptic Regarding the TMPDIR issue, the problem seems to be that Datalad is trying to run an SSH command that runs |
hm, I wondered how it works e.g. in mac tests in appveyor of stock datalad -- oh well, https://github.com/datalad/datalad/blob/master/.appveyor.yml#L274 , that is how
so may be do the same here for OSX? |
@yarikoptic This PR already sets |
rright, that is why as a workaround appveyor setup sets it to a path which should be present in both environments, i.e. |
@yarikoptic If the workaround you mean is to set |
try exactly as |
@yarikoptic It appears that magic does not exist. |
But it is interesting how it fails right in fixture here
and doesn't fail similarly in stock datalad somehow... |
Blocked by datalad/datalad#6622 |
Blocker: datalad/datalad#5417