Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix secondary ownership warning semantics (Cherry-pick of #19191) #19224

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

thejcannon
Copy link
Member

Fixes #19174 by boiling the criteria to warn down to:

  1. The Address/Target/FieldSet is matched due only to SecondaryOwnerMixin
  2. It was matched due to a file spec (literal or glob)
  3. It wasn't matched due ton address spec
    • This is just to handle the corner case where it was matched due to file and address

In order to facilitate 1., Owner and find_owner have been (temporarily) modified. Additionally, the rule that goes from RawSpecsWithOnlyFileOwners -> Addresses has been split to return Owners, with an additional rule added to complete the graph (Owners -> Addresses).

Then 2 and 3 are facilitated by just requesting the addresses based on the include specs.

Fixes #19174 by boiling the criteria to warn down to:

1. The Address/Target/FieldSet is matched due __only__ to
`SecondaryOwnerMixin`
2. It was matched due to a file spec (literal or glob)
3. It wasn't matched due ton address spec
- This is just to handle the corner case where it was matched due to
file and address

In order to facilitate 1., `Owner` and `find_owner` have been
(temporarily) modified. Additionally, the rule that goes from
`RawSpecsWithOnlyFileOwners` -> `Addresses` has been split to return
`Owners`, with an additional rule added to complete the graph (`Owners`
-> `Addresses`).

Then 2 and 3 are facilitated by just requesting the addresses based on
the include specs.
@thejcannon thejcannon added the category:internal CI, fixes for not-yet-released features, etc. label Jun 1, 2023
@thejcannon thejcannon requested a review from stuhood June 1, 2023 20:35
@thejcannon thejcannon merged commit ed3ddac into 2.17.x Jun 2, 2023
@thejcannon thejcannon deleted the cherry-pick-19191-to-2.17.x branch June 2, 2023 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants