Skip to content

approve plugin makes assumptions about OWNERS file implementation #7690

@cjwagner

Description

@cjwagner

The approve plugin is not working with regex filtering because it makes a bunch of undocumented assumptions about the implementation of the repoowners package which aren't necessarily true for regex filtered OWNERS files (thats what I get for copying code from mungegithub...)
Some invalid assumptions that are not provided by the interface:

  • Approvers in OWNERS files are able to approve any file in the directory or subdirectories.
  • OWNERS files contain one set of approvers.
  • Files in the same directory have the same approvers.

The approve plugin will need a pretty significant rewrite to support regex filtering. It was due for one anyways; it is very inefficient and excessively complex, but I don't think I'll have the cycles to do this in the near future.

Other OWNERS file based plugins (blunderbuss, owners-label) are unaffected by this problem and should work properly with regexp filtering.

Sorry for the trouble Jeff ☹️

/kind bug
/area prow
cc @ixdy @rmmh

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/prowIssues or PRs related to prowkind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.sig/contributor-experienceCategorizes an issue or PR as relevant to SIG Contributor Experience.sig/testingCategorizes an issue or PR as relevant to SIG Testing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions