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
Fix test failures on macOS #5108
Conversation
macOS's cp in particular does not support long options.
macOS in particular requires -R to come before the mode.
if preserve_attrs: | ||
cmd.append("--preserve") | ||
cmd.append("-p") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eh, according to coverage we are not even testing this flag "directly" (well - git-annex would use it if it saw it available at "compile time") -- could you please tune up or extend some test for create_sibling so it tests with preserve_attrs=True
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There does not appear to be any way to tell create_sibling
to use preserve_attrs
here. It appears that no code that calls this method ever sets preserve_attrs=True
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, indeed. Could you please craft a dedicated to _RunnerAdapter
unittest and test put
with preserve_attrs
? then we would be sure it would work whenever we need to use it.
ha ha, in the hindsight of rare OSX experience, fixes make so much sense ;) |
FTR, travis fail is unrelated AFAIK NFS gotcha:
|
@yarikoptic Current status: The remaining failing tests are the following:
Except for the last one, they all appear to involve two local datalad repositories in temporary directories, with one repo copied to another with The last test involves a repo with a datalad-archives remote, which it is unable to fetch from. |
Thank you @jwodder ! May be tomorrow we could setup some interactive jitsi session (what about 1pm or 2pm?) and get that one resolved. One possibility comes to mind is "symlinks" -- IIRC Mac uses them for either HOME or TMPDIR and may be somehow that is relevant. An approach to debug it is to run via |
@yarikoptic I'm open to meeting at 1 PM, but given the note at the bottom of this comment, I don't think it'll be as productive as you expect.
The failing tests I listed are for when the tests are run under GitHub Actions. When I run the tests on my machine (macOS 10.13.6, Python 3.9.0, git 2.29.2, git-annex 8.20201007) with the fixes so far, I get only one failure: |
I am a bit confused: macOS runs here are all green. So where are the failures?
If you see how to RF to make it pass locally for you, that would be great. Pity that it doesn't trigger anywhere else indeed, but also it might be a bit of a concern -- in particular with #5022 where I do rely on similar closures, I was not expecting anything to be pickled (at least for that multithreaded execution support). Here, I guess for interprocess locking done by fasteners, pickling might be needed, and I was not aware of that, so may be some uses of the tested there helper would cause similar problems :-/? NFS issue is "known": #4958 |
The failures show up when all tests are enabled, such as in #5109. |
@yarikoptic I've refactored the local function test so that it passes. |
Ah, ok. So let's take this one from draft and merge if no new surprises emerge. The rest coughed be fixed in that other pr |
changes were sound and no concerns were raised, so let's proceed |
Fixes #4941.