-
Notifications
You must be signed in to change notification settings - Fork 596
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 -m flag to gsutil step; add dockstore branch filters to facilitate development #7104
Conversation
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.
one comment to address, but I need to know more about the dockstore thing before having a opinion on that. maybe at standup today?
gsutil cp pet_*.tsv ~{output_directory}/pet_tsvs/ | ||
gsutil cp vet_*.tsv ~{output_directory}/vet_tsvs/ | ||
|
||
gsutil -m cp metadata_*.tsv ~{output_directory}/metadata_tsvs/ |
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.
Did you ever determine the change in behavior when adding the -m w.r.t exit codes?
For example, trying gsutil cp file1.txt filethatdoesntexist.txt gs://destination
vs the same thing with -m. We can likely handle either case, but we should know (and maybe put a comment here about 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.
yes, I addressed this in the PR comment! but I can add a comment to the code, sure
ha -- no I just missed the PR comment and went right to the code!
-------------------------------
Kristian Cibulskis
Director, Technology - SpecOps
Broad Institute of MIT and Harvard
[email protected]
…On Thu, Feb 25, 2021 at 9:51 AM M. Morgan Taylor ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In scripts/variantstore/wdl/ImportGenomes.wdl
<#7104 (comment)>:
> @@ -168,10 +168,10 @@ task CreateImportTsvs {
--mode GENOMES \
-SNM ~{sample_map} \
--ref-version 38
-
- gsutil cp metadata_*.tsv ~{output_directory}/metadata_tsvs/
- gsutil cp pet_*.tsv ~{output_directory}/pet_tsvs/
- gsutil cp vet_*.tsv ~{output_directory}/vet_tsvs/
+
+ gsutil -m cp metadata_*.tsv ~{output_directory}/metadata_tsvs/
yes, I addressed this in the PR comment! but I can add a comment to the
code, sure
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#7104 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK3RAZ6QGZC7DLW4MQ55BLTAZPXZANCNFSM4YFMJBJA>
.
|
…e development (#7104) * add -m flag to gsutil cp, fix typo * add to dockstore.yml * add empty.json to dockstore.yml * lowercase workflow name * remove empty.json * re-add and fix indents * remove new wdl entirely from yml * re-add to dockstore.yml file * add real test perameter file * add dockstore branch filters * add comment to clarify error behavior of gsutil -m * remove feature branch from dockstore.yml, remove gsutil comment
…e development (#7104) * add -m flag to gsutil cp, fix typo * add to dockstore.yml * add empty.json to dockstore.yml * lowercase workflow name * remove empty.json * re-add and fix indents * remove new wdl entirely from yml * re-add to dockstore.yml file * add real test perameter file * add dockstore branch filters * add comment to clarify error behavior of gsutil -m * remove feature branch from dockstore.yml, remove gsutil comment
This PR addresses spec-ops issue #235 - Use -m flag in final gsutil mv of files in ImportGenomes.
Additionally, this PR adds branch filters to the dockstore.yml file that will help with development. The filter for each workflow indicates which branch(es) will show up for that workflow in dockstore. If we don't include these filters, dockstore will run checks of ALL workflows on ALL branches, which causes timeouts. We could remove these filters later (before merging to master) or not, but for now this could help us develop on ah_var_store. Note that we'll need to add feature branches to that file as we work on them.
This workflow was tested in Terra and the upload succeeded.
Also confirmed that if one file fails, the entire process throws an error code (i.e. -m flag will not cause failures to silently pass) - in example below,
test_file_list.txt
was a list of 6 files, including 1 file that did not exist.