Skip to content

#23533 + move upbdefs.h and upbdefs.c under upbdefs-generated#23835

Closed
jtattermusch wants to merge 23 commits intogrpc:masterfrom
jtattermusch:xds_logging_additions
Closed

#23533 + move upbdefs.h and upbdefs.c under upbdefs-generated#23835
jtattermusch wants to merge 23 commits intogrpc:masterfrom
jtattermusch:xds_logging_additions

Conversation

@jtattermusch
Copy link
Copy Markdown
Contributor

Based on #23533

Cleaner version of #23634

both upbdefs.h and upbdefs.c files will end up under src/core/ext/upbdefs-generated/

@jtattermusch
Copy link
Copy Markdown
Contributor Author

Likely not all the build systems are passing yet, because of the extra include path (src/core/ext/upbdefs-generated/) - but I'll fix them as needed.

@jtattermusch jtattermusch added lang/c++ release notes: no Indicates if PR should not be in release notes labels Aug 14, 2020
@jtattermusch
Copy link
Copy Markdown
Contributor Author

CC @stanley-cheung @markdroth once things are fully green here, I'll create a PR against #23573 (or whatever seems to be the easiest way forward).

@jtattermusch
Copy link
Copy Markdown
Contributor Author

jtattermusch commented Aug 19, 2020

Most builds are passing, still need to fix iOS builds:
https://source.cloud.google.com/results/invocations/289ec031-978a-42f9-b577-d9ac8730c97b/targets/github%2Fgrpc%2Frun_tests%2Fobjc_macos_opt_native%2Fios-cpp-test-cronet/tests

Wed Aug 19 03:00:50 PDT 2020 - In file included from /Volumes/BuildData/tmpfs/src/github/grpc/workspace_objc_macos_opt_native/test/cpp/ios/Pods/Headers/Public/Protobuf-C++/google/protobuf/map_entry_lite.h:42:
Wed Aug 19 03:00:50 PDT 2020 - /Volumes/BuildData/tmpfs/src/github/grpc/workspace_objc_macos_opt_native/test/cpp/ios/Pods/Headers/Public/Protobuf-C++/google/protobuf/generated_message_util.h:50:10: fatal error: 'google/protobuf/has_bits.h' file not found
Wed Aug 19 03:00:50 PDT 2020 - #include <google/protobuf/has_bits.h>
Wed Aug 19 03:00:50 PDT 2020 -          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wed Aug 19 03:00:50 PDT 2020 - 1 error generated.

https://source.cloud.google.com/results/invocations/266284ba-939b-4375-9291-55e299066ff6/targets/github%2Fgrpc%2Frun_tests%2Fobjc_macos_opt_native%2Fios-test-cfstream-tests/tests ( this failure might be "ok" because the same failure is already on #23533).

Also need to fix the check_upb_output.sh script

@jtattermusch
Copy link
Copy Markdown
Contributor Author

ObjC builds seems fine:

Most builds are passing, still need to fix iOS builds:
https://source.cloud.google.com/results/invocations/289ec031-978a-42f9-b577-d9ac8730c97b/targets/github%2Fgrpc%2Frun_tests%2Fobjc_macos_opt_native%2Fios-cpp-test-cronet/tests

Wed Aug 19 03:00:50 PDT 2020 - In file included from /Volumes/BuildData/tmpfs/src/github/grpc/workspace_objc_macos_opt_native/test/cpp/ios/Pods/Headers/Public/Protobuf-C++/google/protobuf/map_entry_lite.h:42:
Wed Aug 19 03:00:50 PDT 2020 - /Volumes/BuildData/tmpfs/src/github/grpc/workspace_objc_macos_opt_native/test/cpp/ios/Pods/Headers/Public/Protobuf-C++/google/protobuf/generated_message_util.h:50:10: fatal error: 'google/protobuf/has_bits.h' file not found
Wed Aug 19 03:00:50 PDT 2020 - #include <google/protobuf/has_bits.h>
Wed Aug 19 03:00:50 PDT 2020 -          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wed Aug 19 03:00:50 PDT 2020 - 1 error generated.

Looks like this is a random flake unrelated to this PR, we've seen in on master in other situations (see b/161998115)

https://source.cloud.google.com/results/invocations/266284ba-939b-4375-9291-55e299066ff6/targets/github%2Fgrpc%2Frun_tests%2Fobjc_macos_opt_native%2Fios-test-cfstream-tests/tests ( this failure might be "ok" because the same failure is already on #23533).

This already happens on #23573

Also need to fix the check_upb_output.sh script

This still needs to be done.

@jtattermusch jtattermusch force-pushed the xds_logging_additions branch from b832dd0 to 4b96f51 Compare August 20, 2020 10:56
@jtattermusch jtattermusch marked this pull request as ready for review August 20, 2020 10:57
@jtattermusch
Copy link
Copy Markdown
Contributor Author

@markdroth the commits from this PR should be ready to bring into #23533 (I needed to merge upstream/master to resolve conflicts, but the merge commits don't really have any important logic).

I can create a PR against #23533 if you want (but looks like upb generated files in #23533 are out of date).

@jtattermusch
Copy link
Copy Markdown
Contributor Author

clang tidy complaint (not sure if that's bad news, but seems easily fixable):

Error while processing /local-code/src/core/ext/xds/xds_api.cc.
/local-code/src/core/ext/xds/xds_api.cc:48:10: error: 'envoy/config/cluster/v3/cluster.upbdefs.h' file not found [clang-diagnostic-error]
#include "envoy/config/cluster/v3/cluster.upbdefs.h"
         ^
/local-code/src/core/ext/xds/xds_api.cc:862:52: error: the parameter 'domain_pattern' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors]
bool DomainMatch(MatchType match_type, std::string domain_pattern,
                                       ~~~         ^
                                       const      &
/local-code/src/core/ext/xds/xds_api.cc:863:30: error: the parameter 'expected_host_name' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors]
                 std::string expected_host_name) {
                 ~~~         ^
                 const      &
Suppressed 1164 warnings (1164 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings treated as errors
FAILED: src/core/ext/xds/xds_api.cc [ret=2, pid=364, time=2.5sec]

@jtattermusch
Copy link
Copy Markdown
Contributor Author

superseded by #23904

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/c++ release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants