Skip to content
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

Feat/init ci nf test #580

Merged
merged 24 commits into from
Jun 22, 2023
Merged

Feat/init ci nf test #580

merged 24 commits into from
Jun 22, 2023

Conversation

sateeshperi
Copy link
Contributor

@sateeshperi sateeshperi commented May 9, 2023

Summary

  • ✨ Add NF-TEST pipeline end-to-end tests for existing CI tests
  • NF-TEST pipeline Assertions - ✨ Featuring NF-TEST Snapshots, new File().exists() and !new File().exists() checks
  • 🛠️ tests/pipeline/UTILS.groovy for local groovy functions used in tests
  • 🤖 GitHub Actions CI - pull_request to dev tests with NXF_VER latest-everything
  • 🤖 GitHub Actions CI - pull_request to master tests with NXF_VER 22.10.1 & latest-everything

@github-actions
Copy link

github-actions bot commented May 9, 2023

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 91f1b4e

+| ✅ 154 tests passed       |+
#| ❔   3 tests were ignored |#
!| ❗   2 tests had warnings |!

❗ Test warnings:

  • readme - README did not have a Nextflow minimum version badge.
  • schema_lint - Parameter input is not defined in the correct subschema (input_output_options)

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 2.8
  • Run at 2023-06-21 15:38:12

@sateeshperi sateeshperi self-assigned this May 10, 2023
@sateeshperi sateeshperi added the enhancement New feature or request label May 10, 2023
@sateeshperi sateeshperi requested a review from edmundmiller May 10, 2023 11:56
@sateeshperi sateeshperi force-pushed the feat/init-ci-nf-test branch from a3e3c25 to f18878a Compare May 26, 2023 00:09
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@sateeshperi sateeshperi requested review from edmundmiller and removed request for edmundmiller May 26, 2023 00:34
@github-actions

This comment was marked as outdated.

@sateeshperi sateeshperi requested a review from ewels May 26, 2023 01:27
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

Copy link

@edmundmiller edmundmiller left a comment

Choose a reason for hiding this comment

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

Swap profiles for config paths. Maybe make an issue about migrating to tags?

.github/workflows/ci.yml Outdated Show resolved Hide resolved
tests/pipeline/misc/custom_reftax.nf.test Outdated Show resolved Hide resolved
tests/pipeline/misc/doubleprimers.nf.test Outdated Show resolved Hide resolved
@sateeshperi sateeshperi requested a review from edmundmiller June 5, 2023 01:45
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@sateeshperi sateeshperi force-pushed the feat/init-ci-nf-test branch from 364d086 to 1a4605c Compare June 19, 2023 22:51
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@sateeshperi sateeshperi force-pushed the feat/init-ci-nf-test branch 3 times, most recently from a25b327 to 1a662e5 Compare June 20, 2023 01:09
@sateeshperi sateeshperi force-pushed the feat/init-ci-nf-test branch from 1a662e5 to 4b093cd Compare June 20, 2023 02:08
@sateeshperi sateeshperi requested review from d4straub, erikrikarddaniel and grst and removed request for ewels June 20, 2023 12:38
Copy link
Collaborator

@d4straub d4straub left a comment

Choose a reason for hiding this comment

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

I cannot really comment on most of it.

Did I understand correctly, that:

  • *.nf.test.snap hold md5sums that are checked for via *.nf.test with snapshot(<file>).match(<key>)?
  • in *.nf.test new File(<file>).exists() "only" checks for existence but not checksums

This seems like a good addition.

edit; one more thing:
why only using "latest-everything" configuration and not the minimum nf version?

.github/workflows/ci.yml Outdated Show resolved Hide resolved
Copy link
Member

@grst grst left a comment

Choose a reason for hiding this comment

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

LGTM! I like how you combine tags and profiles as this allows to run tests with and without nf-test.

@sateeshperi sateeshperi added this to the 2.6.0 milestone Jun 20, 2023
Copy link

@edmundmiller edmundmiller left a comment

Choose a reason for hiding this comment

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

Looks good to me! I feel like the CI is getting complicated, though.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
@sateeshperi
Copy link
Contributor Author

sateeshperi commented Jun 20, 2023

Looks good to me! I feel like the CI is getting complicated, though.

😅 on the contrary I feel its streamlining much more now as we can kinda standardize the tests based on the profiles for all pipelines with multi profiles.

Copy link
Collaborator

@d4straub d4straub left a comment

Choose a reason for hiding this comment

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

LGTM

@sateeshperi sateeshperi merged commit c675e10 into dev Jun 22, 2023
@sateeshperi sateeshperi deleted the feat/init-ci-nf-test branch June 22, 2023 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants