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

fix: resolve unit test failure caused by differences in protobuf runtimes #1749

Merged
merged 35 commits into from
Oct 7, 2023

Conversation

parthea
Copy link
Contributor

@parthea parthea commented Aug 29, 2023

This PR adds a fragment test which re-creates the issue described in #1748 . The fix was applied in 77da39a

Fixes #1748 🦕
Fixes #1750 🦕

Only google/api/servicemanagement/v1 has a failing test because this is the only api which has field with type google.protobuf.Type via the google.api.Service message.

See the return type google.api.Service here :
https://github.com/googleapis/googleapis/blob/bc3c83b41b1589cca21f713a500f179ef86a7e18/google/api/servicemanagement/v1/servicemanager.proto#L158

See the message google.api.Service here which contains google.protobuf.Type:
https://github.com/googleapis/googleapis/blob/bc3c83b41b1589cca21f713a500f179ef86a7e18/google/api/service.proto#L80

@product-auto-label product-auto-label bot added the size: xl Pull request size is extra large. label Aug 29, 2023
@parthea parthea changed the title fix: resolve unit test failure fix: resolve unit test failure caused by differences in protobuf runtimes Aug 29, 2023
setup.py Show resolved Hide resolved
@parthea parthea marked this pull request as ready for review August 30, 2023 16:09
@parthea parthea requested a review from a team as a code owner August 30, 2023 16:09
@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 30, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 30, 2023
@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 15, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 15, 2023
Copy link
Contributor

@vchudnov-g vchudnov-g left a comment

Choose a reason for hiding this comment

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

I think this is looking OK, but I have some questions as this is my first time digging into these tests.

setup.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
setup.py Show resolved Hide resolved
tests/fragments/google/api/auth.proto Outdated Show resolved Hide resolved
parthea and others added 2 commits September 19, 2023 12:08
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
setup.py Outdated Show resolved Hide resolved
tests/fragments/google/api/auth.proto Outdated Show resolved Hide resolved
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
@parthea parthea assigned parthea and unassigned vchudnov-g Sep 26, 2023
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: xl Pull request size is extra large. labels Oct 5, 2023
Copy link
Contributor

@vchudnov-g vchudnov-g left a comment

Choose a reason for hiding this comment

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

Please do address the comments I left. They're mostly minor, except for the one manually verifying that the simpler test really does fail without your fixes. And a question about the Ads template.

WORKSPACE Outdated Show resolved Hide resolved
noxfile.py Outdated Show resolved Hide resolved
noxfile.py Outdated Show resolved Hide resolved
parthea and others added 7 commits October 6, 2023 19:43
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Oct 7, 2023
@parthea parthea enabled auto-merge (squash) October 7, 2023 01:27
@parthea parthea merged commit 812abce into main Oct 7, 2023
52 checks passed
@parthea parthea deleted the add-fragment-test-service-config branch October 7, 2023 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xl Pull request size is extra large.
Projects
None yet
3 participants