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

feat: async changes to resumable upload/download #153

Merged
merged 76 commits into from Sep 28, 2020

Conversation

anibadde
Copy link
Contributor

@anibadde anibadde commented Aug 3, 2020

AsyncIO functionality for resumable media

Current State: All unit tests for asynchronous functionality are passing. The system tests are close to complete, though a timeout context manager error means that we are currently not able to run the upload and download tests simultaneously and need to run each in separate sessions to avoid that bug.

Related Branch for auth: https://github.com/googleapis/google-auth-library-python/tree/async

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 3, 2020
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Show resolved Hide resolved
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

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

Some initial comments-- this definitely needs some cleanup.

google/async_resumable_media/__init__.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_helpers.py Outdated Show resolved Hide resolved
google/async_resumable_media/_helpers.py Outdated Show resolved Hide resolved
anibadde and others added 4 commits August 3, 2020 19:26
* fix(docs-presubmit): changes needed for docs-presubmit build

* docs: update docs build (via synth)

By manually running synthtool

* add docfx nox session
Copy link
Contributor Author

@anibadde anibadde left a comment

Choose a reason for hiding this comment

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

Review Comments

google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
google/async_resumable_media/_helpers.py Outdated Show resolved Hide resolved
google/async_resumable_media/_download.py Outdated Show resolved Hide resolved
anibadde and others added 8 commits August 5, 2020 10:37
* refactor: use named consts for session Python versions

Closes googleapis#150.
Co-authored-by: Tres Seaver <tseaver@palladion.com>
Prepare for upcoming version, which will namespace the module to avoid
conflict with the ICRAR version.

See: googleapis/python-crc32c#29
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Tres Seaver <tseaver@palladion.com>
@google-cla
Copy link

google-cla bot commented Aug 6, 2020

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Aug 6, 2020
@google-cla
Copy link

google-cla bot commented Aug 6, 2020

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@google-cla
Copy link

google-cla bot commented Aug 7, 2020

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@google-cla
Copy link

google-cla bot commented Aug 7, 2020

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@google-cla
Copy link

google-cla bot commented Aug 7, 2020

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added the cla: no This human has *not* signed the Contributor License Agreement. label Sep 25, 2020
@crwilcox crwilcox added cla: yes This human has signed the Contributor License Agreement. kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Sep 25, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 25, 2020
@crwilcox crwilcox added the kokoro:run Add this label to force Kokoro to re-run the tests. label Sep 25, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Sep 25, 2020
@google-cla
Copy link

google-cla bot commented Sep 25, 2020

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Sep 25, 2020
@crwilcox crwilcox added kokoro:run Add this label to force Kokoro to re-run the tests. cla: yes This human has signed the Contributor License Agreement. kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed cla: no This human has *not* signed the Contributor License Agreement. kokoro:run Add this label to force Kokoro to re-run the tests. labels Sep 25, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 25, 2020
@crwilcox crwilcox added the kokoro:run Add this label to force Kokoro to re-run the tests. label Sep 25, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Sep 25, 2020
@google-cla
Copy link

google-cla bot commented Sep 25, 2020

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Sep 25, 2020
@crwilcox crwilcox closed this Sep 25, 2020
@crwilcox crwilcox reopened this Sep 26, 2020
@crwilcox
Copy link
Collaborator

Merging. PR to follow to move to now internal surfaces on auth. Also it is now on the main branch of auth 🎉

@crwilcox crwilcox merged commit 190a62c into googleapis:async Sep 28, 2020
@crwilcox
Copy link
Collaborator

Thanks @anibadde for all your work on this!

crwilcox added a commit that referenced this pull request Oct 5, 2020
Merge long-lived async branch

* refactor: use named consts for session Python versions

* chore(deps): pin 'google-crc32c < 0.2dev' (#160)

* feat: async changes to resumable upload/download (#153)

* chore(deps): use google-auth >= 1.22.0, 2.0dev which includes google.auth.default_async, aiohttp_requests (#176)

* fix: move `async_resumable_media` to `_async_resumable_media` (#178)

Co-authored-by: Chris Cotter <cjcotter@google.com>
Co-authored-by: Takashi Matsuo <tmatsuo@google.com>
Co-authored-by: Tres Seaver <tseaver@palladion.com>
Co-authored-by: Anirudh Baddepudi <43104821+anibadde@users.noreply.github.com>
Co-authored-by: Anirudh Baddepuddi <anibadde@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: no This human has *not* signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants