Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

feat: update to the latest version of the code generator #147

Merged
merged 23 commits into from Nov 16, 2021

Conversation

parthea
Copy link
Contributor

@parthea parthea commented Nov 9, 2021

The compute protos are now available in googleapis/googleapis, and the generated code is also available in googleapis/googleapis-gen here. This PR pulls in the latest version of the generated client from googleapis-gen, which may have significant differences. I've added the do not merge label while we discuss whether any differences could break user code.

This PR also deletes synth.py and adds configuration files for owl bot. owl bot will save time for maintainers as it will automatically open PRs when there are updates in googleapis-gen without requiring maintainers to run synthtool to build the client from protos. Additionally, similar to autosynth, PRs will be automatically opened when there are updates to templated files.

fix(deps): require google-api-core >=2.2.0
fix(deps): require proto-plus >=1.19.7
docs: list oneofs in docstring
fix: add 'dict' annotation type to 'request'
feat: support self-signed JWT flow for service accounts
chore(samples): Merging usage bucket tests into one, to avoid race conditions

@parthea parthea added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 9, 2021
@parthea parthea self-assigned this Nov 9, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 9, 2021
@product-auto-label product-auto-label bot added the api: compute Issues related to the googleapis/python-compute API. label Nov 9, 2021
@parthea
Copy link
Contributor Author

parthea commented Nov 10, 2021

Blocked by googleapis/google-cloud-python#10566

@busunkim96
Copy link
Contributor

@parthea I chatted about this with @vam-google over chat. This library is relatively new and still in preview, so I think it's reasonable to ask folks to use a newer version of google-api-core to use it (even if it requires bumping versions of other libraries they are using together)

The alternative is back-porting quite a few significant changes to the v1 branch of google-api-core library, which I would prefer not to do at this point.

@parthea parthea removed the status: blocked Resolving the issue is dependent on other work. label Nov 10, 2021
@parthea parthea removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 11, 2021
@parthea parthea marked this pull request as ready for review November 11, 2021 00:24
@parthea parthea requested review from a team as code owners November 11, 2021 00:24
@parthea parthea added kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. labels Nov 11, 2021
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Nov 11, 2021
@m-strzelczyk
Copy link
Contributor

Those tests that are failing need to be somehow refactored, as they keep failing despite the fact that we use the 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT' setting.

Do you think turning the two tests that live in test_sample_default_values.py could stop those failures?

@m-strzelczyk
Copy link
Contributor

Seems like merging the two tests did the trick :)

@parthea parthea added automerge Merge the pull request once unit tests and other checks pass. and removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. automerge Merge the pull request once unit tests and other checks pass. labels Nov 12, 2021
@parthea parthea assigned busunkim96 and unassigned parthea Nov 12, 2021
@parthea
Copy link
Contributor Author

parthea commented Nov 12, 2021

@busunkim96 This is ready for review

google/cloud/compute_v1/types/compute_small.py Outdated Show resolved Hide resolved
owlbot.py Show resolved Hide resolved
samples/snippets/sample_default_values.py Outdated Show resolved Hide resolved
@parthea
Copy link
Contributor Author

parthea commented Nov 15, 2021

@busunkim96 Please could you take another look?

@parthea
Copy link
Contributor Author

parthea commented Nov 16, 2021

This is ready for review

@parthea parthea added the automerge Merge the pull request once unit tests and other checks pass. label Nov 16, 2021
@gcf-merge-on-green gcf-merge-on-green bot merged commit de739a1 into main Nov 16, 2021
@gcf-merge-on-green gcf-merge-on-green bot deleted the use-the-latest-python-code-generator branch November 16, 2021 16:38
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Nov 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: compute Issues related to the googleapis/python-compute API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants