Page MenuHomePhabricator

Fix Herald test adapter for commits
ClosedPublic

Authored by epriestley on Aug 17 2016, 3:37 PM.
Tags
None
Referenced Files
F13083858: D16413.diff
Wed, Apr 24, 10:44 PM
F13082837: D16413.diff
Wed, Apr 24, 10:18 PM
Unknown Object (File)
Sun, Apr 21, 4:00 PM
Unknown Object (File)
Sat, Apr 20, 1:23 AM
Unknown Object (File)
Fri, Apr 19, 5:13 PM
Unknown Object (File)
Wed, Apr 17, 2:03 PM
Unknown Object (File)
Wed, Apr 17, 5:35 AM
Unknown Object (File)
Wed, Apr 10, 11:39 PM
Subscribers
None

Details

Summary

Fixes T11488. I broke this in D16360, I think by doing a little extra refactoring after testing it.

This code is very old, before commits always needed to have repositories attached in order to do policy checks.

Modernize it by mostly just using the repository which is present on the Commit object, and using the existing edge cache.

Test Plan

Ran a commit through the Herald test adapter.

Diff Detail

Repository
rP Phabricator
Branch
hcommit
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 13344
Build 17120: Run Core Tests
Build 17119: arc lint + arc unit