Page MenuHomePhabricator

Simply how Differential drafts ignore Harbormaster autobuilds
ClosedPublic

Authored by epriestley on Oct 20 2017, 6:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 9:52 AM
Unknown Object (File)
Sat, Apr 6, 10:09 PM
Unknown Object (File)
Sat, Mar 30, 5:18 AM
Unknown Object (File)
Mar 12 2024, 3:27 PM
Unknown Object (File)
Feb 15 2024, 10:20 PM
Unknown Object (File)
Feb 7 2024, 5:21 AM
Unknown Object (File)
Feb 1 2024, 11:21 PM
Unknown Object (File)
Jan 25 2024, 12:36 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.