grpc/tools
Jan Tattermusch 0f1afec5a8
[protobuf] Upgrade third_party/protobuf to 22.x (#32606)
The very non-trivial upgrade of third_party/protobuf to 22.x
This PR strives to be as small as possible and many changes that were
compatible with protobuf 21.x and didn't have to be merged atomically
with the upgrade were already merged.
Due to the complexity of the upgrade, this PR wasn't created
automatically by a tool, but manually. Subsequent upgraded of
third_party/protobuf with our OSS release script should work again once
this change is merged.

This is best reviewed commit-by-commit, I tried to group changes in
logical areas.

Notable changes:
- the upgrade of third_party/protobuf submodule, the bazel protobuf
dependency itself
- upgrade of UPB dependency to 22.x (in the past, we used to always
upgrade upb to "main", but upb now has release branch as well). UPB
needs to be upgraded atomically with protobuf since there's a de-facto
circular dependency (new protobuf depends on new upb, which depends on
new protobuf for codegen).
- some protobuf and upb bazel rules are now aliases, so `
extract_metadata_from_bazel_xml.py` and `gen_upb_api_from_bazel_xml.py`
had to be modified to be able to follow aliases and reach the actual
aliased targets.
- some protobuf public headers were renamed, so especially
`src/compiler` needed to be updated to use the new headers.
- protobuf and upb now both depend on utf8_range project, so since we
bundle upb with grpc in some languages, we now have to bundle utf8_range
as well (hence changes in build for python, PHP, objC, cmake etc).
- protoc now depends on absl and utf8_range (previously protobuf had
absl dependency, but not for the codegen part), so python's
make_grpcio_tools.py required partial rewrite to be able to handle those
dependencies in the grpcio_tools build.
- many updates and fixes required for C++ distribtests (currently they
all pass, but we'll probably need to follow up, make protobuf's and
grpc's handling of dependencies more aligned and revisit the
distribtests)
- bunch of other changes mostly due to overhaul of protobuf's and upb's
internal build layout.

TODOs:
- [DONE] make sure IWYU and clang_tidy_code pass
- create a list of followups (e.g. work to reenable the few tests I had
to disable and to remove workaround I had to use)
- [DONE in cl/523706129] figure out problem(s) with internal import

---------

Co-authored-by: Craig Tiller <ctiller@google.com>
2023-04-12 18:43:58 +02:00
..
api_reference shellcheck 2018-05-21 18:23:09 -07:00
buildgen [protobuf] Upgrade third_party/protobuf to 22.x (#32606) 2023-04-12 18:43:58 +02:00
codegen/core [protobuf] Upgrade third_party/protobuf to 22.x (#32606) 2023-04-12 18:43:58 +02:00
debug/core Migrate Infrastructure Scripts to Python 3 (#27135) 2021-11-08 08:55:25 -08:00
distrib [protobuf] Upgrade third_party/protobuf to 22.x (#32606) 2023-04-12 18:43:58 +02:00
docker_runners Move docker images from dockerhub to artifact registry. (#31591) 2022-11-17 10:12:39 +01:00
dockerfile [fuzzing] Roll forward dep on fuzztest (#32667) 2023-03-21 13:37:32 -07:00
doxygen [HTTP Proxy] Add user guide on how Core performs HTTP proxy determination (#32789) 2023-04-04 17:55:22 -07:00
fuzzing [fixit] Make the sampling fuzzer always pass for now (#30718) 2022-08-23 16:50:10 -07:00
gce Migrate the bm_diff benchmarks to python3 (#25619) 2021-03-09 15:44:00 +01:00
gcp/utils xds/interop: add gke TD resource cleanup to daily cleanup script (#28370) 2022-01-07 11:39:47 -08:00
gource
http2_interop Create a go module for http2 interop test, fixing breakage from upgrade to go v1.16 (#25707) 2021-03-15 15:28:48 -07:00
internal_ci [protobuf] Upgrade third_party/protobuf to 22.x (#32606) 2023-04-12 18:43:58 +02:00
interop_matrix interop: add core 1.53.0 release to interop matrix (#32727) 2023-03-28 09:49:14 -07:00
mkowners Migrate Infrastructure Scripts to Python 3 (#27135) 2021-11-08 08:55:25 -08:00
package_hosting doc: npm package of grpc migrate (#32041) 2023-01-10 13:57:25 -08:00
profiling Make remaining objc test jobs to pass on MacOS monterey (#32493) 2023-03-01 09:55:33 +01:00
release Update release verification script for now PyPi API (#31007) 2022-09-15 15:42:16 -07:00
remote_build Invalidate RBE linux cache by setting a new cache silo key (#32706) 2023-03-24 17:35:26 +01:00
run_tests [protobuf] Upgrade third_party/protobuf to 22.x (#32606) 2023-04-12 18:43:58 +02:00
README.md
bazel chore: add bazel support for M1 mac (#31127) 2022-09-27 13:17:35 -07:00
bazel.rc Removed report_atomic_races=0 option (#32675) 2023-03-22 09:23:00 -07:00
fuzztest.bazelrc [fuzzing] Roll forward dep on fuzztest (#32667) 2023-03-21 13:37:32 -07:00

README.md

buildgen: Template renderer for our build system.

distrib: Scripts to distribute language-specific packages and other distribution-related helper scripts.

dockerfile: Docker files to test gRPC.

doxygen: gRPC C/C++ documentation generation via Doxygen.

gce: Scripts to help setup testing infrastructure on GCE.

gcp: Helper scripts for interacting with various services on GCP (like Google container engine, BigQuery etc)

internal_ci: Support for running tests on an internal CI platform.

interop_matrix: Scripts to build, upload, and run gRPC clients in docker with various language/runtimes.

jenkins: Support for running tests on Jenkins.

run_tests: Scripts to run gRPC tests in parallel.

run_tests/performance: See the README for more notes on the performance tests.