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

chore: remove protoc grpc from generation config #3390

Merged
merged 47 commits into from
Nov 25, 2024

Conversation

JoeWang1127
Copy link
Collaborator

@JoeWang1127 JoeWang1127 commented Nov 20, 2024

In this PR:

  • Remove protoc_version and grpc_version from generation config.

@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Nov 20, 2024
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Nov 20, 2024
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: l Pull request size is large. labels Nov 20, 2024
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Nov 20, 2024
@JoeWang1127 JoeWang1127 marked this pull request as ready for review November 22, 2024 00:15
Copy link
Collaborator

@blakeli0 blakeli0 left a comment

Choose a reason for hiding this comment

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

I know we said that it's OK to not support running scripts directly. What is the effort to support it? Do we need to write additional code or just need to set DOCKER_PROTOC_VERSION and DOCKER_GRPC_VERSION?

@JoeWang1127
Copy link
Collaborator Author

I decided to keep the support of running python script directly in development guide.

@@ -88,24 +88,23 @@ WORKDIR /protoc
RUN source /src/library_generation/utils/utilities.sh \
&& download_protoc "${PROTOC_VERSION}" "${OS_ARCHITECTURE}"
# we indicate protoc is available in the container via env vars
ENV DOCKER_PROTOC_LOCATION=/protoc
ENV DOCKER_PROTOC_LOCATION=/protoc/protoc/bin
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is duplicated protoc expected in the location?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes.

Do you think we should reduce the duplicated directory?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, if it is not required, just protoc/bin is clearer IMO. I think we can unzip to the root folder in the line below?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

Copy link

sonarcloud bot commented Nov 25, 2024

Copy link

sonarcloud bot commented Nov 25, 2024

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@JoeWang1127 JoeWang1127 merged commit 7ee0089 into main Nov 25, 2024
49 checks passed
@JoeWang1127 JoeWang1127 deleted the chore/remove-protoc-grpc branch November 25, 2024 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hermetic-build size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants