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

Fewer external deps #36187

Merged
merged 45 commits into from
Sep 19, 2024
Merged

Fewer external deps #36187

merged 45 commits into from
Sep 19, 2024

Conversation

asedeno
Copy link
Contributor

@asedeno asedeno commented Sep 17, 2024

Commit Message: Remove the native.bind entries for the following libraries:

  • libcircllhist
  • uring
  • ares
  • xxhash
  • sqlparser
  • tclap
  • fmtlib
  • spdlog
  • benchmark
  • libsxg
  • yaml_cpp
  • event
  • colm
  • ragel
  • zlib
  • brotlienc
  • brotlidec
  • zstd
  • msgpack
  • opentelemetry_api
  • dd_trace_cpp
  • cpp2sky
  • json
  • http_parser
  • hessian2_codec_object_codec_lib
  • hessian2_codec_codec_impl
  • su-exec
  • googletest
  • protoc
  • opencensus_trace
  • opencensus_trace_b3
  • opencensus_trace_cloud_trace_context
  • opencensus_trace_grpc_trace_bin
  • opencensus_trace_trace_context
  • opencensus_exporter_ocagent
  • opencensus_exporter_stdout
  • opencensus_exporter_stackdriver
  • opencensus_exporter_zipkin
  • quiche_common_platform
  • quiche_http2_adapter
  • quiche_http2_protocol
  • quiche_http2_test_tools
  • quiche_quic_platform
  • quiche_quic_platform_base
  • quiche_http2_hpack
  • quiche_http2_hpack_decoder
  • jwt_verify_lib
  • simple_lru_cache_lib
  • luajit
  • tcmalloc
  • tcmalloc_profile_marshaler
  • tcmalloc_malloc_extension
  • gperftools
  • librdkafka

Update external_deps that used them to deps of their actual locations.
Some examples:

  • zlib//bazel/foreign_cc:zlib
  • json@com_github_nlohmann_json//:json

The bindings that remain are either used by dependencies that need to be updated or have uses in some envoy bazel rules that make removing them trickier. These are the easy ones.

Risk Level: low
Testing: Building envoy and running integration test suites. Existing tests pass.

Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Also remove json.BUILD since it now has native bazel support.

Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Also adjust envoy_pch_library to allow for an empty `external_deps`.

Signed-off-by: Alejandro R Sedeño <[email protected]>
Many native.bind calls remain here until we update the dependencies to
new versions that stop using them.

Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
Signed-off-by: Alejandro R Sedeño <[email protected]>
@asedeno
Copy link
Contributor Author

asedeno commented Sep 18, 2024

/retest

Copy link
Member

@phlax phlax left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @asedeno

@repokitteh-read-only repokitteh-read-only bot removed the deps Approval required for changes to Envoy's external dependencies label Sep 19, 2024
@phlax phlax merged commit 8d74446 into envoyproxy:main Sep 19, 2024
40 checks passed
phlax pushed a commit to phlax/envoy that referenced this pull request Sep 26, 2024
Commit Message: Remove the native.bind entries for the following
libraries:

- libcircllhist
- uring
- ares
- xxhash
- sqlparser
- tclap
- fmtlib
- spdlog
- benchmark
- libsxg
- yaml_cpp
- event
- colm
- ragel
- zlib
- brotlienc
- brotlidec
- zstd
- msgpack
- opentelemetry_api
- dd_trace_cpp
- cpp2sky
- json
- http_parser
- hessian2_codec_object_codec_lib
- hessian2_codec_codec_impl
- su-exec
- googletest
- protoc
- opencensus_trace
- opencensus_trace_b3
- opencensus_trace_cloud_trace_context
- opencensus_trace_grpc_trace_bin
- opencensus_trace_trace_context
- opencensus_exporter_ocagent
- opencensus_exporter_stdout
- opencensus_exporter_stackdriver
- opencensus_exporter_zipkin
- quiche_common_platform
- quiche_http2_adapter
- quiche_http2_protocol
- quiche_http2_test_tools
- quiche_quic_platform
- quiche_quic_platform_base
- quiche_http2_hpack
- quiche_http2_hpack_decoder
- jwt_verify_lib
- simple_lru_cache_lib
- luajit
- tcmalloc
- tcmalloc_profile_marshaler
- tcmalloc_malloc_extension
- gperftools
- librdkafka

Update `external_deps` that used them to `deps` of their actual
locations.
Some examples:
- `zlib` → `//bazel/foreign_cc:zlib`
- `json` → `@com_github_nlohmann_json//:json`

The bindings that remain are either used by dependencies that need to be
updated or have uses in some envoy bazel rules that make removing them
trickier. These are the easy ones.

Risk Level: low
Testing: Building envoy and running integration test suites. Existing
tests pass.

---------

Signed-off-by: Alejandro R Sedeño <[email protected]>

Signed-off-by: Alejandro R. Sedeño <[email protected]>
@asedeno asedeno deleted the fewer-external-deps branch October 7, 2024 16:43
sayboras added a commit to cilium/proxy that referenced this pull request Nov 19, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Nov 19, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Nov 19, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Nov 19, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Nov 21, 2024
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.

2 participants