Skip to content

mobile: Add the stats prefix to the ADS xDS registration#25560

Merged
abeyad merged 1 commit intoenvoyproxy:mainfrom
abeyad:cds_integration_test
Feb 15, 2023
Merged

mobile: Add the stats prefix to the ADS xDS registration#25560
abeyad merged 1 commit intoenvoyproxy:mainfrom
abeyad:cds_integration_test

Conversation

@abeyad
Copy link
Copy Markdown
Contributor

@abeyad abeyad commented Feb 14, 2023

The stats_prefix field in the GoogleGrpc config has a proto validation rule that the field must be populated and have a length of at least 1.

This change adds the stat_prefix field whenever the ADS builder API is used, and adds tests to validate it.

Lastly, this change makes the mobile_compile_time_options CI job turn on proto validation, so we can ensure we never commit invalid proto, even though mobile normally disables proto validation for binary size purposes. The default value for the PVG template is the empty string (https://github.com/bufbuild/protoc-gen-validate/blob/38260ee45796b420276ac925d826ecec8fc3e9a8/bazel/BUILD#L11), so the mobile_compile_time_options sets template-flavor to the empty string instead of the default nop for mobile.

Signed-off-by: Ali Beyad abeyad@google.com

The stats_prefix field in the GoogleGrpc config has a proto validation
rule that the field must be populated and have a length of at least 1.

This change adds the stat_prefix field whenever the ADS builder API is
used, and adds tests to validate it.

Lastly, this change makes the mobile_compile_time_options CI job turn on
proto validation, so we can ensure we never commit invalid proto, even
though mobile normally disables proto validation for binary size
purposes. The default value for the PVG template is the empty string
(https://github.com/bufbuild/protoc-gen-validate/blob/38260ee45796b420276ac925d826ecec8fc3e9a8/bazel/BUILD#L11),
so the mobile_compile_time_options sets template-flavor to the empty
string instead of the default `nop` for mobile.

Signed-off-by: Ali Beyad <abeyad@google.com>
Copy link
Copy Markdown
Contributor

@RyanTheOptimist RyanTheOptimist left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

@abeyad
Copy link
Copy Markdown
Contributor Author

abeyad commented Feb 14, 2023

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #25560 (comment) was created by @abeyad.

see: more, trace.

@abeyad abeyad merged commit 50028da into envoyproxy:main Feb 15, 2023
@abeyad abeyad deleted the cds_integration_test branch February 15, 2023 00:25
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.

4 participants