Skip to content

Preserve package groups in cquery - #642

Merged
tinder-maxwellelliott merged 1 commit into
Tinder:masterfrom
tamird:codex/bazel-diff-cquery-package-groups-20261109
Nov 10, 2026
Merged

tinder-maxwellelliott merged 1 commit into
Tinder:masterfrom
tamird:codex/bazel-diff-cquery-package-groups-20261109

Conversation

@tamird

@tamird tamird commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

In the visibility example from #441, adding a second allowed package lets the existing consumer build at both revisions. With --useCquery, bazel-diff reported no impact from that edit. Bazel returns no provider dictionary for a package group, so the compatibility formatter discarded its label before the group could enter the configured graph.

Filter targets that report IncompatiblePlatformProvider and retain package groups. Record included groups as inputs in the null configuration so changes to an inner group reach its enclosing group, the rule protected by that group, and the rule’s consumer.

Assisted by Codex.

Adding an allowed package to a visibility group can leave
get-impacted-targets empty under --useCquery. Bazel returns no provider
dictionary for a package group, so the compatibility query discards its
label before the group can contribute to the configured graph.

Filter on IncompatiblePlatformProvider when present. Carry included
package groups as null-configured inputs so a membership change reaches
the enclosing group, the gated rule, and its consumers.

Extend the Tinder#441 regression with an edit that keeps the existing consumer
visible on both sides of the comparison.
@tamird
tamird force-pushed the codex/bazel-diff-cquery-package-groups-20261109 branch from c08fe75 to e5668fc Compare November 10, 2026 11:23
@tinder-maxwellelliott
tinder-maxwellelliott merged commit 0432506 into Tinder:master Nov 10, 2026
19 checks passed
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