Skip to content

Conversation

@daspecster
Copy link
Contributor

I know this is probably up for debate, I just wanted to learn more about this.
If you guys do want to re-enable this(#1911) I'll make whatever changes are needed!

Or let me know and I'll close this if you want to go in a different direction.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 1, 2016
@daspecster daspecster added the api: pubsub Issues related to the Pub/Sub API. label Jul 1, 2016
@tseaver tseaver added the grpc label Jul 1, 2016
result = self._gax_api.publish(topic_path, message_pbs,
options=options)
# result = self._gax_api.publish(topic_path, message_pbs,
# options=options)

This comment was marked as spam.

This comment was marked as spam.

@tseaver
Copy link
Contributor

tseaver commented Jul 1, 2016

@daspecster Can you try running the pubsub system tests on your branch with gRPC enabled? E.g.:

$ tox -e system-tests --notest
$ GCLOUD_ENABLE_GAX .tox/system-tests/bin/python \
  system_tests/run_system_test.py --package=pubsub

@tseaver
Copy link
Contributor

tseaver commented Jul 1, 2016

LGTM once Travis passes, assuming the system tests pass for you with gRPC/GAX enabled.

@daspecster
Copy link
Contributor Author

I ran it with this...

GCLOUD_TESTS_PROJECT_ID=ferrous-arena GOOGLE_APPLICATION_CREDENTIALS=creds.json GCLOUD_ENABLE_GAX=True .tox/system-tests/bin/python system_tests/run_system_test.py --package=pubsub

@tseaver
Copy link
Contributor

tseaver commented Jul 1, 2016

That spew at the end is gRPC whining: harmless, but annoying for our purposes. I won't tackle #1873 until it is resolved, though.

@tseaver
Copy link
Contributor

tseaver commented Jul 1, 2016

LGTM

@daspecster daspecster merged commit 628ee9a into googleapis:master Jul 1, 2016
@daspecster daspecster deleted the enable-pubsub-bundling branch July 1, 2016 20:42
@tseaver
Copy link
Contributor

tseaver commented Jul 1, 2016

@bjwatson Ugh, are you saying that the only change we needed was to set is_bundling=True in the CallOptions constructor?

@bjwatson
Copy link

bjwatson commented Jul 2, 2016

I think so.

@daspecster
Copy link
Contributor Author

@bjwatson, these are the only references to is_bundling in https://github.com/googleapis/gax-python/search?utf8=%E2%9C%93&q=is_bundling&type=Code.

I'm not sure how the discovery stuff works but, what/how would pick up on the is_bundling flag?

@bjwatson
Copy link

bjwatson commented Jul 2, 2016

@daspecster The first reference is the one that does the magic: https://github.com/googleapis/gax-python/blob/75fc5bdbbad46ab1d08d30718ef1485ae211eb5b/google/gax/__init__.py#L134

It depends on bundling settings being configured for the method: https://github.com/googleapis/googleapis/blob/master/google/pubsub/v1/pubsub_gapic.yaml#L227

I'm not sure about Discovery. Are you doing anything with that? It's just generating file-length sample code right now, and not any API surfaces.

@daspecster
Copy link
Contributor Author

@bjwatson, thanks!

I'm not sure on the Discovery question.
@tseaver, do you know?

This was referenced Aug 3, 2016
@googleapis googleapis deleted a comment from daspecster Apr 12, 2025
parthea pushed a commit that referenced this pull request Nov 24, 2025
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement. grpc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants