-
Notifications
You must be signed in to change notification settings - Fork 21
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
Issues with PATH when Docker is enabled #149
Comments
I am experiencing the same problem. And it seems to be a problem with mounting the meta directory correctly into the work When I do some debugging all the meta subdirs are empty
|
Further debugging. The symbolic links are broken
|
This seems to be exclusively an nf-test issue in that I can run the same dataset using |
As far as my investigations take me docker is not mounting the directory with code into the container. |
Thanks, Anthony, for the investigation. I will have a look at it tomorrow. |
I have put together a small example of the problem An example of where it is failing is The same files and pipeline run using plain The error is due to the
This is despite it being available for an earlier process and a python script in the bin directory being accessed there |
@lukfor. Happy 2024 |
We are seeing similar issues in nf-core/fetchngs too: I am able to reproduce locally now but wasn't before for some reason. Weirdly if I run
The
|
Thanks for all the details! I will try to find some time on the weekend to work on this. |
PS: An additional mounting of the home directory is what fixed it but probably needs a more nf-test native solution: |
Thanks! Makes sense. It seems the issue may introduced creating a symlink to the bin folder since version 0.8.x. It seems also that the problem depends on the Docker version and the operating system, since everything working as expected on macOS. |
I can confirm that when I compile the code with the staging mode set to copy, use the compiled jar file in the code on gitlab CI it now works and the tests pass. Thanks! @lukfor when are you targeting a 0.9.0 release? |
Thanks Anthony for testing the branch 🙏🏼 I will merge the PR and create a new release tomorrow. |
I just released version 0.8.3. Harshil, could you give it a try? Thanks! |
Looks good and seems to be working as expected. Thanks for the quick turnaround! PS: https://www.nf-test.com/ seems to be down. Getting a 404. |
Thanks! PS: Thanks, fixed! |
Thanks for the quick turnaround @lukfor. 0.8.3 works for me :) |
Hi @lukfor, thanks for the work put into this!
I am running into an issue when I am trying to test processes that execute custom scripts within Docker – it seems that they are not added to
PATH
correctly. I have seen #31 and, indeed, when I run the test withdocker.enabled = false
, everything works as expected. I have also verified that executing the nextflow pipeline with the same parameters works as expected.Here is a minimal example:
Command:
Error:
Directory structure:
bin/hello.py
modules/hello.nf
tests/nextflow.config
tests/modules/hello.nf.test
I am using
nf-test 0.8.1
andnextflow 22.10.6
Cheers,
Jan
The text was updated successfully, but these errors were encountered: