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

Add params.test_data_base and keep path coherent #2739

Merged
merged 2 commits into from
Jan 12, 2023

Conversation

maxulysse
Copy link
Member

PR checklist

Closes #XXX

  • 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 module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Emit the versions.yml file.
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • PROFILE=docker pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware
    • PROFILE=singularity pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware
    • PROFILE=conda pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware

@maxulysse
Copy link
Member Author

maxulysse commented Jan 11, 2023

@maxulysse
Copy link
Member Author

Ran:

TMPDIR=~ PROFILE=docker pytest --tag cnvkit/batch --symlink --kwdof --git-aware --color=yes

Locally without issue

Copy link
Contributor

@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.

Love it!

@FriederikeHanssen
Copy link
Contributor

Sorry, I think I missed some major issues :/ . Why is this better then having the path in the header?

@maxulysse
Copy link
Member Author

Sorry, I think I missed some major issues :/ . Why is this better then having the path in the header?

Just easier to modify.
Let's say you want to run the test locally.
Just download the files you need, and you just need to set the params.test_data_base and you're good to go

Copy link
Contributor

@matthdsm matthdsm left a comment

Choose a reason for hiding this comment

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

me likey!

@FriederikeHanssen
Copy link
Contributor

Sorry, I think I missed some major issues :/ . Why is this better then having the path in the header?

Just easier to modify. Let's say you want to run the test locally. Just download the files you need, and you just need to set the params.test_data_base and you're good to go

alright, makes sense

Copy link
Contributor

@FriederikeHanssen FriederikeHanssen 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. Did you test with a local repo, that it all works as expected?

@maxulysse
Copy link
Member Author

looks good to me. Did you test with a local repo, that it all works as expected?

Tested it locally, no issues.
Testing a similar things in nf-core/sarek#909, and no issues.

Actually solving 2 issues in one go there:

  • params to modify the path whenever/wherever we (or anyone else) see fit.
  • fixing the path, not to include data/, so that data/ is actually in the path of all files

@maxulysse maxulysse merged commit dbc5b2e into nf-core:master Jan 12, 2023
@maxulysse maxulysse deleted the test_data_base branch January 12, 2023 10:00
@maxulysse maxulysse mentioned this pull request Jan 26, 2023
14 tasks
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.

5 participants