Page MenuHomePhabricator

Adding a owner package to an audit when package auditing is disable leads to a "not applicable" commit review
Closed, ResolvedPublic

Description

Description

In order to enable specific audit, we created packages and disabled auditing. Indeed, the owner audit feature is not enough specific (ie when working with an upstream project, we don't want to review upstream commits) to trigger only certain commits.

So in order to review only specific commits in our repository, we created an herald rule acting on commits with the following:

Conditions:

Author exists
Affected package is all of <owner_package>

Action

Add auditors <owner_package>

Now when a commit is pushed to the repository, a review is triggered by herald (see transcript)

transcript.png (174×706 px, 19 KB)

But it is not applicable

review.png (112×1 px, 22 KB)

Note that the commit author is also in the owner package.

Is this the expected behavior since auditing is disabled ? If so, what is the proper way to trigger such specific audit ?

Reproducing

  1. Create a owner package with at least two members
  2. Disable auditing FOR THIS PACKAGE
  3. Add a repo path to this package
  4. Add an herald rule to add this package as auditor when a commit which affect this packages is pushed
  5. Push a commit to the repository
  6. See that no action is triggered.