Last modified: 2013-07-25 07:06:16 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 T46961, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44961 - [Regression] gerrit-wm shows "Patch set #:" instead of the real first line of the comment.
[Regression] gerrit-wm shows "Patch set #:" instead of the real first line of...
Status: VERIFIED FIXED
Product: Wikimedia
Classification: Unclassified
Git/Gerrit (Other open bugs)
wmf-deployment
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: code-update-regression
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-13 19:14 UTC by Krinkle
Modified: 2013-07-25 07:06 UTC (History)
5 users (show)

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


Attachments

Description Krinkle 2013-02-13 19:14:32 UTC
Looks like the API that gerrit-wm gets its data from has changed in the latest Gerrit update. The Path set prefix is now considered part of the comment, so when the bot trims the first line, it now gets the Patch Set prefix instead of the real first line of the comment.


<gerrit-wm> New review: Krinkle; "Patch Set 6:" [integration/jenkins-job-builder] (master) - https://gerrit.wikimedia.org/r/44836
Comment 1 Chad H. 2013-02-13 19:28:25 UTC
While we're at it, lets rewrite it to use the rest api.
Comment 2 Krinkle 2013-02-13 19:34:17 UTC
btw, this also means we're getting notifications in IRC for "(no comment)" actions (which we previously disabled).

Is this being worked on already? If not, maybe point out where this logic is. Perhaps someone can take it on.
Comment 3 MZMcBride 2013-02-13 19:36:42 UTC
Thanks for filing this bug, Krinkle.
Comment 4 Chad H. 2013-02-13 19:45:52 UTC
(In reply to comment #2)
> Is this being worked on already? If not, maybe point out where this logic is.
> Perhaps someone can take it on.

No, I hadn't started it yet. It's all in the puppet repo, the hooks can be found in files/gerrit/hooks/*
Comment 5 Antoine "hashar" Musso (WMF) 2013-02-19 19:49:06 UTC
Note that Zuul look at 'recheck' comments to retrigger a check on the change. The regex had to be updated:

-        comment_filter: (?i)^\s*recheck\.?\s*$
+        comment_filter: (?im)^Patch Set \d+:\n\n\s*recheck\.?\s*$

References:

https://gerrit.wikimedia.org/r/#/c/49245/
https://gerrit.wikimedia.org/r/#/c/49249/
Comment 6 Chad H. 2013-02-20 21:47:08 UTC
Being handled in Gerrit change #50041.
Comment 7 Antoine "hashar" Musso (WMF) 2013-02-20 23:45:35 UTC
Zuul does look for a comment like 'recheck'. Some regex need to be updated in zuul-config : https://gerrit.wikimedia.org/r/50121
Comment 8 Chad H. 2013-02-22 15:59:23 UTC
This is merged and live.
Comment 9 Antoine "hashar" Musso (WMF) 2013-02-22 16:14:35 UTC
Zuul change deployed as well.
Comment 10 Krinkle 2013-02-23 00:17:59 UTC
Great!

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


Navigation
Links