GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Removing _gcloud_vendor. by dhermes · Pull Request #808 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Apr 8, 2015

Copy link
Copy Markdown
Contributor

@craigcitro Removing our vendored in code and switching to the PyPI version of apitools gives 4 errors I can't readily grok. (This was similarly reported by @tseaver.)

Care to take a look and check out my branch?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dhermes
STASH: Removing _gcloud_vendor.
05a8089
@dhermes dhermes added api: storage Issues related to the Cloud Storage API. do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels Apr 8, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 8, 2015
@dhermes
Fixing 3 of the 4 broken tests.
a6c3f8a
@craigcitro

craigcitro commented Apr 8, 2015

Copy link
Copy Markdown
Contributor

so there were two separate issues here:

  • for the three failing download tests, there was the same root cause: in the case of a download with auto_transfer=False, and with total_size not set, we never parse the size from headers, and thus only download the first chunk. i believe this was lost in merging the gsutil branch, but it's definitely a bug in apitools -- fix will land shortly.
  • for the failing upload test, the issue is in the testing code: the mocked out _Connection object doesn't consume the bytes in the POST/PUT body in the case that it's a stream. this doesn't match the behavior of httplib, so a consistency check fails after "uploading" the first chunk.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Apr 8, 2015

Copy link
Copy Markdown
Contributor Author
  • I see, so my fix of auto_transfer=False -> True was not a fix. Is there a corresponding bug filed?
  • Where specifically should it be consumed? Anything passed to _Connection should be already consumed.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@craigcitro

craigcitro commented Apr 8, 2015

Copy link
Copy Markdown
Contributor
  • i didn't file a bug, but fix is in master on apitools. (reviewed internally -- just about at the point where i don't have to do that anymore. 😀 )

  • so httplib.HTTPConnection.request allows body to be a file-like object, and (in that case) will read all contents from the stream. i think the right approach here is to exhaust body in the request method -- but i don't know if that's the only hiccup you'll hit. in particular, though, doing something like

    def request(self, uri, method, headers, body, **kw):
        if hasattr(body, 'read'):
            body = body.read()
        return self._respond(uri=uri, method=method, headers=headers,
                             body=body, **kw)
    

    leads to this test passing (since we're now actually reading the bytes from the upload stream).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Apr 9, 2015

Copy link
Copy Markdown
Contributor Author

DERP. Thanks @craigcitro! I'm going to close this out and send a new PR. Note that we can't "accept" the PR unless google/apitools@a6feb8a is into a PyPI release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes dhermes closed this Apr 9, 2015
@dhermes dhermes mentioned this pull request Apr 9, 2015
Remove gcloud vendor and just use apitools code #811
Merged
@craigcitro

craigcitro commented Apr 9, 2015

Copy link
Copy Markdown
Contributor

done -- v0.4.2 is on pypi.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

parthea added a commit that referenced this pull request Aug 21, 2025
@parthea @chalmerlowe
fix: Allow protobuf 5.x; require protobuf >=3.20.2 (#808)
5ac665f
* fix: Allow protobuf 5.x; require protobuf >=3.20.2

* update constraints

---------

Co-authored-by: Chalmer Lowe <[email protected]>
parthea added a commit that referenced this pull request Sep 16, 2025
@parthea @chalmerlowe
fix: Allow protobuf 5.x; require protobuf >=3.20.2 (#808)
76299ce
* fix: Allow protobuf 5.x; require protobuf >=3.20.2

* update constraints

---------

Co-authored-by: Chalmer Lowe <[email protected]>
parthea pushed a commit that referenced this pull request Sep 18, 2025
@gcf-owl-bot
chore(python): update unittest workflow template (#808)
1e0a8e2
Source-Link: googleapis/synthtool@e6f91eb
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:365d92ef2206cfad00a8c5955c36789d0de124e2b6d92a72dd0486315a0f2e57

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
@busunkim96
refactor: remove duplication in grpc transport init (#808)
e26e5e8
* refactor: remove duplication in grpc transport init

* refactor: let base transport set final host, creds, scopes

* refactor: remove scopes or self.AUTH_SCOPES in grpc

* docs: explain self._prep_wrapped_messages
parthea added a commit that referenced this pull request Nov 24, 2025
@parthea @ohmayr
fix: resolve issue where pre-release versions of dependencies are ins…
2c28b0c
…talled (#808)

Co-authored-by: ohmayr <[email protected]>
parthea pushed a commit that referenced this pull request Nov 24, 2025
Bob "Wombat" Hogg
docs: remove line about Python 2.7 being unsupported (#808)
a1aa5d2
* docs: remove line about Python 2.7 being unsupported

According to the README and setup.py, we do support Python 2.7.

Also clarify that the utils module and its positional decorator
do still exist and does work in both Py2 and Py3

* Update migrating.rst
parthea pushed a commit that referenced this pull request Nov 26, 2025
@arithmetic1728
revert: revert "feat: service account is able to use a private token …
1c44086
…endpoint (#784)" (#808)

revert "feat: service account is able to use a private token endpoint (#784)" until b/194191737 is fixed.

This reverts commit 0e264092e35ac02ad68d5d91424ecba5397daa41.
parthea pushed a commit that referenced this pull request Mar 6, 2026
@gcf-owl-bot
build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…
b609d55
…cp/templates/python_library/.kokoro (#808)

Source-Link: googleapis/synthtool@b4fe62e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3bf87e47c2173d7eed42714589dc4da2c07c3268610f1e47f8e1a30decbfc7f1

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Mar 9, 2026
@cojenco
docs: update retry docs (#808)
2c0479c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement. do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@dhermes @craigcitro @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.