-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Revert revert ownersdir denylist #21693
Revert revert ownersdir denylist #21693
Conversation
/cc @alvaroaleman |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, chaodaiG The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -394,7 +394,10 @@ func (c *Client) cacheEntryFor(org, repo, base, cloneRef, fullName, sha string, | |||
log.WithField("duration", time.Since(start).String()).Debugf("Completed loadAliasesFrom(%s, log)", gitRepo.Directory()) | |||
|
|||
start = time.Now() | |||
ignoreDirPatterns := c.ownersDirBlacklist().ListIgnoredDirs(org, repo) | |||
var ignoreDirPatterns []string | |||
if ownersDirDenylist := c.ownersDirDenylist(); ownersDirDenylist != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is still broken for me, it looks like this change was deployed in the latest prow image already?
In my PR, the bot is detecting OWNERS files in my vendor dir:
kubernetes-sigs/aws-ebs-csi-driver#792
the type of OwnersDirBlacklist changed from OwnersDirBlacklist
to pointer to OwnersDirDenylist
.
Previously if ownersDirBlacklist() returned an empty OwnersDirBlacklist struct, then ownersDirBlacklist.ListIgnoredDirs would still add the default ignored dirs.
Now if ownersDirDenylist is nil, the ownersDirBlacklist.ListIgnoredDirs don't get added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert, it's still broken.
Trying again #21577
This PR breaks down to 2 commits:
Related https://kubernetes.slack.com/archives/C7J9RP96G/p1617765164034100