New build failure emails are difficult to act on

Mojca Miklavec mojca at macports.org
Wed Nov 2 00:20:32 PDT 2016


On 2 November 2016 at 06:17, Jeremy Huddleston Sequoia wrote:
> I've been having a bit of difficulty dealing with the new buildbot emails.  I would really like links to the individual failing jobs.  Instead, we're given links to each job and a list of failed ports, but there is no indication as to which port corresponds to which job.  One must look thorough each link to find the relevant one.
>
> Could we get those links added to the 'Broken ports' section?

Sure. We gladly accept patches :) :) :)

OK, joke aside. I wrote the part of the code that generates the
emails, but I did not manage to figure out how to map the build
number/url to a port. Buildbot nine is apparently more clever about
that and there it should apparently be more straightforward to do it,
but many are reluctant to switch just yet.

There are several ways to fix this:

- hack into Python code (most elegant, but I did not have any success
with that yet)

- I once tried to fetch the contents of json files for individual
builds and parse it, but that crashed/froze the buildbot (it might be
that I wrote buggy code, but that approach is super ugly anyway)

- probably the easiest workaround would be to print the URL or the
build number to
  https://build.macports.org/builders/ports-10.8_x86_64_legacy-watcher/builds/2764/steps/summary/logs/stdio
which would make it easier to map the URLs to ports.

Somewhat related tickets:
    https://trac.macports.org/ticket/52766
    https://trac.macports.org/ticket/51995

Mojca


More information about the macports-dev mailing list