Last modified: 2014-09-01 07:53:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68095, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66095 - Zuul: de-uglify the test build results list in Gerrit
Zuul: de-uglify the test build results list in Gerrit
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Low enhancement (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-03 22:29 UTC by Greg Grossmeier
Modified: 2014-09-01 07:53 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
OpenStack's Jenkins Comments (17.67 KB, image/png)
2014-06-03 22:29 UTC, Greg Grossmeier
Details
WMF Jenkins Comments (42.32 KB, image/png)
2014-06-03 22:31 UTC, Greg Grossmeier
Details
Pretty comment on Wikimedia setup (55.25 KB, image/png)
2014-08-20 19:56 UTC, Antoine "hashar" Musso (WMF)
Details

Description Greg Grossmeier 2014-06-03 22:29:50 UTC
Created attachment 15559 [details]
OpenStack's Jenkins Comments

[I assume this would be fixed in Zuul/Jenkins not in Gerrit (Zuul/Jenkins is leaving the comment).]
Comment 1 Greg Grossmeier 2014-06-03 22:30:52 UTC
(Gah! Mis-targetted enter key!)

Compare the screenshot of OpenStack's Jenkins comments in Gerrit and ours. One is easily readable, the other isn't. Let's have easily readable.
Comment 2 Greg Grossmeier 2014-06-03 22:31:21 UTC
Created attachment 15560 [details]
WMF Jenkins Comments
Comment 3 Antoine "hashar" Musso (WMF) 2014-06-04 08:23:22 UTC
We could do it. 

Zuul need to prepend the job name in the reported URL which is a single configuration change in zuul.conf:

https://review.openstack.org/#/c/42495/2/modules/zuul/templates/zuul.conf.erb


Then in Gerrit configuration add a [commentlink] that for a matched regex replace it with some HTML:


https://review.openstack.org/#/c/42495/2/modules/openstack_project/manifests/gerrit.pp,unified

 [commentlink "testresult"]
   match = '<li>([^ ]+) <a href=\"[^\"]+\">([^<]+)</a> : ([^ ]+)([^<]*)</li>',
   html  = '<li><span class=\"comment_test_name\"><a href=\"$2\">$1</a></span> <span class=\"c
omment_test_result\"><span class=\"result_$3\">$3</span>$4</span></li>',


We can give it a try on integration-dev.eqiad.wmflabs.


I don't have much time to look at it right now though.
Comment 4 Gerrit Notification Bot 2014-08-17 20:23:18 UTC
Change 154524 had a related patch set uploaded by Hashar:
gerrit: prettify Zuul build results

https://gerrit.wikimedia.org/r/154524
Comment 5 Antoine "hashar" Musso (WMF) 2014-08-17 20:46:50 UTC
I gave it a try and the above puppet change tweak Gerrit and Zuul config to make the build result a bit nicer.

An example can be shown on a labs instance http://integration.wmflabs.org/gerrit/#/c/12/  (the link will eventually disappear one day).
Comment 6 Greg Grossmeier 2014-08-18 03:42:27 UTC
+1
Comment 7 Gerrit Notification Bot 2014-08-20 19:37:25 UTC
Change 154524 merged by Dzahn:
gerrit: prettify Zuul build results

https://gerrit.wikimedia.org/r/154524
Comment 8 Antoine "hashar" Musso (WMF) 2014-08-20 19:56:26 UTC
Created attachment 16250 [details]
Pretty comment on Wikimedia setup

Attached is the result of the crazy regex on Wikimedia Gerrit installation. Much nicer.
Comment 9 Antoine "hashar" Musso (WMF) 2014-08-20 19:58:09 UTC
The original regex comes from James E. Blair (OpenStack).

Christian Aistleitner kindly reviewed and further improved the regex (thanks!).

Daniel Zahn deployed the change on spot.

\O/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links