Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented Jun 29, 2021

Seen in an autoowners call:

$ go run ./cmd/autoowners -debug-mode -dry-run -target-dir ../origin -target-subdir test -config-subdir extended
...
INFO[0000] ListOrgMembers(openshift, all)                client=github
INFO[0002] handling repo ...                             orgRepo=util/image
INFO[0002] GetFile(util, image, OWNERS, )                client=github
DEBU[0002] GetFile(util, image, OWNERS, ) finished       client=github duration=574.249751ms
DEBU[0002] Not found file in the upstream repo           filename=OWNERS orgRepo=util/image
INFO[0002] GetFile(util, image, OWNERS_ALIASES, )        client=github
DEBU[0003] GetFile(util, image, OWNERS_ALIASES, ) finished  client=github duration=479.108876ms
DEBU[0003] Not found file in the upstream repo           filename=OWNERS_ALIASES orgRepo=util/image
WARN[0003] Ignoring the repo with no OWNERS file in the upstream repo.  orgRepo=util/image
...

No need to hit GitHub for OWNERS_ALIASES unless we have successfully retrieved an OWNERS which might reference aliases.

The continue I'm replacing is from 3d0c6cc (#115).

Seen in an autoowners call:

  $ go run ./cmd/autoowners -debug-mode -dry-run -target-dir ../origin -target-subdir test -config-subdir extended
  ...
  INFO[0000] ListOrgMembers(openshift, all)                client=github
  INFO[0002] handling repo ...                             orgRepo=util/image
  INFO[0002] GetFile(util, image, OWNERS, )                client=github
  DEBU[0002] GetFile(util, image, OWNERS, ) finished       client=github duration=574.249751ms
  DEBU[0002] Not found file in the upstream repo           filename=OWNERS orgRepo=util/image
  INFO[0002] GetFile(util, image, OWNERS_ALIASES, )        client=github
  DEBU[0003] GetFile(util, image, OWNERS_ALIASES, ) finished  client=github duration=479.108876ms
  DEBU[0003] Not found file in the upstream repo           filename=OWNERS_ALIASES orgRepo=util/image
  WARN[0003] Ignoring the repo with no OWNERS file in the upstream repo.  orgRepo=util/image
  ...

No need to hit GitHub for OWNERS_ALIASES unless we have successfully
retrieved an OWNERS which might reference aliases.

The continue I'm replacing is from 3d0c6cc (Copy autoowners from
release repo, 2019-09-04, openshift#115) [1].

[1]: openshift@3d0c6cc#diff-d9fc97e94b9e2c25a3bd5eec3f3439e533b9d2d347be59f97d10506f7d61574dR147
@wking wking force-pushed the autoowners-no-aliases-without-owners branch from 3d6c114 to 1cd1d66 Compare June 29, 2021 22:20
Copy link
Member

@petr-muller petr-muller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙇

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

openshift-ci bot commented Jun 30, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: petr-muller, 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 Jun 30, 2021
@openshift-merge-robot openshift-merge-robot merged commit b44eb82 into openshift:master Jun 30, 2021
@wking wking deleted the autoowners-no-aliases-without-owners branch June 30, 2021 13:26
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