You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since glob acts on local paths. It looks like it was just copied from _local_listdir.
I imagine the tests pass, on GH actions because the SSH is just set up to connect to the localhost
The `listdir` method of the SSH transport plugin was using
`glob.glob` instead of `self.glob` when a pattern was specified.
This is wrong because it's listing files locally and not on the
remote.
The tests passed because they are running on localhost.
Also, this method is probably never called by AiiDA so it went unnoticed.
This commit fixes the issue. I'm not sure if there is a simple
way to fix the tests - probably we should run them against a
docker container or at least a chroot'ed folder? This might be
another issue to be opened though.
Fixesaiidateam#5244
Thanks, you're right! I opened a PR to fix the bug.
As I mentioned in the commit, maybe in the future we should run the tests for the transport against a docker container - this however requires (a bit of) work to rewrite the way SSH tests are run probably...
Pretty sure this is erroneous:
aiida-core/aiida/transports/plugins/ssh.py
Lines 1277 to 1280 in 08ac107
since
glob
acts on local paths. It looks like it was just copied from_local_listdir
.I imagine the tests pass, on GH actions because the SSH is just set up to connect to the localhost
unless I'm missing something @giovannipizzi @sphuber?
The text was updated successfully, but these errors were encountered: