Skip to content

Fix #4028: Download platform tags and dirs#4185

Merged
MatthiasZepper merged 5 commits intonf-core:devfrom
MatthiasZepper:fix/download-platform-tags-and-dirs
Apr 16, 2026
Merged

Fix #4028: Download platform tags and dirs#4185
MatthiasZepper merged 5 commits intonf-core:devfrom
MatthiasZepper:fix/download-platform-tags-and-dirs

Conversation

@MatthiasZepper
Copy link
Copy Markdown
Member

@MatthiasZepper MatthiasZepper commented Apr 13, 2026

This pull request fixes the issues described in #4028. It

  • Corrects the self.output_filename
  • Removes the parent from bare_clone() to ensure that the clone is actually inside the subdirectory named pipeline.git.
  • Introduces an edge case handling in tidy_tags_and_branches() to avoid erroring out.

Regarding the poor test coverage: I would like to defer this to #2940, when the whole logic must be reworked anyway. I don't really have time for it, but I can test if AI can actually help there.

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

❌ Patch coverage is 44.44444% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.02%. Comparing base (c8c050a) to head (b58c52a).
⚠️ Report is 6 commits behind head on dev.

Files with missing lines Patch % Lines
nf_core/pipelines/download/workflow_repo.py 44.00% 14 Missing ⚠️
nf_core/pipelines/download/download.py 50.00% 1 Missing ⚠️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MatthiasZepper MatthiasZepper added the download nf-core download label Apr 13, 2026
@mashehu mashehu force-pushed the fix/download-platform-tags-and-dirs branch from a0f587e to 02e06bc Compare April 15, 2026 09:52
@mashehu
Copy link
Copy Markdown
Contributor

mashehu commented Apr 15, 2026

Just checking in as we are soon wrapping up for the release, how much is missing for this PR to be ready to be merged?

@MatthiasZepper
Copy link
Copy Markdown
Member Author

MatthiasZepper commented Apr 15, 2026

Just checking in as we are soon wrapping up for the release, how much is missing for this PR to be ready to be merged?

Essentially done. There is one issue that I identified during manual tests and that may be related or not. I still need to debug or at least identify the cause of that problem here:

nf-core pipelines download --platform -f -r "3.24.0" rnaseq --tag "3.24.0=rustqc" --outdir "foo" -s "singularity"


                                          ,--./,-.
          ___     __   __   __   ___     /,-._.--~\
    |\ | |__  __ /  ` /  \ |__) |__         }  {
    | \| |       \__, \__/ |  \ |___     \`-._,-`-,
                                          `._,._,'

    nf-core/tools version 3.6.0.dev0 - https://nf-co.re


WARNING  Could not find GitHub authentication token. Some API requests may fail.
INFO     Detected Nextflow version 25.10.4
WARNING  Deleting existing output directory: 'lalal'
INFO     Saving 'nf-core/rnaseq'
         Pipeline revision: '3.24.0'
         Use containers: 'singularity'
         Container library: 'quay.io'
         Using NXF_SINGULARITY_CACHEDIR': /Users/matthias.zepper/SingularityImages/nf-core-cache'
         Output file: 'foo/rnaseq.git'
         Enabled for Seqera Platform: 'True'
INFO     Downloading workflow for Seqera Platform
INFO     Collecting workflow from GitHub
INFO     Fetching container names for workflow revision 3.24.0 using nextflow inspect. This might take a while.
INFO     Processing workflow revision 3.24.0, found 46 container images in total.
Processing container images ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━   0% • 0/90 tasks completed
Pulling singularity images ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━   0% • 0/44 tasks completed
ERROR    [Errno 2] No such file or directory: '/Users/matthias.zepper/SingularityImages/nf-core-cache/tmpuj46rgpn/tempfile' ->
         '/Users/matthias.zepper/SingularityImages/nf-core-cache/nvcr.io-nvidia-clara-clara-parabricks-4.6.0-1.img'

No idea why that doesn't work...

@MatthiasZepper MatthiasZepper marked this pull request as ready for review April 15, 2026 14:54
@MatthiasZepper
Copy link
Copy Markdown
Member Author

Ready for review. That issue originated from a misconfiguration on my system and is not related to the PR.

@MatthiasZepper MatthiasZepper requested a review from mashehu April 15, 2026 14:58
Comment thread nf_core/pipelines/download/workflow_repo.py Outdated
@mashehu mashehu force-pushed the fix/download-platform-tags-and-dirs branch from 02e06bc to 2f38be6 Compare April 16, 2026 10:11
@MatthiasZepper MatthiasZepper merged commit fec3363 into nf-core:dev Apr 16, 2026
116 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

download nf-core download

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants