GSoC 2019 [Buildbot ideas]

Mojca Miklavec mojca at macports.org
Fri Mar 22 17:05:53 UTC 2019


Dear Rajdeep,

On Fri, 22 Mar 2019 at 15:56, Rajdeep Bharati wrote:
>
> I was going through the ticket and implemented a really basic (and incomplete) version of View nr. 1: https://rajdeepbharati.github.io/macports-views/ as a standalone Vue app.

Thank you very much.

> This is currently fetching 10 latest commits using the GitHub API (You can see the code here). I wonder if this is the correct way of doing this? Also, how can I check the success/failure status of the commit? Note that this hasn't been connected to buildbot.

I will let Pierre comment on the source code etc., but this definitely
needs to connect to buildbot to get the status report.

Out existing buildbot installation is using version 0.8 which probably
lacks to many API functionality to be useful for any serious
experiment, but it's available here:
    https://build.macports.org/json/help
and the configuration + instructions for installation are here:
    https://github.com/macports/macports-infrastructure/tree/master/buildbot

You could check whether the build was successful here for example:
    https://build.macports.org/json/builders/ports-10.14_x86_64-builder/builds/26900?as_text=1

The problem is that this API (from 0.8.x at least) only allows you to
query build number, not commit id. I don't know yet whether this is
already possible out-of-the-box in 2.x.

OK, if you check
https://github.com/macports/macports-ports/commits/master you'll
notice green checkmarks and red crosses that link to the buildbot
builds. This was added in cca.
    https://github.com/macports/macports-infrastructure/commit/d9aeeb32b22a06eb39f1a0317869e9c12e3ed021
so it could actually be that you could ask GitHub to tell you whether
a build was successful, but going through the GitHub interface alone
is probably not going to get you too far. The idea would be to get
this info from the buildbot api. The buildbot api itself might need to
be extended to achieve all the desired goals / to be able to display
the desired views.

But Pierre should know better and answer in a more competent way.

(I'll later send more general information about this topic from the
macports side.)

Mojca


More information about the macports-dev mailing list