Add configuration option for Nextflow work directory management - #368
Open
k-florek wants to merge 1 commit into
Open
Add configuration option for Nextflow work directory management#368k-florek wants to merge 1 commit into
k-florek wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new configuration option,
useWorkDir, to allow users to delegate work directory management to Nextflow instead of nf-test. This is particularly useful for running tests in cloud environments the work directory is on a separate host from where nf-test is running. The implementation ensures that the work directory specified by nf-test is only created and passed to Nextflow ifuseWorkDiris enabled.This would address issue #78 and #91
Configuration enhancements:
useWorkDiroption to thenf-test.configconfiguration file, allowing users to control whether nf-test or Nextflow manages the work directory. The default istrue.Configclass to include theuseWorkDirproperty, along with its getter and setter methods. [1] [2]Conditional work directory handling:
AbstractTestto only create and set up the work directory ifuseWorkDiris enabled. [1] [2]PipelineTest,ProcessTest, andWorkflowTestto only pass the work directory to Nextflow ifuseWorkDiris enabled. [1] [2] [3]TestContextinitialization to handle cases where the work directory may not be set (i.e., whenuseWorkDiris false).