-
Notifications
You must be signed in to change notification settings - Fork 90
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
Omics fixes #3924
Omics fixes #3924
Conversation
drernie
commented
Apr 3, 2024
- Use 'list_objects' if cannot call 'list_object_versions'
- Do NOT fail if the user cannot read the workflow config folder (causes many errors)
- Add integration test to check Omics access (will need to be removed, as it requires sales credentials)
- Use SHA256 for simple uploads and QuiltMultipartSHA256 for multipart
Co-authored-by: Sergey Fedoseev <[email protected]>
Co-authored-by: Dima Ryazanov <[email protected]>
Co-authored-by: Sergey Fedoseev <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3924 +/- ##
===========================================
- Coverage 36.58% 24.19% -12.39%
===========================================
Files 719 684 -35
Lines 31980 26040 -5940
Branches 4707 4707
===========================================
- Hits 11700 6301 -5399
+ Misses 19116 18575 -541
Partials 1164 1164
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
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.
this PR needs to be split at least into two parts: list objects logic change and workflow logic changes
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 see no reason to not having unit tests instead
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 have no idea how to test permission errors.
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.
you could find some example of its usage in the existing tests
@drernie |
why don't you use master branch as base of your PR?
I wasn’t thinking clearly when I created the branch, and now I don’t know how to change it.
… On Apr 2, 2024, at 23:26, Sergey Fedoseev ***@***.***> wrote:
@drernie <https://github.com/drernie>
why don't you use master branch as base of your PR?
—
Reply to this email directly, view it on GitHub <#3924 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAE2T5JSEX5BNQI7TV3C2LY3OOJVAVCNFSM6AAAAABFUSFBOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZTGY2TMNJTG4>.
You are receiving this because you were mentioned.
|
you could start from scratch and force push here |
objects, _ = list_object_versions(src.bucket, src_path) | ||
try: | ||
objects, _ = list_object_versions(src.bucket, src_path) | ||
except botocore.exceptions.ClientError as e: |
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.
it's still too broad
except botocore.exceptions.ClientError as e: | |
except botocore.exceptions.ClientError as e: | |
if e.response["Error"]["Code"] != "AccessDenied": | |
raise |
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.
Fixed in new PR
Let me just start over, rather than risk messing up git with my lack of skill: |