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

Separate CI tests #350

Merged
merged 79 commits into from
Aug 17, 2023
Merged

Separate CI tests #350

merged 79 commits into from
Aug 17, 2023

Conversation

LilyAnderssonLee
Copy link
Contributor

PR checklist

Fix the issue #314

  • 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/taxprofiler 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>).
  • 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).

@github-actions
Copy link

github-actions bot commented Aug 9, 2023

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 080dfd1

+| ✅ 157 tests passed       |+
!| ❗   1 tests had warnings |!

❗ Test warnings:

  • 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 passed:

Run details

  • nf-core/tools version 2.9
  • Run at 2023-08-17 07:18:31

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

@jfy133 jfy133 left a comment

Choose a reason for hiding this comment

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

Getting there!

Comment on lines 39 to 42
- "--preprocessing_qc_tool=falco"
- "--shortread_qc_tool=fastp"
- "--shortread_qc_tool=adapterremoval"
- "--shortread_complexityfilter_tool=bbduk"
Copy link
Member

Choose a reason for hiding this comment

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

I guess these still need to be replaced with profiles?

Copy link
Contributor Author

@LilyAnderssonLee LilyAnderssonLee Aug 11, 2023

Choose a reason for hiding this comment

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

Do you mean changed it into:
- "docker,--preprocessing_qc_tool=falco --shortread_qc_tool=fastp --shortread_qc_tool=adapterremoval --shortread_complexityfilter_tool=bbduk --shortread_complexityfilter_tool=prinseqplusplus"

Copy link
Member

Choose a reason for hiding this comment

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

No, if i have a spare 30 minutes today I'll push changes what I mean

Copy link
Member

@jfy133 jfy133 Aug 11, 2023

Choose a reason for hiding this comment

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

What I mean is: -profile test_falco for example, then -profile test_bbduk

Copy link
Contributor Author

@LilyAnderssonLee LilyAnderssonLee Aug 11, 2023

Choose a reason for hiding this comment

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

Thanks! I will prepare the rest of test configs.

Comment on lines 68 to 71
wget https://raw.githubusercontent.com/motu-tool/mOTUs/master/motus/downloadDB.py
python downloadDB.py > download_db_log.txt
echo 'tool,db_name,db_params,db_path' > 'database_motus.csv'
echo 'motus,db_mOTU,,db_mOTU' >> 'database_motus.csv'
Copy link
Member

Choose a reason for hiding this comment

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

And these lines need to be replace with a bash if else statement (if matrix.tags), and merged with the main tests, and the github actions YAML if: statement needs to be removed -> allowing to have a single test, entry in the YAML and the conditionals within the command: block (I hope that makes sense!)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure about this error.
image

Copy link
Member

Choose a reason for hiding this comment

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

You'll need to check the bash, something is stopping the full evaluation before the final fi. You could try copy pasting into shellcheck and maybe that will give you more info

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree with you. I though it could be caused by indentation. But the command lines work in shell if I just replace the 2 space (default in yml ) into tab (default in shell). No idea how to solve it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks to @samuell the issue was solved. It was not allowed to use multiline code within a bash block while using Wandalen/[email protected]

@LilyAnderssonLee
Copy link
Contributor Author

@jfy133 All CI tests passed except test_motus which seems caused by the path of database_motus.csv. Have tried to change it into ${{github.workspace}}/database_motus.csv and it didn't help.

@jfy133
Copy link
Member

jfy133 commented Aug 15, 2023

Edit: maybe try ls and cat database_motus.tsv in the if else statement to see if it exists where you expect?

@jfy133
Copy link
Member

jfy133 commented Aug 15, 2023

The error in GHa to me looks like the if/else still isn't being parsed properly?

No wait Indeed I think the bash isn't workinng:

Screenshot_20230815-214340-336.png

@LilyAnderssonLee
Copy link
Contributor Author

@jfy133 you are right that it seems like I can not use if condition under action according to Wandalen/wretry.action#16
I will try to put if condition outside of the action and we will see what will happen.

@jfy133
Copy link
Member

jfy133 commented Aug 16, 2023

Oops - @LilyAnderssonLee all test profiles except test_nothing and test_full!! The latter is a special case that will only run on AWS!

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

@jfy133 jfy133 left a comment

Choose a reason for hiding this comment

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

A few minor tweaks:

  • For test configs that use tools that 'modify' the FASTQ files (e.g. complexity filtering) I think it is safer to actually run all downstream steps to make sure for whatever reason they don't 'corrupt' the FASTQ file for the downstream steps for whatever reason (however with a smaller set of profilers to reduce our computational footprint)

CHANGELOG.md Outdated Show resolved Hide resolved
conf/test_adapterremoval.config Outdated Show resolved Hide resolved
conf/test_adapterremoval.config Outdated Show resolved Hide resolved
conf/test_adapterremoval.config Outdated Show resolved Hide resolved
conf/test_bbduk.config Outdated Show resolved Hide resolved
conf/test_fastp.config Outdated Show resolved Hide resolved
conf/test_fastp.config Outdated Show resolved Hide resolved
conf/test_prinseqplusplus.config Outdated Show resolved Hide resolved
conf/test_bbduk.config Outdated Show resolved Hide resolved
@LilyAnderssonLee
Copy link
Contributor Author

Good point! I agree with changes.

@LilyAnderssonLee LilyAnderssonLee self-assigned this Aug 17, 2023
@LilyAnderssonLee LilyAnderssonLee merged commit 5e9f718 into nf-core:dev Aug 17, 2023
26 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.

3 participants