-
Notifications
You must be signed in to change notification settings - Fork 206
General: Update CI to test template pipelines with nf-test #3559
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
Conversation
hmm, might be overkill to also make sure the outputs are stable... just testing that nf-test is running should be good enough. |
I think it's good to check the outputs, it will help us avoid errors like we had some versions ago where we didn't have an output directory at all, but didn't notice because the pipeline was running and Nextflow didn't throw an error. |
true. okay, then let's create one snapshot per feature and track it in git? |
That would be great! What do you mean by "track it in git"? how would you do it? |
generate them once locally and have them in the repo. |
636879c
to
a9ad0de
Compare
TODO:
|
a04be96
to
f444218
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
886536c
to
206258a
Compare
d3353f9
to
f9b42cd
Compare
snapshots added! Could you have another look @mashehu ? |
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.
is __snapshots__
a standard directory name for snapshots?
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.
no, I did some research to see how people call these directories but didn't fine any standard. Would you rename it?
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.
I would call it snapshots
or maybe .snapshots
. the double underscore feels too pythony.
Co-authored-by: Matthias Hörtenhuber <mashehu@users.noreply.github.com>
When testing a new template pipeline, test it by running it and with nf-test.
When creating a pipeline skipping features, test it only with nf-test
Close #3497
Global issue #2994
Note
The fresh created pipeline will fail nf-test CI since we don't have a snapshot file.
Should we consider running nf-test to generate the snapshot after creating the pipeline?
Can't be added through template because it will be different depending on the steps skipped.
Snapshots are tracked now!