Skip to content

grpc-patch: fix for oss-fuzz build - #28409

Merged
yanavlasov merged 2 commits into
envoyproxy:mainfrom
adisuissa:fix_fuzzer_build_202307
Jul 18, 2023
Merged

yanavlasov merged 2 commits into
envoyproxy:mainfrom
adisuissa:fix_fuzzer_build_202307

Conversation

@adisuissa

Copy link
Copy Markdown
Contributor

Commit Message: grpc-patch: fix for oss-fuzz build
Additional Description:
Currently oss-fuzz cannot build the fuzzers (probably started after #28075 as it updated the gRPC version to 1.55.0).
The errors are due to incorrect build of the gRPC core library, and have the following form:

ERROR: ^[[0m/root/.cache/bazel/_bazel_root/4e9824db8e7d11820cfa25090ed4ed10/external/com_github_grpc_grpc/src/core/BUILD:219:16: Compiling src/core/lib/gprpp/linux/env.cc failed: undeclared inclusion(s) in rule '@com_github_grpc_grpc//src/core:env':
Step #3 - "compile-honggfuzz-address-x86_64": this rule is missing dependency declarations for the following files included by 'src/core/lib/gprpp/linux/env.cc':
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-b38856f70c06/bin/external/com_google_absl/absl/base/config.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-b38856f70c06/bin/external/com_google_absl/absl/base/core_headers.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-b38856f70c06/bin/external/com_google_absl/absl/base/atomic_hook.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-b38856f70c06/bin/external/com_google_absl/absl/base/errno_saver.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-b38856f70c06/bin/external/com_google_absl/absl/base/log_severity.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-b38856f70c06/bin/external/com_google_absl/absl/base/raw_logging_internal.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-b38856f70c06/bin/external/com_google_absl/absl/types/bad_optional_access.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-b38856f70c06/bin/external/com_google_absl/absl/meta/type_traits.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-b38856f70c06/bin/external/com_google_absl/absl/base/base_internal.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-b38856f70c06/bin/external/com_google_absl/absl/memory/memory.cppmap'
Step #3 - "compile-honggfuzz-address-x86_64":   'bazel-out/k8-fastbuild-ST-b38856f70c06/bin/external/com_google_absl/absl/utility/utility.cppmap'

The current PR patches gRPC's /src/core/BUILD file to remove the layering_check bazel flag which solves this problem.

Note that the previous gRPC version that was used (v.1.49.2) did not have the /src/core/BUILD file, and only /BUILD was used.

Risk Level: low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Adi Suissa-Peleg <[email protected]>
@repokitteh-read-only

Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #28409 was opened by adisuissa.

see: more, trace.

@repokitteh-read-only repokitteh-read-only Bot added the deps Approval required for changes to Envoy's external dependencies label Jul 14, 2023
@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).
envoyproxy/dependency-shepherds assignee is @phlax

🐱

Caused by: #28409 was opened by adisuissa.

see: more, trace.

@phlax

phlax commented Jul 14, 2023 •

Copy link
Copy Markdown
Member

guessing 3f198ba didnt help ?

@phlax

phlax commented Jul 14, 2023

Copy link
Copy Markdown
Member

nm, i think iiuc

@adisuissa
adisuissa marked this pull request as ready for review July 14, 2023 16:09
@adisuissa

Copy link
Copy Markdown
Contributor Author

guessing 3f198ba didnt help ?

This has started after v1.49, and will stay as is until gRPC is updated.
We already removed the "layering_check" in the previous version, so it is just keeping the same behavior now that the BUILD file was split.

@adisuissa

Copy link
Copy Markdown
Contributor Author

/assign @yanavlasov

@phlax

phlax commented Jul 14, 2023 •

Copy link
Copy Markdown
Member

above commit updated the point minor release on grpc dep fwiw

@adisuissa

Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@adisuissa

Copy link
Copy Markdown
Contributor Author

/retest

@yanavlasov
yanavlasov merged commit b867899 into envoyproxy:main Jul 18, 2023
michaelfinch added a commit to michaelfinch/envoy that referenced this pull request Jul 19, 2023
* main: (46 commits)
  buffer: Disable second flaky test on windows. (envoyproxy#28483)
  ci/github: Fix repo contexts (envoyproxy#28482)
  ci/github: Minor fix for untrusted code (envoyproxy#28480)
  ci/github: Fixes/cleanups for env and workflows (envoyproxy#28473)
  examples: Warn on `golang-network` flake (envoyproxy#28478)
  build(deps): bump node from 20.3-bullseye-slim to 20.4-bullseye-slim in /examples/shared/node (envoyproxy#28321)
  ecds: add network filter dynamic config provider (envoyproxy#28407)
  deps: bump gRPC to 1.56.2 (envoyproxy#28449)
  Adding disallowed_headers in the ext_proc header forwarding rule. (envoyproxy#28468)
  golang filter: add VirtualClusterName getter (envoyproxy#28406)
  ci/github: Further fixes/cleanups for verify (envoyproxy#28467)
  coverage: Lower `source/common/quic` to fix permafail (93.3) (envoyproxy#28471)
  deps: Bump `rules_python` -> 0.24.0 (envoyproxy#28347)
  ci/github: Fix/improve CI env (envoyproxy#28465)
  improve header matcher output (envoyproxy#28389)
  grpc-patch: fix for oss-fuzz build (envoyproxy#28409)
  ext_proc: Refactor startStream logic and fix crash issue (envoyproxy#28424)
  add switch for setting round trip time to connection info (envoyproxy#28159)
  accesslog: disable resource labels (envoyproxy#28046)
  Remove unused header (envoyproxy#28447)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deps Approval required for changes to Envoy's external dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants