Skip to content

Update wfmash: topic versions, stub block, sanitizeOutput#11449

Open
HReed1 wants to merge 4 commits intonf-core:masterfrom
HReed1:stub-topics-wfmash
Open

Update wfmash: topic versions, stub block, sanitizeOutput#11449
HReed1 wants to merge 4 commits intonf-core:masterfrom
HReed1:stub-topics-wfmash

Conversation

@HReed1
Copy link
Copy Markdown
Contributor

@HReed1 HReed1 commented Apr 30, 2026

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool, add --profile docker,wave tests.
  • Make sure your code lints (nf-core modules lint).
  • Ensure the test suite passes (nf-test test).

Description of changes

Migrates the wfmash module to the nf-core v4.0.1 architecture:

  • topic: versions: Replaced legacy versions.yml file emission with dynamic eval() tuple emission on the topic: versions channel.
  • stub block: Added a deterministic stub: block for CI/CD stub-run support.
  • sanitizeOutput: Refactored all test assertions to use sanitizeOutput(process.out) per nf-test best practices.
  • meta.yml: Updated to include both output: versions_wfmash and topics: versions sections.

Part of the v4.0.1 standardization effort tracked in #11323.

Part of #4570

assertAll(
{ assert process.success },
{ assert snapshot(process.out.versions).match("versions") }
{ assert snapshot(sanitizeOutput(process.out)).match() }
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.

The paf channel is unstable, add as such into sanitizeOutput.

@HReed1 HReed1 force-pushed the stub-topics-wfmash branch from 3d1fa72 to d65ae3b Compare May 1, 2026 12:07
HReed1 and others added 2 commits May 1, 2026 09:20
…apshots

- main.nf: emit: versions -> emit: versions_wfmash
- meta.yml: output key versions: -> versions_wfmash:
- main.nf/meta.yml: simplify eval string to use sed instead of dual cuts
- tests/main.nf.test.snap: regenerate snapshots

Local lint: 52/0. Local nf-test: 2/2 passed.
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.

2 participants