Skip to content

Update/nf test/nextflow v.25.10.4#19

Merged
sgsutcliffe merged 7 commits intodevfrom
update/nf-test/nextflow-v.25.10.4
Mar 20, 2026
Merged

Update/nf test/nextflow v.25.10.4#19
sgsutcliffe merged 7 commits intodevfrom
update/nf-test/nextflow-v.25.10.4

Conversation

@sgsutcliffe
Copy link
Collaborator

@sgsutcliffe sgsutcliffe commented Mar 19, 2026

  • Added nextflow 25.10.4 to GHA for nf-test
  • Made compatible with versions 23-26 of nextflow:
    • Modified the EXCLUSIONS process to check for mikrokondo file in channel using an approach that works for all versions of nextflow
    • Fixed up SISTR empty file test

@github-actions
Copy link

github-actions bot commented Mar 19, 2026

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 052b99e

+| ✅ 134 tests passed       |+
#| ❔  31 tests were ignored |#
!| ❗   2 tests had warnings |!
Details

❗ Test warnings:

❔ Tests ignored:

  • files_exist - File is ignored: assets/nf-core-typingQC_logo_light.png
  • files_exist - File is ignored: docs/images/nf-core-typingQC_logo_light.png
  • files_exist - File is ignored: docs/images/nf-core-typingQC_logo_dark.png
  • files_exist - File is ignored: .github/workflows/awstest.yml
  • files_exist - File is ignored: .github/workflows/awsfulltest.yml
  • files_exist - File is ignored: lib/Utils.groovy
  • files_exist - File is ignored: lib/WorkflowMain.groovy
  • files_exist - File is ignored: lib/NfcoreTemplate.groovy
  • files_exist - File is ignored: lib/WorkflowTypingQC.groovy
  • files_exist - File is ignored: conf/igenomes_ignored.config
  • files_exist - File is ignored: ro-crate-metadata.json
  • nextflow_config - Config variable ignored: manifest.name
  • nextflow_config - Config variable ignored: manifest.homePage
  • nextflow_config - Config variable ignored: params.max_cpus
  • files_unchanged - File ignored due to lint config: LICENSE or LICENSE.md or LICENCE or LICENCE.md
  • files_unchanged - File ignored due to lint config: .github/CONTRIBUTING.md
  • files_unchanged - File ignored due to lint config: .github/ISSUE_TEMPLATE/bug_report.yml
  • files_unchanged - File ignored due to lint config: .github/PULL_REQUEST_TEMPLATE.md
  • files_unchanged - File ignored due to lint config: .github/workflows/branch.yml
  • files_unchanged - File ignored due to lint config: .github/workflows/linting.yml
  • files_unchanged - File ignored due to lint config: assets/email_template.html
  • files_unchanged - File ignored due to lint config: assets/email_template.txt
  • files_unchanged - File ignored due to lint config: assets/sendmail_template.txt
  • files_unchanged - File does not exist: assets/nf-core-typingQC_logo_light.png
  • files_unchanged - File does not exist: docs/images/nf-core-typingQC_logo_light.png
  • files_unchanged - File does not exist: docs/images/nf-core-typingQC_logo_dark.png
  • files_unchanged - File ignored due to lint config: docs/README.md
  • files_unchanged - File ignored due to lint config: .gitignore or .prettierignore
  • actions_awstest - 'awstest.yml' workflow not found: /home/runner/work/typingQC/typingQC/.github/workflows/awstest.yml
  • actions_awsfulltest - actions_awsfulltest
  • pipeline_name_conventions - pipeline_name_conventions

✅ Tests passed:

Run details

  • nf-core/tools version 3.2.0
  • Run at 2026-03-20 18:40:04

def species = meta.Species ?: "Unknown"
def qc_status = meta.QCStatus ?: "Unknown"
def has_file = mikro_file && mikro_file.size() > 0 ? "--has_mikro_file" : ""
def has_file = (mikro_file && mikro_file.name != 'NO_FILE') ? "--has_mikro_file" : ""
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe the issue is with the path.size() when there is a single path in nextflow version 25 where it actually gives a 0/null
I noticed that the --has_mikro_file was not working in this version of nextflow so I am proposing an alternative approach.

Copy link
Collaborator

Choose a reason for hiding this comment

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

A much better approach!

then {
assert workflow.failed
assert workflow.stdout.contains("ERROR ~ Argument of `file` function cannot be empty")
assert workflow.stdout.any { it =~ /ERROR ~ Argument of `file\(\)?` function cannot be empty/ }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Made the error message flexible as depending on the nextflow version it can be file() or file in the error message.

then {
assert workflow.failed
assert workflow.stdout.contains("ERROR ~ Argument of `file` function cannot be empty")
assert workflow.stdout.any { it =~ /Argument of .* function cannot be empty/ }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Made it more flexible because regex was not working for both scenarios

@sgsutcliffe sgsutcliffe self-assigned this Mar 20, 2026
Copy link
Collaborator

@kylacochrane kylacochrane left a comment

Choose a reason for hiding this comment

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

Thanks so much for getting typingQC aligned with nextflow v.25.10.4 Steven!
This all looks great!

def species = meta.Species ?: "Unknown"
def qc_status = meta.QCStatus ?: "Unknown"
def has_file = mikro_file && mikro_file.size() > 0 ? "--has_mikro_file" : ""
def has_file = (mikro_file && mikro_file.name != 'NO_FILE') ? "--has_mikro_file" : ""
Copy link
Collaborator

Choose a reason for hiding this comment

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

A much better approach!

@sgsutcliffe sgsutcliffe merged commit da54f91 into dev Mar 20, 2026
5 checks passed
@sgsutcliffe sgsutcliffe deleted the update/nf-test/nextflow-v.25.10.4 branch March 20, 2026 18:46
@sgsutcliffe sgsutcliffe mentioned this pull request Mar 20, 2026
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