Bug 50647

Summary: Migrate buildbot.py from xmlrpclib to json
Product: WebKit Reporter: William Siegrist <wsiegrist>
Component: Tools / TestsAssignee: William Siegrist <wsiegrist>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eric, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://build.webkit.org
Attachments:
Description Flags
change buildbot.py to use json instead of xmlrpc
eric: review+
fixed tabs in ChangeLog and added python2.5 support with simplejson
eric: review+
add blank line to ChangeLog, fix mockup of build_dictionary
eric: review+, commit-queue: commit-queue-
recreated patch from the root of the repo so CQ can apply it none

Description William Siegrist 2010-12-07 14:38:34 PST
The latest version of buildbot removed the xmlrpc interface. We need to change the buildbot module in webkitpy to use the json interface instead.
Comment 1 William Siegrist 2010-12-07 15:07:41 PST
Created attachment 75847 [details]
change buildbot.py to use json instead of xmlrpc
Comment 2 Eric Seidel (no email) 2010-12-07 15:19:12 PST
Comment on attachment 75847 [details]
change buildbot.py to use json instead of xmlrpc

Your ChangeLog has tabs.  Looks good though.  Assuming you actually ran something like failure-reason which would use this.
Comment 3 William Siegrist 2010-12-07 15:51:51 PST
Created attachment 75848 [details]
fixed tabs in ChangeLog and added python2.5 support with simplejson
Comment 4 Eric Seidel (no email) 2010-12-07 16:10:55 PST
Comment on attachment 75848 [details]
fixed tabs in ChangeLog and added python2.5 support with simplejson

View in context: https://bugs.webkit.org/attachment.cgi?id=75848&action=review

Lgtm. I assume you ran test-webkitpy :)

> WebKitTools/ChangeLog:2
> +        Reviewed by NOBODY (OOPS!).

Normally there is a blank line before this one.
Comment 5 William Siegrist 2010-12-07 18:10:02 PST
Created attachment 75856 [details]
add blank line to ChangeLog, fix mockup of build_dictionary

No, I had not run test-webkitpy, but now I know better. It turns out I needed to update the mockup of build_dictionary to match the new layout of the json data. I also fixed the ChangeLog (again).
Comment 6 Eric Seidel (no email) 2010-12-07 20:10:08 PST
Comment on attachment 75856 [details]
add blank line to ChangeLog, fix mockup of build_dictionary

Thanks again!
Comment 7 WebKit Review Bot 2010-12-07 21:56:20 PST
Attachment 75847 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/update-webkit']" exit_code: 2
Updating OpenSource
Incomplete data: Delta source ended unexpectedly at /usr/lib/git-core/git-svn line 5061

Died at WebKitTools/Scripts/update-webkit line 132.


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 WebKit Commit Bot 2010-12-08 00:19:33 PST
Comment on attachment 75856 [details]
add blank line to ChangeLog, fix mockup of build_dictionary

Rejecting patch 75856 from commit-queue.

Failed to run "['./WebKitTools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=eseidel-cq-sl', 'apply-attachment', '--force-clean', '--non-interactive', 75856]" exit_code: 2
Last 500 characters of output:
 up to this was:
--------------------------
|Index: Scripts/webkitpy/common/net/buildbot.py
|===================================================================
|--- Scripts/webkitpy/common/net/buildbot.py	(revision 73456)
|+++ Scripts/webkitpy/common/net/buildbot.py	(working copy)
--------------------------
No file to patch.  Skipping patch.
4 out of 4 hunks ignored

Failed to run "[u'/Projects/CommitQueue/WebKitTools/Scripts/svn-apply', u'--reviewer', u'Eric Seidel', u'--force']" exit_code: 1

Full output: http://queues.webkit.org/results/6745109
Comment 9 William Siegrist 2010-12-08 07:35:16 PST
Created attachment 75903 [details]
recreated patch from the root of the repo so CQ can apply it
Comment 10 Eric Seidel (no email) 2010-12-08 10:43:40 PST
Comment on attachment 75903 [details]
recreated patch from the root of the repo so CQ can apply it

Thanks.
Comment 11 WebKit Commit Bot 2010-12-08 20:21:27 PST
The commit-queue encountered the following flaky tests while processing attachment 75903 [details]:

inspector/debugger-no-nested-pause.html

Please file bugs against the tests.  These tests were authored by loislo@chromium.org, podivilov@chromium.org, and yurys@chromium.org.  The commit-queue is continuing to process your patch.
Comment 12 WebKit Commit Bot 2010-12-08 20:22:36 PST
Comment on attachment 75903 [details]
recreated patch from the root of the repo so CQ can apply it

Clearing flags on attachment: 75903

Committed r73590: <http://trac.webkit.org/changeset/73590>
Comment 13 WebKit Commit Bot 2010-12-08 20:22:42 PST
All reviewed patches have been landed.  Closing bug.