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

Removing more from the no-op proto-gen-validate build #738

Merged
merged 3 commits into from Nov 28, 2022

Conversation

alyssawilk
Copy link
Contributor

@alyssawilk alyssawilk commented Nov 21, 2022

before
-rwxr-x--- 1 alyssar primarygroup 23338512 Nov 21 17:00 bazel-bin/test/performance/test_binary_size_stripped
-rwxr-x--- 1 alyssar primarygroup 23M Nov 21 17:00 bazel-bin/test/performance/test_binary_size_stripped
after
-rwxr-x--- 1 alyssar primarygroup 19642512 Nov 21 17:04 bazel-bin/test/performance/test_binary_size_stripped
-rwxr-x--- 1 alyssar primarygroup 19M Nov 21 17:04 bazel-bin/test/performance/test_binary_size_stripped

Proof of concept use here: envoyproxy/envoy#24151 which is passing all Envoy Mobile CI (its failing Envoy CI because of the dependency check which is expected and irrelevant)

@CLAassistant
Copy link

CLAassistant commented Nov 21, 2022

CLA assistant check
All committers have signed the CLA.

@alyssawilk alyssawilk marked this pull request as ready for review November 22, 2022 21:19
@alyssawilk alyssawilk marked this pull request as draft November 22, 2022 21:20
@alyssawilk alyssawilk marked this pull request as ready for review November 22, 2022 21:21
@alyssawilk
Copy link
Contributor Author

cc @elliotmjackson for thoughts
I'm not sure if anyone other than Envoy Mobile is using the nop build - if you have concerns I'd be happy to clone it and have an "even_more_nop" build.

@alyssawilk
Copy link
Contributor Author

also cc @joshcarp since I don't know how review works in this repo

alyssawilk added a commit to envoyproxy/envoy that referenced this pull request Nov 23, 2022
Currently proto_gen_validate pulls all protos into every unit test, and every unit test validates their existence on start up. This is pretty terrible. bufbuild/protoc-gen-validate#738 pulls this out for Envoy Mobile proto-gen-validate-less builds, and so breaks all the unit tests. Changing the Envoy test framework to only validate proto registration for integration tests.

Risk Level: low (should be test only)
Testing: #24151
Docs Changes: n/a
Release Notes: n/a
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Copy link

@jpsim jpsim left a comment

Choose a reason for hiding this comment

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

+1 nice win

@elliotmjackson elliotmjackson merged commit 774e011 into bufbuild:main Nov 28, 2022
elliotmjackson added a commit that referenced this pull request Nov 28, 2022
alyssawilk added a commit to envoyproxy/envoy that referenced this pull request Nov 29, 2022
This pulls in bufbuild/protoc-gen-validate#738 which reduces E-M binary size

Risk Level: low
Testing: E-M tests
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
lizan pushed a commit to envoyproxy/data-plane-api that referenced this pull request Nov 29, 2022
This pulls in bufbuild/protoc-gen-validate#738 which reduces E-M binary size

Risk Level: low
Testing: E-M tests
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>

Mirrored from https://github.com/envoyproxy/envoy @ d1be114907c9513b1b45a5eef5b0a88b6188ec7c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants