You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CMake] Strengthen pkg-config installation tests to detect missing metadata and dependencies #4697
The pkg-config tests added in #4528 request all installed modules together. This can hide missing dependency declarations because another requested module supplies the dependency.
The tests also select coverage based on which .pc files exist. If an expected component’s metadata is missing, its tests can be skipped instead of reporting an incomplete installation.
Please test public packages independently and check that expected .pc files are present for the enabled components. These are coverage gaps, rather than confirmed defects in the currently installed packages.
All modules resolve through a single pkg_check_modules(), so a missing Requires gets masked. A quick repro with an emptied Requires in exporter_ostream_span.pc confirms it.
A missing .pc is only a STATUS skip, not a failure.
Likely under-declarations the current test can't see:
Activity
shashankxrm commentedon Oct 13, 2026
Thanks for opening this, @lalitb.
Both gaps confirmed on
main:pkg_check_modules(), so a missingRequiresgets masked. A quick repro with an emptiedRequiresinexporter_ostream_span.pcconfirms it..pcis only aSTATUSskip, not a failure.Likely under-declarations the current test can't see:
exporter_otlp_builder_utils→configuration_coreexporter_otlp_grpc_client→otlp_common/proto_grpcPlan:
.pcfiles: fail if any is missing, with an explicit allowlist for components that ship none.Questions before I open a PR:
proto,otlp_recordable,*_client, …) also resolve standalone, or only via the public exporters?