Page MenuHomePhabricator

Prepare to support an "Ignore generated files" flag in Owners
ClosedPublic

Authored by epriestley on May 4 2018, 8:30 PM.
Tags
None
Referenced Files
F16609757: D19426.diff
Tue, Jun 17, 7:22 AM
F16514154: D19426.id46467.diff
Mon, Jun 16, 8:59 PM
F16514101: D19426.id46473.diff
Mon, Jun 16, 8:59 PM
F16513142: D19426.id.diff
Mon, Jun 16, 8:53 PM
F16504067: D19426.diff
Mon, Jun 16, 7:59 PM
Unknown Object (File)
Sat, May 31, 6:02 AM
Unknown Object (File)
Wed, May 28, 8:09 AM
Unknown Object (File)
Tue, May 27, 8:03 AM
Subscribers
None

Details

Summary

Depends on D19425. Ref T13130. See PHI251. Now that changesets have a durable "generated" attribute, we can let owners packages check it when we're computing which packages are affected by a revision.

There's no way to actualy configure a package to have this behavior yet.

Test Plan
  • Created a revision affecting a generated file and a non-generated file.
    • When I faked mustMatchUngeneratedPaths() to return true;, saw the non-generated file get no packages owning it.
    • Normally: lots of packages owning it).
  • Created a revision affecting only generated files.
    • When I faked things, saw no Owners actions trigger.
    • Normally: some packages added reviewers or subscribers.

Diff Detail

Repository
rP Phabricator
Branch
gen2
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/owners/storage/PhabricatorOwnersPackage.php:151XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 20277
Build 27525: Run Core Tests
Build 27524: arc lint + arc unit