Skip to content

Log subworkflow dependencies on install (#3871)#4357

Open
xorrito624 wants to merge 1 commit into
nf-core:devfrom
xorrito624:dev
Open

Log subworkflow dependencies on install (#3871)#4357
xorrito624 wants to merge 1 commit into
nf-core:devfrom
xorrito624:dev

Conversation

@xorrito624

Copy link
Copy Markdown

Mirror remove.py by logging installed components and their dependencies during subworkflow install, and add a test for the dependency log output.

@xorrito624
xorrito624 requested a review from mashehu June 28, 2026 07:32
@codecov

codecov Bot commented Jun 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.83%. Comparing base (a38c373) to head (67f824f).
⚠️ Report is 1 commits behind head on dev.

☔ 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.

@xorrito624
xorrito624 force-pushed the dev branch 2 times, most recently from d61a348 to 3b2c774 Compare June 28, 2026 15:01
@mashehu

mashehu commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

failing pytests are fixed in 2cf4c36

@mashehu
mashehu force-pushed the dev branch 2 times, most recently from 504c62d to a8a0603 Compare June 30, 2026 14:33
@mashehu

mashehu commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

@nf-core-bot fix linting

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Cannot proceed with deployment

  • reviewDecision: REVIEW_REQUIRED

All deployments from forks must have the required reviews before they can proceed. Please ensure this PR has been reviewed and approved before trying again.

Comment on lines +174 to +175
installed_components = []
installed_components.append(component)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
installed_components = []
installed_components.append(component)
installed_components = [component]

assert samtools_flagstat_path.exists()

def test_subworkflows_install_logs_dependencies(self):
"""Installing a subworkflow should log its module dependencies (#3871)."""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
"""Installing a subworkflow should log its module dependencies (#3871)."""
"""Installing a subworkflow should log its module dependencies."""

self.force = False
try:
self.install_included_components(component_dir)
self.install_included_components(component_dir, installed_components)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is the installed_components really needed? it just contains component here. better that install_included_components returns a list of installed components that we then use to log

or maybe just move the logging to the loop inside install_included_components, so we don't need to log anything on a higher level

Mirror remove.py by logging installed components and their dependencies
during subworkflow install, and add a test for the dependency log output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants