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

Verify gen-all-sdk-grpc has run #3349

Merged
merged 2 commits into from
Aug 25, 2023
Merged

Conversation

zmerlynn
Copy link
Collaborator

@zmerlynn zmerlynn commented Aug 25, 2023

Adds a build step to verify that make gen-all-sdk-grpc has run.

Credit to @Kalaiselvi84 for original #3310

Sample output:

=== Diffing workspace after 'make gen-all-sdk-grpc'
*** Failure: Differences found:
D    sdks/rust/proto/allocation/allocation.proto
D    sdks/rust/proto/googleapis/google/api/annotations.proto
D    sdks/rust/proto/googleapis/google/api/client.proto
D    sdks/rust/proto/googleapis/google/api/field_behavior.proto
D    sdks/rust/proto/googleapis/google/api/http.proto
D    sdks/rust/proto/googleapis/google/api/launch_stage.proto
D    sdks/rust/proto/googleapis/google/api/resource.proto
D    sdks/rust/proto/grpc-gateway/LICENSE.txt
D    sdks/rust/proto/grpc-gateway/protoc-gen-openapiv2/options/annotations.proto
D    sdks/rust/proto/grpc-gateway/protoc-gen-openapiv2/options/openapiv2.proto
D    sdks/rust/proto/sdk/alpha/alpha.proto
D    sdks/rust/proto/sdk/beta/beta.proto
D    sdks/rust/proto/sdk/sdk.proto

(Note this sample output was also what happens when I just run this
check on my desktop because the rust generation spews files as root.)

Along the way: Subsume #3348: Move the restapi folder GRPC_PORT off of the same port as the go folder tests. (In case it's not clear on review, the problem is the second invocation where we set GRPC_PORT to 9001, which is the same as the go folder.)

@zmerlynn zmerlynn changed the title WIP: Testing #3310 + #3348 Verify gen-all-sdk-grpc has run Aug 25, 2023
@zmerlynn zmerlynn requested review from Kalaiselvi84 and removed request for aLekSer August 25, 2023 18:01
@zmerlynn zmerlynn marked this pull request as ready for review August 25, 2023 18:02
@zmerlynn
Copy link
Collaborator Author

zmerlynn commented Aug 25, 2023

This is currently sitting on top of #3348 but I will rebase that away when it merges.

Decided to just subsume #3348 into this PR to cut down on merges.

@google-oss-prow google-oss-prow bot added the lgtm label Aug 25, 2023
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gongmax, zmerlynn
Once this PR has been reviewed and has the lgtm label, please ask for approval from markmandel. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 2d06ba52-8ff1-47de-91ee-1b932b0eaa27

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

…er tests

This may be causing some sort of conflict in the tests in googleforgames#3310. Not
sure why only googleforgames#3310 is seeing it, but it's not hard to make this
consistent.
Adds a build step to verify that `make gen-all-sdk-grpc` has run.

Credit to @Kalaiselvi84 for original googleforgames#3310

Sample output:
```
=== Diffing workspace after 'make gen-all-sdk-grpc'
*** Failure: Differences found:
D    sdks/rust/proto/allocation/allocation.proto
D    sdks/rust/proto/googleapis/google/api/annotations.proto
D    sdks/rust/proto/googleapis/google/api/client.proto
D    sdks/rust/proto/googleapis/google/api/field_behavior.proto
D    sdks/rust/proto/googleapis/google/api/http.proto
D    sdks/rust/proto/googleapis/google/api/launch_stage.proto
D    sdks/rust/proto/googleapis/google/api/resource.proto
D    sdks/rust/proto/grpc-gateway/LICENSE.txt
D    sdks/rust/proto/grpc-gateway/protoc-gen-openapiv2/options/annotations.proto
D    sdks/rust/proto/grpc-gateway/protoc-gen-openapiv2/options/openapiv2.proto
D    sdks/rust/proto/sdk/alpha/alpha.proto
D    sdks/rust/proto/sdk/beta/beta.proto
D    sdks/rust/proto/sdk/sdk.proto
```

(Note this sample output was also what happens when I just run this
check on my desktop because the `rust` generation spews files as root.)
@google-oss-prow
Copy link

New changes are detected. LGTM label has been removed.

@zmerlynn zmerlynn enabled auto-merge (squash) August 25, 2023 21:13
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: ac326eab-875e-46a3-b5e3-e2f66f50a3f9

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3349/head:pr_3349 && git checkout pr_3349
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.35.0-dev-423ec21-amd64

@zmerlynn zmerlynn merged commit 1d56975 into googleforgames:main Aug 25, 2023
2 checks passed
@zmerlynn zmerlynn deleted the redo-3310 branch August 25, 2023 22:14
@Kalaiselvi84 Kalaiselvi84 added kind/cleanup Refactoring code, fixing up documentation, etc and removed kind/other labels Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Refactoring code, fixing up documentation, etc size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants