Skip to content

Fewer external deps#36187

Merged
phlax merged 45 commits intoenvoyproxy:mainfrom
asedeno:fewer-external-deps
Sep 19, 2024
Merged

Fewer external deps#36187
phlax merged 45 commits intoenvoyproxy:mainfrom
asedeno:fewer-external-deps

Conversation

@asedeno
Copy link
Copy Markdown
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 <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Also remove json.BUILD since it now has native bazel support.

Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Also adjust envoy_pch_library to allow for an empty `external_deps`.

Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
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 <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Copy link
Copy Markdown
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
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 <asedeno@google.com>

Signed-off-by: Alejandro R. Sedeño <asedeno@google.com>
@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
sayboras added a commit to cilium/proxy that referenced this pull request Dec 3, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Dec 11, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Dec 17, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Dec 18, 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