Skip to content

Build fails when thrift proxy extensions are disabled #12696

@roelfdutoit

Description

@roelfdutoit

The following build command fails:
bazel test //test/extensions/filters/network/...

.. when the following extensions are disabled in source/extensions/extensions_build_config.bzl:
envoy.filters.network.thrift_proxy
envoy.filters.thrift.router
envoy.filters.thrift.ratelimit

Build failure:

ERROR: test/extensions/filters/network/thrift_proxy/filters/BUILD:11:14: no such target '//test/extensions/filters/network/thrift_proxy:mocks': target 'mocks' not declared in package 'test/extensions/filters/network/thrift_proxy' defined by test/extensions/filters/network/thrift_proxy/BUILD and referenced by '//test/extensions/filters/network/thrift_proxy/filters:pass_through_filter_test'
ERROR: Analysis of target '//test/extensions/filters/network/thrift_proxy/filters:pass_through_filter_test' failed; build aborted: Analysis failed

I believe it is because the target in test/extensions/filters/network/thrift_proxy/filters/BUILD uses envoy_cc_test instead of envoy_extension_cc_test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions