-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
Avoid relink if not having permissions #1045
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1045 +/- ##
===========================================
- Coverage 79.05% 65.85% -13.21%
===========================================
Files 30 30
Lines 6030 6030
Branches 1496 1496
===========================================
- Hits 4767 3971 -796
- Misses 883 1679 +796
Partials 380 380
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1045 +/- ##
==========================================
+ Coverage 73.33% 79.03% +5.69%
==========================================
Files 34 30 -4
Lines 6855 6033 -822
Branches 1743 1496 -247
==========================================
- Hits 5027 4768 -259
+ Misses 1296 885 -411
+ Partials 532 380 -152
Continue to review full report at Codecov.
|
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.
We need to fix the source of these root
owned files, not ignore them and clutter the user's storage system.
$ cwltool stage_array_in_dir.cwl --infiles README.rst --infiles CODE_OF_CONDUCT.md
/home/michael/cwltool/env3/bin/cwltool 1.0.20181221153915
Resolved 'stage_array_in_dir.cwl' to 'file:///home/michael/cwltool/stage_array_in_dir.cwl'
[job stage_array_in_dir.cwl] /tmp/4zbs2e73$ docker \
run \
-i \
--volume=/tmp/4zbs2e73:/AYRcZJ:rw \
--volume=/tmp/gar1cr_9:/tmp:rw \
--volume=/home/michael/cwltool/README.rst:/AYRcZJ/staged/README.rst:ro \
--volume=/home/michael/cwltool/CODE_OF_CONDUCT.md:/AYRcZJ/staged/CODE_OF_CONDUCT.md:ro \
--workdir=/AYRcZJ \
--read-only=true \
--user=1000:1000 \
--rm \
--env=TMPDIR=/tmp \
--env=HOME=/AYRcZJ \
--cidfile=/tmp/f9ahyhbr/20190422184929-544639.cid \
debian:stretch-slim \
ls \
staged
CODE_OF_CONDUCT.md
README.rst
[job stage_array_in_dir.cwl] Max memory used: 0MiB
Exception while running job
Traceback (most recent call last):
File "/home/michael/cwltool/cwltool/job.py", line 333, in _execute
inplace_update=self.inplace_update)
File "/home/michael/cwltool/cwltool/job.py", line 148, in relink_initialworkdir
os.remove(host_outdir_tgt)
PermissionError: [Errno 13] Permission denied: '/tmp/4zbs2e73/staged/README.rst'
[job stage_array_in_dir.cwl] completed permanentFail
{}
Final process status is permanentFail
(env3) michael@debian:~/cwltool$ ls -la /tmp/4zbs2e73/staged/
total 8
drwxr-xr-x 2 root root 4096 Apr 22 18:49 .
drwx------ 3 michael michael 4096 Apr 22 18:49 ..
-rwxr-xr-x 1 root root 0 Apr 22 18:49 CODE_OF_CONDUCT.md
-rwxr-xr-x 1 root root 0 Apr 22 18:49 README.rst
I don't think the source of the files are necessarily the issues, but the way that they're mounted on docker. I have a quite complicated tool where I mount files through a listing and also use a complex js to set the input value for a schema The docker command becomes as follows:
Looking at the 3rd mount argument:
Looks fine to me, However the output directory (even if its not used)
I'm running This causes the following error:
|
Fixes #1042