Last modified: 2013-05-13 16:12:13 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 T37943, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35943 - Elaborate more in case of failures in the jenkins-bot comment in Gerrit
Elaborate more in case of failures in the jenkins-bot comment in Gerrit
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 35942
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-13 07:48 UTC by Antoine "hashar" Musso (WMF)
Modified: 2013-05-13 16:12 UTC (History)
6 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2012-04-13 07:48:30 UTC
Whenever bug 35942 is implemented (comparing Qqq En and messages.inc) we will want Jenkins to report a nice review messages in Gerrit.

That can probably be done by tweaking the commit message in a new children Job of GIT-Fetching.
Comment 1 Krinkle 2012-05-06 20:54:40 UTC
Rephrasing bug to generalize the idea. I agree it would be nice if one wouldn't have to dig into Jenkins to find out what the problem is.

On the other hand, the Jenkins interface is very simple to use, and especially the PHPUnit module is very well integrated. From the parent job build page to the exact name of the failing test is only 2 clicks from the comment in Gerrit.
1) Gerrit comment: https://integration.mediawiki.org/ci/job/MediaWiki-GIT-Fetching/1104/
2) Failing build: MediaWiki-Tests-Misc
* https://integration.mediawiki.org/ci/job/MediaWiki-Tests-Misc/841/
* Result:
> Test Result (1 failure / +1)
> * WikiPageTest.testDoRollback

When the parent job "GIT-Fetching" is finished with all children builds, it does the Verified -1/+1 in Gerrit and then either leaves a comment in Gerrit that the build has PASSED with a link to the build page in Jenkins (nothing more - if one wants to know the results of the lint check, or individual phpunit tests, style test, testswarm etc. - then one should be able to get there via the build page in Jenkins).

Idea: In case the build fails, let Jenkins leave a little more elaborate comment in Gerrit.

* Indicate which child build failed (lint, style, phpunit, testswarm, ..)
* Include the list (up to 10?) of names of tests that failed

I'd rather not add a workaround to add something in the Gerrit comment maker for one particular unit test only (bug bug 35942  in this case). That means we'd have to hard code the name of the unit test somewhere and extract the result from the phpunit build results.

I don't know how easy it is to extract these stats from where the Gerrit comment is formatted, but it seems for phpunit jobs the information is very well aggregated, something like this maybe?

(jenkins-bot)
> Build PASSED
> Details: https://integration.mediawiki.org/ci/job/MediaWiki-GIT-Fetching/1138/
>


(jenkins-bot)
> Build FAILED
> Aggregated Test Result: 1 failure
>
> Failed build(s):
> * MediaWiki-Tests-Misc: 1 failure
>   - LanguageTest.testMissingMessageEntries
>
> Details: https://integration.mediawiki.org/ci/job/MediaWiki-GIT-Fetching/1104/
>

(jenkins-bot)
> Build FAILED
> Aggregated Test Result: 3 failures
>
> Failed build(s):
> * MediaWiki-Tests-Misc: 1 failure
>   - LanguageTest.testMissingMessageEntries
> * MediaWiki-Tests-TestSwarm: 2 failures
>   - http://integration.mediawiki.org/testswarm/job/0000/
>
> Details: https://integration.mediawiki.org/ci/job/MediaWiki-GIT-Fetching/0000/
>

Maybe limit to only show the first 10.
Comment 2 Antoine "hashar" Musso (WMF) 2013-05-13 16:12:13 UTC
This is mostly fulfilled by Zuul which have deployed in November 2012.  We can tweak each job URL to point to something more useful than the console.

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


Navigation
Links