Last modified: 2014-08-19 14:40:12 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 T66015, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64015 - Allow trusted users to recheck all tests of a patch set, when they comment "recheck" in gerrit
Allow trusted users to recheck all tests of a patch set, when they comment "r...
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Normal enhancement (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-16 20:10 UTC by christian
Modified: 2014-08-19 14:40 UTC (History)
5 users (show)

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


Attachments

Description christian 2014-04-16 20:10:41 UTC
Although wikistats has tests, and my email address is among the trusted
email addresses in zuul-config's layout.yaml, commenting "recheck" in the
third comment on change 126264 did not retrigger running tests.
Comment 1 Gerrit Notification Bot 2014-04-16 20:13:29 UTC
Change 126838 had a related patch set uploaded by QChris:
'recheck' by whitelisted users now runs tests

https://gerrit.wikimedia.org/r/126838
Comment 2 Antoine "hashar" Musso (WMF) 2014-04-16 20:25:55 UTC
Posted on qa-l http://lists.wikimedia.org/pipermail/qa/2014-April/001381.html the following:


TL;DR: make 'recheck' by a whitelisted user to triggers tests jobs


Gerrit/Zuul have a hidden feature which is that one can comment 'recheck' on a change in Gerrit and that reenqueue the Change in the Zuul 'check' pipeline.

That pipeline is meant to run linting checks which are fast whereas the actual tests are run in a 'test' pipeline.

From time to time people are using 'recheck' and wondering why only the lint jobs are being run.


I have upgraded Zuul today and we can slightly enhance the way changes are added to pipelines.  My proposal would be to have 'recheck' to trigger the test jobs, ie the one in the 'test' pipeline.  The drawback is that non whitelisted user would no more be able to use it but I dont think it provided any added value.

That would save people from having to create a new patchset (via rebase, or commit summary editing) and should save a bunch of time overall.

Similarly, we could add a 'regate' comment that would enqueue the change if it has been already voted CR+2.  Letting anyone resubmit a change without having CR+2 rights.
Comment 3 Gerrit Notification Bot 2014-04-18 13:12:01 UTC
Change 126838 merged by jenkins-bot:
'recheck' by whitelisted users now runs tests

https://gerrit.wikimedia.org/r/126838
Comment 4 Antoine "hashar" Musso (WMF) 2014-04-18 15:14:49 UTC
Merged https://gerrit.wikimedia.org/r/126838 and does not do what we wanted. Instead the much simpler  https://gerrit.wikimedia.org/r/#/c/127252/ let whitelisted user fill comment 'recheck' and that will trigger the job :-]


To further improve the process we could trigger the tests when a trusted user comment CR +1 on a patch sent by an untrusted user (i.e. having Verified +1).
Comment 5 Gerrit Notification Bot 2014-04-18 15:34:23 UTC
Change 127259 had a related patch set uploaded by Hashar:
Code review by whitelisted users should triggers tests

https://gerrit.wikimedia.org/r/127259
Comment 6 christian 2014-04-18 16:08:29 UTC
Commenting "recheck" now worked as expected for analytics/wikistats.

(The change in comment #5 would be great, but it's good enough for me
to be able to retrigger by "recheck"-ing)
Comment 7 christian 2014-04-18 16:09:36 UTC
Thanks Antoine for the quick fix :-)
Comment 8 Antoine "hashar" Musso (WMF) 2014-04-18 16:19:04 UTC
I proposed a patch upstream that might support the workflow described in comment #5 : https://review.openstack.org/#/c/88616/  we will see :]
Comment 9 Antoine "hashar" Musso (WMF) 2014-08-19 14:40:12 UTC
Turns out the workflow described (CR+1 by trusted triggering tests) is already filled as: Bug 62429 - Zuul: run 'test' jobs on jenkins when trusted user votes +1 and only 'check' jobs was ran

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


Navigation
Links