From a1b24fa663d012f22fbe776ca4ff1ccee67b35b9 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Sun, 10 May 2015 19:21:18 +0000 Subject: [PATCH] buildbot: terser IRC messages --- srcpkgs/buildbot/patches/terse-irc.patch | 38 ++++++++++++++++++++++++ srcpkgs/buildbot/template | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/buildbot/patches/terse-irc.patch diff --git a/srcpkgs/buildbot/patches/terse-irc.patch b/srcpkgs/buildbot/patches/terse-irc.patch new file mode 100644 index 00000000000..5036cd9ebfe --- /dev/null +++ b/srcpkgs/buildbot/patches/terse-irc.patch @@ -0,0 +1,38 @@ +--- buildbot/status/words.py.orig ++++ buildbot/status/words.py +@@ -439,9 +439,9 @@ + self.send(r) + + results_descriptions = { +- SUCCESS: ("Success", 'GREEN'), +- WARNINGS: ("Warnings", 'YELLOW'), +- FAILURE: ("Failure", 'RED'), ++ SUCCESS: ("OK", 'GREEN'), ++ WARNINGS: ("Warn", 'YELLOW'), ++ FAILURE: ("Fail", 'RED'), + EXCEPTION: ("Exception", 'PURPLE'), + RETRY: ("Retry", 'AQUA_LIGHT'), + } +@@ -466,19 +466,18 @@ + results = self.getResultsDescriptionAndColor(build.getResults()) + if self.reportBuild(builder_name, buildnum): + if self.useRevisions: +- r = "build containing revision(s) [%s] on %s is complete: %s" % \ ++ r = "%s/%s: %s" % \ + (buildrevs, builder_name, results[0]) + else: + r = "build #%d of %s is complete: %s" % \ + (buildnum, builder_name, results[0]) + +- r += ' [%s]' % maybeColorize(" ".join(build.getText()), results[1], self.useColors) + buildurl = self.bot.status.getURLForThing(build) + if buildurl: +- r += " Build details are at %s" % buildurl ++ r += ": %s" % buildurl + + if self.bot.showBlameList and build.getResults() != SUCCESS and len(build.changes) != 0: +- r += ' blamelist: ' + ', '.join(list(set([c.who for c in build.changes]))) ++ r += ' blame: ' + ', '.join(list(set([c.who for c in build.changes]))) + + self.send(r) + diff --git a/srcpkgs/buildbot/template b/srcpkgs/buildbot/template index 5a5650b5e38..e743cba668a 100644 --- a/srcpkgs/buildbot/template +++ b/srcpkgs/buildbot/template @@ -1,7 +1,7 @@ # Template file for 'buildbot' pkgname=buildbot version=0.8.12 -revision=1 +revision=2 noarch=yes build_style=python-module hostmakedepends="python"