-
Notifications
You must be signed in to change notification settings - Fork 719
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
Replace base path for test data with new form #4723
Replace base path for test data with new form #4723
Conversation
Changes: - Base path for test data is now replaced with a more logical form based on discussions on Slack - from modules_test_data_base to testdata_base_path - Should be more explicit and reduce confusion with 'database'
Can you wait 5 min, and we test with s3? |
yep. |
Let's make sure it all works before using S3. |
Co-authored-by: Maxime U Garcia <maxime.garcia@seqera.io>
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.
LGTM
Keeping it as a draft for now |
@@ -2,7 +2,7 @@ params { | |||
publish_dir_mode = "copy" | |||
singularity_pull_docker_container = false | |||
test_data_base = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules' | |||
modules_test_data_base = 'https://raw.githubusercontent.com/nf-core/test-datasets/3e79d4b5fbed8c6ef7546d50696b343ab9a95fbe/' | |||
testdata_base_path = 's3://ngi-igenomes/testdata/nf-core/modules/' |
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.
Actually if we want to use files from github, we can use
modules_test_data_base = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/
and we're good, so we still are backward compatible-ish.
We could even update https://github.com/nf-core/modules/blob/master/tests/config/test_data.config so that data is in test_data_base and not in the paths, and we can easily switch from s3 to github
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.
nevermind actually, since we plan to drop the usage of this file, we actually don't need anything done
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.
just modules_test_data_base = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/'
and we're good to go
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.
Wait, do we want to pull from GH by default?
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, but it's still a possibility, that all I'm saying
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.
What we achieve here is tests portability, and we proved that by mirroring all we have on GitHub to s3.
Now one could test with s3, github links or local path
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.
In that case, merge away?
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.
Do we have a ✔️ from @drpatelh?
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.
We spend our lives seeking @drpatelh's approval. It's like Succession with API failures.
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.
so I did test with local path, and it works
* Replace base path for test data with new form Changes: - Base path for test data is now replaced with a more logical form based on discussions on Slack - from modules_test_data_base to testdata_base_path - Should be more explicit and reduce confusion with 'database' * Update to use s3 base path Co-authored-by: Maxime U Garcia <maxime.garcia@seqera.io> * Remove date path * Remove leading slash from file path and move to parameter value * sratools/prefetch uses modules_test_data_base_path * Update md5 * Removed variable md5sum --------- Co-authored-by: Maxime U Garcia <maxime.garcia@seqera.io>
* Replace base path for test data with new form Changes: - Base path for test data is now replaced with a more logical form based on discussions on Slack - from modules_test_data_base to testdata_base_path - Should be more explicit and reduce confusion with 'database' * Update to use s3 base path Co-authored-by: Maxime U Garcia <maxime.garcia@seqera.io> * Remove date path * Remove leading slash from file path and move to parameter value * sratools/prefetch uses modules_test_data_base_path * Update md5 * Removed variable md5sum --------- Co-authored-by: Maxime U Garcia <maxime.garcia@seqera.io>
* Replace base path for test data with new form Changes: - Base path for test data is now replaced with a more logical form based on discussions on Slack - from modules_test_data_base to testdata_base_path - Should be more explicit and reduce confusion with 'database' * Update to use s3 base path Co-authored-by: Maxime U Garcia <maxime.garcia@seqera.io> * Remove date path * Remove leading slash from file path and move to parameter value * sratools/prefetch uses modules_test_data_base_path * Update md5 * Removed variable md5sum --------- Co-authored-by: Maxime U Garcia <maxime.garcia@seqera.io>
Changes:
PR checklist
versions.yml
file.label
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