Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented Oct 4, 2021

This prunes aliases that used to be maintained automatically. The tooling that used to maintain them was removed in 58d12ef (#5115), and the tooling that replaced it will not pick up that missing functionality. This commit removes the stale "auto-generated" comment, and also all unused aliases:

$ diff -u <(yaml2json <OWNERS_ALIASES | jq -r '.aliases | keys[]' | sort) <(find . -name OWNERS -exec grep -h "$(yaml2json <OWNERS_ALIASES | jq -r '.aliases | keys | join("\\|")')" {} \+ | sed -n 's/^ *- //p' | sort | uniq) | grep '^-'

Also updates cincinnati-approvers by hand to match the current config (but with a case-insensitive, alphabetical sort).

wking added 2 commits October 4, 2021 10:57
This prunes aliases that used to be maintained automatically.  The
tooling that used to maintain them was removed in 58d12ef (Clean up
deprecated tool: populate-owners, 2019-09-19, openshift#5115), and the tooling
that replaced it will not pick up that missing functionality [1,2].
This commit removes the stale "auto-generated" comment, and also all
unused aliases:

  $ diff -u <(yaml2json <OWNERS_ALIASES | jq -r '.aliases | keys[]' | sort) <(find . -name OWNERS -exec grep -h "$(yaml2json <OWNERS_ALIASES | jq -r '.aliases | keys | join("\\|")')" {} \+ | sed -n 's/^ *- //p' | sort | uniq) | grep '^-'

[1]: openshift/ci-tools#115 (comment)
[2]: https://issues.redhat.com/browse/DPTP-690
The list was quite stale.  Now that there's no longer a chance of
auto-generated updates, manually update it to match [1] (but with a
case-insensitive alphabetical sort).

[1]: https://github.com/openshift/cincinnati/blob/bd11660e7279e03e105eff64eef5fd13bdc96984/OWNERS_ALIASES#L4-L10
@openshift-ci openshift-ci bot requested review from droslean and smg247 October 4, 2021 18:08
@emilvberglind
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 4, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 4, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: emilvberglind, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 4, 2021
@openshift-merge-robot openshift-merge-robot merged commit 980b4f9 into openshift:master Oct 4, 2021
@wking wking deleted the drop-stale-owner-aliases branch October 4, 2021 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants