Page MenuHomePhabricator

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

Assigned To
None
Authored By
clemvangelis
Jan 18 2016, 4:48 PM
Referenced Files
F1063360: transcript.png
Jan 18 2016, 4:48 PM
F1063355: review.png
Jan 18 2016, 4:48 PM

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.

Revisions and Commits

Restricted Differential Revision

Related Objects

Event Timeline

eadler added a project: Restricted Project.Apr 11 2016, 9:41 PM
eadler moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.May 13 2016, 6:02 PM
eadler edited projects, added Restricted Project; removed Restricted Project.
epriestley added a revision: Restricted Differential Revision.May 17 2016, 7:01 PM
epriestley closed this task as Resolved by committing Restricted Diffusion Commit.May 17 2016, 8:47 PM
epriestley added a commit: Restricted Diffusion Commit.