-
Notifications
You must be signed in to change notification settings - Fork 648
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
Resolve Fusion symlinks when publishing files #4348
Conversation
Signed-off-by: Ben Sherman <[email protected]>
✅ Deploy Preview for nextflow-docs-staging canceled.
|
modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy
Outdated
Show resolved
Hide resolved
I updated Jordi's example script as follows: nextflow.enable.dsl=2
process CREATE {
output:
path "data.txt"
script:
"""
echo HELLO > data.txt
"""
}
process FORWARD {
input:
path "data.txt"
output:
path "data.txt"
script:
"""
echo AND >> data.txt
"""
}
process PUBLISH {
publishDir "${params.outdir}"
input:
path "data.txt"
output:
path "data.txt"
script:
'''
echo BYE >> data.txt
'''
}
workflow {
CREATE | FORWARD | PUBLISH
} And I found that the output file in |
Actually, it might not be so simple. When an input is forwarded as an output multiple times, there are conflicting needs:
If we can find a way to resolve the actual symlinks but preserve Nextflow's metadata, then maybe we can have it both ways. For example, we could add a field to |
Signed-off-by: Ben Sherman <[email protected]>
I worked around the previous problem by using the
This line does not work with the resolved Fusion symlink, because now the resolved file is not in the current task directory. So instead of publishing to I think this line is meant to deal with files that are in a subdirectory of the task directory, I should be able to fix it by resolving the Fusion symlink after this line. |
Signed-off-by: Ben Sherman <[email protected]>
modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy
Outdated
Show resolved
Hide resolved
|
modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy
Outdated
Show resolved
Hide resolved
….groovy Co-authored-by: Robert Syme <[email protected]> Signed-off-by: Ben Sherman <[email protected]>
Signed-off-by: Ben Sherman <[email protected]>
We have some open tickets related to this problem. I'd be good to make it progress to master. |
Signed-off-by: Ben Sherman <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
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.
Unit tests should be added for key logic
c367fd8
to
dd154a0
Compare
Is there a simple way to mock the S3 interactions here? Or do you want to use real S3 objects? |
note: also backporting to latest stable |
modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy
Outdated
Show resolved
Hide resolved
Signed-off-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
Regex "compilation" can be slow. Moved into a separate const, so it's parsed only the very first time 👉 0d853ea |
Signed-off-by: Ben Sherman <[email protected]>
The test is failing |
Signed-off-by: Paolo Di Tommaso <[email protected]>
Still failing |
Signed-off-by: Ben Sherman <[email protected]>
I think the integration tests are not set up to use Fusion, seems like AWS credentials are not provided |
Umm, this it should be added |
Signed-off-by: Ben Sherman <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
This commit is a supplement to PR #4348 to fix the issue #4309 Signed-off-by: Ben Sherman <[email protected]> Signed-off-by: Paolo Di Tommaso <[email protected]> Co-authored-by: Paolo Di Tommaso <[email protected]>
This commit is a supplement to PR #4348 to fix the issue #4309 Signed-off-by: Ben Sherman <[email protected]> Signed-off-by: Paolo Di Tommaso <[email protected]> Co-authored-by: Paolo Di Tommaso <[email protected]>
This commit fix the invalid resolution for Fusion symlink in publishDir directive when the output file is the same as an input file. Signed-off-by: Ben Sherman <[email protected]> Signed-off-by: Paolo Di Tommaso <[email protected]> Co-authored-by: Robert Syme <[email protected]> Co-authored-by: Paolo Di Tommaso <[email protected]>
This commit is a supplement to PR #4348 to fix the issue #4309 Signed-off-by: Ben Sherman <[email protected]> Signed-off-by: Paolo Di Tommaso <[email protected]> Co-authored-by: Paolo Di Tommaso <[email protected]>
Close #4309