-
Notifications
You must be signed in to change notification settings - Fork 5
Fix CI issues #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CI issues #96
Conversation
|
tests/default.nf.test
Outdated
| ).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() } |
There was a problem hiding this comment.
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")
Joon-Klaps
left a comment
There was a problem hiding this 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.
tests/default.nf.test
Outdated
| ).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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as other comment
tests/default.nf.test
Outdated
| 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') |
There was a problem hiding this comment.
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/**']) |
There was a problem hiding this comment.
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.
|
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. |
|
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. |
Fix several CI issues:
defaultsin the old versionThere might be some
nf-core pipelines downloadissues left in the release CI after this PRPR checklist
nf-core lint).nextflow run . -profile test,docker --outdir <OUTDIR>).