[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible debian: more descriptive names for issue score columns
Holger Levsen
holger at layer-acht.org
Tue Jun 14 20:12:01 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 628b86e1dccf03c429a486162e6c0d12ee3a03cd
Author: Ximin Luo <infinity0 at debian.org>
Date: Tue Jun 14 21:43:06 2016 +0200
reproducible debian: more descriptive names for issue score columns
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_html_notes.py | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index 11bcc0f..db55e2d 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -415,7 +415,9 @@ def index_issues(issues, scorefuncs):
+ "".join(
tab*3 + k + "\n" + tab*2 + "</th>\n" + tab*2 + "<th>\n"
for k in scorefuncs.keys()) \
- + tab*3 + "Affected packages\n" + tab*2 + "</th>\n" + tab + "</tr>\n"
+ + tab*3 + "Affected packages<br/>\n" \
+ + tab*3 + "(the 1/4 most-popular are underlined)\n" \
+ + tab*2 + "</th>\n" + tab + "</tr>\n"
html = (tab*2).join(templ.splitlines(True))
for issue in sorted(issues, key=lambda issue: sort_issues(firstscorefunc, issue)):
html += tab*3 + '<tr>\n'
@@ -457,9 +459,12 @@ if __name__ == '__main__':
iterate_over_notes(notes)
iterate_over_issues(issues)
index_issues(issues, OrderedDict([
- ('Total popcon score', lambda l: sum(popcon.package(*l).values())),
- ('Total of sqrt(popcon score)', lambda l: int(sum(map(sqrt, popcon.package(*l).values())))),
- ('Total number', len),
+ ("Sum of packages' popcon scores",
+ lambda l: sum(popcon.package(*l).values())),
+ ("Sum of square-roots of packages' popcon scores",
+ lambda l: int(sum(map(sqrt, popcon.package(*l).values())))),
+ ("Number of packages",
+ len),
]))
purge_old_notes(notes)
purge_old_issues(issues)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list