Page MenuHomePhabricator

Obtain a link to harbormaster build output from a commit or review.
Closed, ResolvedPublic

Description

Given a differential review, I'd like to be able to obtain a link to the final, successful harbormaster build+test output. I don't see any way of doing so in conduit today?

Event Timeline

Not everything you need here has modern API methods, but I think you can get pretty close:

  • Start with the revision ID (for example, on this install, I'll use D17603).
  • Use differential.search to find the PHID (here, "PHID-DREV-jszgjtyub443tcjegqsu") with the "ids" constraint:

Screen Shot 2017-04-02 at 5.32.15 PM.png (1×2 px, 194 KB)

  • Then, use harbormaster.querybuildables to search for the buildable, using containerPHIDs (set to ["PHID-DREV-jszgjtyub443tcjegqsu"]) plus manualBuildables (set to false). This will give you all buildables for the revision, filtering out manual/test builds. In all reasonable cases, the one with the highest ID will be the most recent one, and you can use the uri property to get a link to it:

Screen Shot 2017-04-02 at 5.35.29 PM.png (1×1 px, 191 KB)

Is that what you're after?

thanks, I didn't think to use containerPHIDs, I'll give this a go this coming week and let you know if it works for me. Thanks!

thanks, this worked for me!

epriestley claimed this task.

Great! Let us know if you run into anything else.