Add --outdir parameter fallback to extend container image download support to older pipelines#4212
Open
MatthiasZepper wants to merge 6 commits intonf-core:devfrom
Open
Add --outdir parameter fallback to extend container image download support to older pipelines#4212MatthiasZepper wants to merge 6 commits intonf-core:devfrom
--outdir parameter fallback to extend container image download support to older pipelines#4212MatthiasZepper wants to merge 6 commits intonf-core:devfrom
Conversation
--outdir parameter fallback to extend container download image support to older pipelines--outdir parameter fallback to extend container image download support to older pipelines
Codecov Report❌ Patch coverage is
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d36cde1 to
d38eb0d
Compare
d38eb0d to
97bc3a9
Compare
There was a problem hiding this comment.
Pull request overview
Adds a fallback when extracting container images via nextflow inspect fails for older nf-core pipeline revisions that require --outdir to be set, improving download compatibility without user-visible changes.
Changes:
- Retry
nextflow inspectwith a temporary-params-fileprovidingoutdirwhen the failure indicates a missing--outdir. - Add unit tests covering the retry path and non-retry error propagation.
- Update
CHANGELOG.mdto mention the new compatibility behavior.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
nf_core/pipelines/download/download.py |
Implements nextflow inspect retry using a temporary params file when --outdir appears to be required. |
tests/pipelines/download/test_download.py |
Adds tests validating the retry behavior and correct error handling for unexpected failures. |
CHANGELOG.md |
Documents the download behavior change for older pipelines. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mashehu
approved these changes
Apr 23, 2026
97bc3a9 to
fe7bf46
Compare
Co-authored-by: Copilot <[email protected]> Co-authored-by: Matthias Hörtenhuber <[email protected]>
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.
Since we switched from the regex-based container image extraction to running
nextflow inspecton the downloaded pipelines, particularly older pipeline revisions caused issues.By convention nf-core pipelines expect an
--outdirparameter. If there was no default specified in the test profile of a revision, extraction of the container images failed:This PR now introduces a silent fallback exactly for this problem. For the user, the retry is silent, so they do not even notice that they can now successfully download a pipeline revision they could previously only obtain by pinning and using an older version of nf-core tools.
To test, e.g. try the following command with this patched version vs. the current dev:
nf-core pipelines download -r "3.14.0" -s "singularity" -u "amend" -x "none" rnaseqPR checklist
CHANGELOG.mdis updateddocsis updated