Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@itrujnara
Copy link
Collaborator

@itrujnara itrujnara commented Jun 20, 2025

Fix several CI issues:

  • Rewrite tests to work correctly with Conda
  • Update modules that used Conda defaults in the old version
  • Update some Seqera containers to match Conda declarations

There might be some nf-core pipelines download issues left in the release CI after this PR

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!
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).

@github-actions
Copy link

github-actions bot commented Jun 20, 2025

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

Posted for pipeline commit 58e8494

+| ✅ 244 tests passed       |+
#| ❔   3 tests were ignored |#
!| ❗  36 tests had warnings |!
Details

❗ Test warnings:

❔ Tests ignored:

  • files_exist - File is ignored: conf/igenomes.config
  • files_unchanged - File ignored due to lint config: .github/CONTRIBUTING.md
  • files_unchanged - File ignored due to lint config: docs/images/nf-core-reportho_logo_light.png

✅ Tests passed:

Run details

  • nf-core/tools version 3.3.1
  • Run at 2025-07-03 10:01:17

Comment on lines 37 to 47
).match() },
{ assert using_conda || snapshot(
// Number of successful tasks
workflow.trace.succeeded().size(),
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions
removeNextflowVersion("$outputDir/pipeline_info/nf_core_reportho_software_mqc_versions.yml"),
// All report stable path name, with a relative path
report_stable_name,
// All report files with stable contents
report_stable_path
).match() }
Copy link

@Joon-Klaps Joon-Klaps Jun 20, 2025

Choose a reason for hiding this comment

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

Did you test this? conda tests did not run on ci. I think you might need two different snapshot names for match as they could overwrite each other.
ie .match("default profile") and .match("conda profile")

Copy link

@Joon-Klaps Joon-Klaps left a comment

Choose a reason for hiding this comment

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

Most of it looks good to me, but couple of things you might want to double check.

Comment on lines 84 to 93
).match() },
{ assert using_conda || snapshot(
// Number of successful tasks
workflow.trace.succeeded().size(),
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions
removeNextflowVersion("$outputDir/pipeline_info/nf_core_reportho_software_mqc_versions.yml"),
// All report stable path name, with a relative path
report_stable_name,
// All report files with stable contents
report_stable_path

Choose a reason for hiding this comment

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

Same as other comment

Comment on lines 26 to 27
def report_stable_name = getAllFilesFromDir("$outputDir/report", relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}'])
def report_stable_path = getAllFilesFromDir("$outputDir/report", ignoreFile: 'tests/.nftignore')

Choose a reason for hiding this comment

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

Maybe be consistent with params.outdir

then {
// stable_name: All files + folders in ${params.outdir}/ with a stable name
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}'])
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}', 'report', 'report/**'])

Choose a reason for hiding this comment

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

Was this deliberate? Looking at the snapshot almost all file names are removed.

@itrujnara
Copy link
Collaborator Author

Hi @Joon-Klaps, thanks for the review! It's great that you've noticed the issue. I've investigated, and it turns out that the non-Conda CI never runs. I'll need to find a better way to detect Conda runs, although it won't be easy, as I've already tried several and none worked correctly.

@itrujnara itrujnara requested a review from Joon-Klaps July 3, 2025 09:54
@itrujnara
Copy link
Collaborator Author

Hi @Joon-Klaps, after consultation with the other maintainers I've decided to give up on Conda tests for the upcoming release. I would appreciate a re-review.

@itrujnara itrujnara merged commit 841f398 into nf-core:dev Jul 3, 2025
14 checks 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