Page MenuHomePhabricator

Simply how Differential drafts ignore Harbormaster autobuilds
ClosedPublic

Authored by epriestley on Oct 20 2017, 6:59 PM.
Tags
None
Referenced Files
F18102205: D18721.id.diff
Sat, Aug 9, 7:08 PM
F18099896: D18721.id44941.diff
Sat, Aug 9, 9:19 AM
F18099872: D18721.id44946.diff
Sat, Aug 9, 9:12 AM
F18098417: D18721.diff
Fri, Aug 8, 8:04 PM
F17941852: D18721.id44941.diff
Thu, Jul 31, 5:56 AM
F17842967: D18721.id44946.diff
Jul 27 2025, 12:19 AM
F17816439: D18721.diff
Jul 25 2025, 10:45 PM
F17781272: D18721.id44946.diff
Jul 24 2025, 6:03 AM
Subscribers
Restricted Owners Package

Details

Summary

Ref T2543. When a revision is created, we check if any builds are waiting/failed, and submit it for review immediately if we aren't waiting for anything.

In doing this, we ignore builds with only autotargets, since these are client-side and failures from local arc lint / arc unit should not count (the user has already chosen to ignore/skip them).

The way we do this has some issues:

  • Herald may have started builds, but they may still be PENDING and not have any targets yet. In this case, we'll see "no non-autotargets" and ignore the build, which is wrong.
  • We have to load targets but don't really care about them, which is more work than we really need to do.
  • And it's kind of complex, too.

Instead, just let BuildQuery filter out "autobuilds" (builds generated from autoplans) with a JOIN.

Test Plan

Ran arc diff with builds configured, got a clean "Draft" state instead of an incorrect promotion directly to "Needs Review".

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a subscriber: Restricted Owners Package.Oct 20 2017, 6:59 PM
This revision is now accepted and ready to land.Oct 21 2017, 4:17 PM
This revision was automatically updated to reflect the committed changes.