Bug 32313

Summary: queue sub-commands need --status-host so they can report status
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
WIP patch
none
Patch abarth: review+, eric: commit-queue-

Description Eric Seidel (no email) 2009-12-09 01:33:17 PST
queue sub-commands need --status-host so they can report status

We should really pass all of the global arguments down to the sub-commands.  Not sure exactly how we'll do that yet.  Global argument parsing is not well abstracted between MultiCommandTool and BugzillaTool.

Once we do this, then sub-commands will have a StatusBot.  Once that's the case, then it's a one-line patch to dump build output into the status server.
Comment 1 Eric Seidel (no email) 2009-12-09 01:34:21 PST
Created attachment 44523 [details]
WIP patch
Comment 2 Eric Seidel (no email) 2009-12-15 00:16:25 PST
Created attachment 44850 [details]
Patch
Comment 3 WebKit Review Bot 2009-12-15 00:17:42 PST
style-queue ran check-webkit-style on attachment 44850 [details] without any errors.
Comment 4 Eric Seidel (no email) 2009-12-15 01:04:35 PST
Comment on attachment 44850 [details]
Patch

Going to land this one by hand.
Comment 5 Eric Seidel (no email) 2009-12-15 01:17:45 PST
Comment on attachment 44850 [details]
Patch

Adding back to the CQ for testing.
Comment 6 Eric Seidel (no email) 2009-12-15 01:18:19 PST
Comment on attachment 44850 [details]
Patch

Rejecting patch 44850 from commit-queue.

Unexpected failure when landing patch!  Please file a bug against bugzilla-tool.
Failed to run "['/Projects/WebKit/WebKitTools/Scripts/bugzilla-tool', '--status-host', 'localhost:8080', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', '--quiet', '44850']" exit_code: 1
Usage: bugzilla-tool [options] COMMAND [ARGS]

bugzilla-tool: error: --status-host option requires an argument

Type "bugzilla-tool --help" to see usage.
Comment 7 Eric Seidel (no email) 2009-12-15 01:20:30 PST
Comment on attachment 44850 [details]
Patch

Adding back to the CQ for testing.
Comment 8 Eric Seidel (no email) 2009-12-15 01:21:17 PST
Comment on attachment 44850 [details]
Patch

Rejecting patch 44850 from commit-queue.

Unexpected failure when landing patch!  Please file a bug against bugzilla-tool.
Failed to run "['/Projects/WebKit/WebKitTools/Scripts/bugzilla-tool', '--status-host=localhost:8080', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', '--quiet', '44850']" exit_code: 1
ERROR: Builders ["Leopard Intel Release (Tests)", "Leopard Intel Debug (Tests)"] are red, please do not commit.
See http://build.webkit.org.
Pass --ignore-builders to bypass this check.
Comment 9 Eric Seidel (no email) 2009-12-15 01:22:29 PST
Comment on attachment 44850 [details]
Patch

Adding back to the CQ for testing.
Comment 10 Eric Seidel (no email) 2009-12-15 01:29:56 PST
Comment on attachment 44850 [details]
Patch

Rejecting patch 44850 from commit-queue.

Unexpected failure when landing patch!  Please file a bug against bugzilla-tool.
Failed to run "['/Projects/WebKit/WebKitTools/Scripts/bugzilla-tool', '--status-host=localhost:8080', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', '--quiet', '44850']" exit_code: 1
Last 500 characters of output:
nce.run_and_handle_errors(tool, options, state)
  File "/Projects/WebKit/WebKitTools/Scripts/modules/stepsequence.py", line 75, in run_and_handle_errors
    command.handle_script_error(tool, state, e)
  File "/Projects/WebKit/WebKitTools/Scripts/modules/commands/queues.py", line 150, in handle_script_error
    tool.status_bot.update_status(cls.name, "Patch %s failed: %s" % (patch['id'], script_error.message), patch, StringIO(script_error.output))
NameError: global name 'StringIO' is not defined
Comment 11 Eric Seidel (no email) 2009-12-15 01:30:41 PST
Comment on attachment 44850 [details]
Patch

Adding back to the CQ for testing.
Comment 12 Eric Seidel (no email) 2009-12-15 01:33:40 PST
Comment on attachment 44850 [details]
Patch

Rejecting patch 44850 from commit-queue.

Failed to run "['WebKitTools/Scripts/build-webkit']" exit_code: 1
Last 500 characters of output:
ild/JavaScriptCore.build/Debug/JavaScriptCore.build/DerivedSources/i386 -I/build/JavaScriptCore.build/Debug/JavaScriptCore.build/DerivedSources -include /var/folders/zz/zzzivhrRnAmviuee++2Pvk+-4yw/-Caches-/com.apple.Xcode.72687/SharedPrecompiledHeaders/JavaScriptCorePrefix-bqeihplanvwsgbdubtwylvhovamq/JavaScriptCorePrefix.h -c /Projects/WebKitSVN/JavaScriptCore/runtime/Collector.cpp -o /build/JavaScriptCore.build/Debug/JavaScriptCore.build/Objects-normal/i386/Collector.o
** BUILD INTERRUPTED **
Comment 13 Eric Seidel (no email) 2009-12-15 02:07:36 PST
Committed r52145: <http://trac.webkit.org/changeset/52145>