Skip to content

CodeQL/push workflow fails when rdeps resolves to header-only targets #46393

Description

@leosarra

The CodeQL workflow fails with "CodeQL could not process any code written in C/C++" when a PR modifies a file under envoy/ or source/common/ and the bazel query rdeps(//source/common/..., <file>, 1) resolves exclusively to header-only targets.

I noticed this in my PR which adds an include in load_shed_point.h.
Due to the diff between the PR and main showing load_shed_point.h as changed, the workflow detects C++ changes in envoy/, queries rdeps, and resolves to the header-only load_shed_point_interface target -> triggering the failure.

Is this the expected behavior or can the CodeQL workflow be improved?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions