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

Improve pipeline level snapshots #1379

Merged
merged 53 commits into from
Oct 2, 2024
Merged

Conversation

maxulysse
Copy link
Member

@maxulysse maxulysse commented Sep 13, 2024

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 - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/rnaseq branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

Copy link

github-actions bot commented Sep 13, 2024

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 1d35e2a

+| ✅ 174 tests passed       |+
#| ❔   9 tests were ignored |#
!| ❗   7 tests had warnings |!

❗ Test warnings:

  • files_exist - File not found: assets/multiqc_config.yml
  • files_exist - File not found: .github/workflows/awstest.yml
  • files_exist - File not found: .github/workflows/awsfulltest.yml
  • pipeline_todos - TODO string in main.nf: Optionally add in-text citation tools to this list.
  • pipeline_todos - TODO string in main.nf: Optionally add bibliographic entries to this list.
  • pipeline_todos - TODO string in main.nf: Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!
  • pipeline_todos - TODO string in methods_description_template.yml: #Update the HTML below to your preferred methods description, e.g. add publication citation for this pipeline

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 2.14.1
  • Run at 2024-10-02 06:43:07

@maxulysse
Copy link
Member Author

ok, so changing tests/default.nf.test.snap and tests/lib/UTILS.groovy did not trigger any pipeline level tests.

@pinin4fjords
Copy link
Member

pinin4fjords commented Sep 13, 2024

You've not actually added any of my bits ;-)

CHANGELOG.md Show resolved Hide resolved
tests/default.nf.test Outdated Show resolved Hide resolved
@maxulysse
Copy link
Member Author

maxulysse commented Sep 19, 2024

As @pinin4fjords said relative path in snapshots would be a nice addition, especially for the file that only have stable names

@pinin4fjords
Copy link
Member

I do love that this comes from the external plugin now. But why no relative paths, so we could distinguish files with the same name in different subdirs?

@maxulysse
Copy link
Member Author

I do love that this comes from the external plugin now. But why no relative paths, so we could distinguish files with the same name in different subdirs?

I just quickly reworked the regexes into globs as it was faster, and a nice POC, I'll update with proper paths now

@maxulysse
Copy link
Member Author

I do love that this comes from the external plugin now. But why no relative paths, so we could distinguish files with the same name in different subdirs?

I just quickly reworked the regexes into globs as it was faster, and a nice POC, I'll update with proper paths now

Or did you meant relative paths in the snapshots?

Copy link
Member

@pinin4fjords pinin4fjords left a comment

Choose a reason for hiding this comment

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

Really nice work @maxulysse !

@maxulysse maxulysse merged commit 07197c5 into nf-core:dev Oct 2, 2024
24 checks passed
@maxulysse maxulysse deleted the better_snapshots branch October 2, 2024 08:15
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