+
Skip to content

Conversation

ErikDanielsson
Copy link
Contributor

@ErikDanielsson ErikDanielsson commented Jul 31, 2025

This is a follow up PR on the large nf-core pipelines download refactor PR #3634 and the test PR #3712, and should be merged AFTER it.

This PR moves the gather_registries function from nf-core/pipelines/download/download.py to ContainerFetcher and subclasses.

  • The gather_registries function in SingularityFetcher mirrors the previous one.
  • The function in the DockerFetcher class only uses the docker.registry and podman.registry in the config and the Seqera Docker container registry (community.wave.seqera.io/library).

A diff with the refactor-download-tests base branch can be found in the dummy PR ErikDanielsson#1

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

@ErikDanielsson ErikDanielsson added the download nf-core download label Jul 31, 2025
Copy link

codecov bot commented Jul 31, 2025

Codecov Report

❌ Patch coverage is 89.09091% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.76%. Comparing base (7420367) to head (f6c7836).
⚠️ Report is 14 commits behind head on dev.

Files with missing lines Patch % Lines
nf_core/pipelines/download/docker.py 58.33% 5 Missing ⚠️
nf_core/pipelines/download/container_fetcher.py 95.23% 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.

@ErikDanielsson ErikDanielsson force-pushed the move-gather-registries branch from 1ddc474 to 957190e Compare August 1, 2025 12:03
@ErikDanielsson
Copy link
Contributor Author

ErikDanielsson commented Aug 14, 2025

I've looked into this a bit more and since it seems that nextflow inspect always produces an absolute URI, so with the current code we will never try different registries rendering the information provided via the -l flag unused. I am not sure how to best proceed here -- to either try to strip the container strings of the registry and then try all libraries provided with -l and default libraries, or to blindly pull from the output of nextflow inspect.

Of course, this is true for the other PRs too (this PR only changes where the gather_registries function is located) so the refactor might be actually be breaking the download API but somewhat silently.

@ErikDanielsson
Copy link
Contributor Author

Docs updated in nf-core/website#3463. Note that I have not addressed the issue in the comment above

Copy link
Contributor

@JulianFlesch JulianFlesch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important: Check and create issue for potential bug, when docker daemon is not running. We don't have to solve this here.

@JulianFlesch JulianFlesch merged commit 6c759f2 into nf-core:dev Aug 29, 2025
117 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

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载