Homec4science

Allow Harbormaster builds to publish to a different object

Authored by epriestley <git@epriestley.com> on Jan 4 2017, 20:31.

Description

Allow Harbormaster builds to publish to a different object

Summary:
Fixes T9276. Fixes T8650. The story so far:

  • We once published build updates to Revisions.
  • An unrelated fix (D10911) sent them to the Diffs instead of Revisions, which isn't useful, since you can't see a diff's timeline anywhere.
  • This also caused a race condition, where the RevisionEditor and DiffEditor would update the diff simultaneously (T8650).
  • The diff update was just disabled to avoid the race (part of D13441).
  • Instead, allow the updates to go somewhere else. In this case, we send commit updates to the commit but send diff updates to the revision so you can see 'em.
  • Since everything will be using the revision editor now, we should either get proper lock behavior for free or it should be easy to add if something whack is still happening.
  • Overall, this should pretty much put us back in working order like we were before D10911.

This behavior is undoubtedly refinable, but this should let us move forward.

Test Plan:
Saw a build failure in timeline:

{F2304575}

Reviewers: chad

Reviewed By: chad

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T9276, T8650

Differential Revision: https://secure.phabricator.com/D17139

Details

Committed
epriestley <git@epriestley.com>Jan 4 2017, 22:46
Pushed
aubortJan 31 2017, 17:16
Parents
rPHe9243f22b92c: Add Form MenuItem, Fix EditEngine Typeahead
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHef05bf335d8e: Allow Harbormaster builds to publish to a different object (authored by epriestley <git@epriestley.com>).Jan 4 2017, 22:46