Opened 3 years ago

#3261 new enhancement

Custom IRC Notifications

Reported by: jroelofs Owned by:
Priority: major Milestone: undecided
Version: 0.8.10 Keywords: irc
Cc: llvm-dev@…

Description

In the LLVM community, we've got a discussion going about how noisy our buildbots are. One solution that came up was the possibility to customize the format of the messages that buildbot outputs to reduce duplication.

Current messages look like this:

11:53:13 AM - llvmbb___: build #387 of libcxx-libcxxabi-x86_64-linux-ubuntu-asan is complete: Failure [failed test.libcxx]  Build details are at http://lab.llvm.org:8011/builders/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/builds/387  blamelist: marshall

and are quite lengthy, and contain a lot of duplicate information.

It would be excellent if we could configure that to be something like:

11:53:13 AM - llvmbb___: r23725 (#387) http://lab.llvm.org:8011/builders/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/builds/387 - FAILED blamelist: marshall

Even better if the urls could be optionally fed through a public shortener like:

11:53:13 AM - llvmbb___: r23725 (#387) libcxx-libcxxabi-x86_64-linux-ubuntu-asan http://bit.ly/1HhLLZU - FAILED blamelist: marshall

Or better yet, through a buildbot hosted shortener, like:

11:53:13 AM - llvmbb___: r23725 (#387) libcxx-libcxxabi-x86_64-linux-ubuntu-asan http://lab.llvm.org:8011/1HhLLZU - FAILED blamelist: marshall

AFAICT, such configuration isn't supported by buildbot.status.words.IRC: http://docs.buildbot.net/latest/manual/cfg-statustargets.html#irc-bot

I don't know much about the internals of buildbot to suggest a design here, but I think it would be awesome if we could register a callback with that class to create the custom message format, and return the string to be printed.

Change History (0)

Note: See TracTickets for help on using tickets.