8000 Move uses of nextflow as a subprocess to new common module by kotofos · Pull Request #4665 · nf-core/tools · GitHub
[go: up one dir, main page]

Skip to content

Move uses of nextflow as a subprocess to new common module - #4665

Open
kotofos wants to merge 5 commits into
nf-core:devfrom
kotofos:issue-4533-nextflow
Open

kotofos wants to merge 5 commits into
nf-core:devfrom
kotofos:issue-4533-nextflow

Conversation

@kotofos
@kotofos kotofos commented Dec 3, 2026 •
Copy link
Copy Markdown

Closes #4533.

Move Nextflow subprocess execution into nf_core.nextflow and share the inspect implementation used by pipeline downloads and module container lookup. This addresses the class of parsing bug fixed in #4532.

  • Capture stdout and stderr separately in NextflowRun.
  • Checked commands raise NextflowError with the exit code and both streams.
  • Add lint(paths) as a batch helper for future callers. The existing pre-commit hook remains the pipeline lint entry point
  • I kept caller-specific behavior where simplifying it would change what users see. Downloads still retry when outdir is missing, module inspection can fallback when a container cannot be resolved.

Issue checklist

  • Nothing outside nf_core/nextflow.py runs Nextflow
  • Both inspect call sites share one implementation
  • Tests use captured output from Nextflow < 26.05, ≥ 26.05 and agent mode (25.10.4 and 26.10.0)

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 (No public API changes)

@kotofos kotofos changed the title Issue 4533 nextflow Move uses of nextflow as a subprocess to new common module Dec 4, 2026
@codecov
codecov Bot commented Dec 4, 2026 •
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.85039% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.51%. Comparing base (ee3d993) to head (e3a3475).

Files with missing lines Patch % Lines
nf 8000 _core/components/nfcore_component.py 85.71% 1 Missing ⚠️
nf_core/nextflow.py 98.82% 1 Missing ⚠️
nf_core/pipelines/download/download.py 92.85% 1 Missing ⚠️
nf_core/pipelines/list.py 90.90% 1 Missing ⚠️

☔ View full report in Codecov by Harness.
📢 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.

@kotofos
kotofos marked this pull request as ready for review December 4, 2026 18:12
@kotofos
kotofos requested a review from a team as a code owner December 4, 2026 18:12

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0