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 — Fix error with setting repeated proto field for bundling. by bjwatson · Pull Request #111 · googleapis/gax-python

This repository was archived by the owner on Mar 20, 2018. It is now read-only.

Conversation

@bjwatson

@bjwatson bjwatson commented Jun 22, 2016 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Update bundling tests to use actual proto messages, to prove this fix
works.

Fixes #110

Sorry, something went wrong.

Uh oh!

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

All reactions
@bjwatson bjwatson assigned tbetbetbe and geigerj Jun 22, 2016
@bjwatson

bjwatson commented Jun 22, 2016

Copy link
Copy Markdown
Contributor Author

@tbetbetbe I know that the pep8 and pylint tests currently fail. They just need to ignore the generated fixture_pb2.py file. Otherwise this is ready to review.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bjwatson bjwatson mentioned this pull request Jun 22, 2016
GAX API hangs during (second) 'publish' googleapis/google-cloud-python#1869
Closed
Brian J. Watson
Fix error with setting repeated proto field for bundling.
fecde3f
Update bundling tests to use actual proto messages, to prove this fix
works.
@bjwatson
bjwatson force-pushed the issue-110 branch from 60ec1c3 to fecde3f Compare June 22, 2016 02:00
Brian J. Watson added 2 commits June 22, 2016 10:36
Brian J. Watson
Install protoc on Travis server before running tests
c57d175
Brian J. Watson
Fix pep8 tests
1bf3c27
geigerj
geigerj reviewed Jun 22, 2016
View reviewed changes
Comment thread tox.ini Outdated

[testenv:pylint-errors]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/test

@geigerj geigerj Jun 22, 2016

Copy link
Copy Markdown
Contributor

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.

Is this because we weren't linting the test/ directory previously?

Sorry, something went wrong.

Uh oh!

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

All reactions

@bjwatson bjwatson Jun 22, 2016

Copy link
Copy Markdown
Contributor Author

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 wasn't really needed. I got rid of this change.

Sorry, something went wrong.

Uh oh!

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

All reactions
Brian J. Watson added 15 commits June 22, 2016 11:14
Brian J. Watson
Fix pylint issue
a17ec19
Brian J. Watson
Try linuxbrew for installing protoc
7fcf516
Brian J. Watson
Use a src-gen directory for proto output to make it easy to ignore
4558e81
Brian J. Watson
Try installing and using linuxbrew to get devel version of protoc
b74d8b8
Brian J. Watson
Install brew in headless mode for Travis CI
5d0560a
Brian J. Watson
Cache protoc installation, since it's expensive to do every time
992b09a
Brian J. Watson
Put linuxbrew in path for calling protoc. Update cache on each build.
2008133
Brian J. Watson
TODO comment no longer needed, since we do automatic upgrade
74f01bf
Brian J. Watson
Be explicit about location of protoc
2216450
Brian J. Watson
Temporary debug line
4774dc7
Brian J. Watson
Improve script output
a892502
Brian J. Watson
Define BREW_HOME variable to clarify what is defined where
9f466d4
Brian J. Watson
No need to redirect stderr
00f9121
Brian J. Watson
Pass BREW_HOME into test environment
930724e
Brian J. Watson
Use environment variable correctly in tox.ini
df7d11d
@codecov-io

codecov-io commented Jun 22, 2016 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Current coverage is 97.16%

Merging #111 into master will decrease coverage by <.01%

@@             master       #111   diff @@
==========================================
  Files             8          8          
  Lines           600        599     -1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits            583        582     -1   
  Misses           17         17          
  Partials          0          0          

Powered by Codecov. Last updated by 8c26941...8826e7f

All reactions

Sorry, something went wrong.

Uh oh!

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

@bjwatson

bjwatson commented Jun 22, 2016

Copy link
Copy Markdown
Contributor Author

Woot! Woot! I finally got a passing build with protoc / Travis CI / tox. :)

All reactions

Sorry, something went wrong.

Uh oh!

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

@geigerj

geigerj commented Jun 22, 2016

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

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

@geigerj

geigerj commented Jun 22, 2016 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Note: this adds an implicit dependency of bundling.py on proto, namely the ClearField method. Ideally this should be moved into gRPC.py and called through the config.py "interface", but that can be done as a follow-up.

All reactions

Sorry, something went wrong.

Uh oh!

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

Brian J. Watson
Add TODO comment based on PR feedback
8826e7f
@bjwatson

bjwatson commented Jun 22, 2016

Copy link
Copy Markdown
Contributor Author

Added TODO comment to code based on feedback

All reactions

Sorry, something went wrong.

Uh oh!

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

@bjwatson
bjwatson merged commit a5e1944 into googleapis:master Jun 22, 2016
@bjwatson
bjwatson deleted the issue-110 branch June 22, 2016 22:52
@geigerj geigerj mentioned this pull request Jun 29, 2016
Note environment variable for tests #117
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

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

Assignees

@tbetbetbe tbetbetbe

@geigerj geigerj

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Bundling sub-response handling is broken for actual proto objects

Uh oh!

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

4 participants

@bjwatson @codecov-io @geigerj @tbetbetbe
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.