Bug 64180

Summary: REGRESSION (r90564): test-webkitpy failing on multiple bots due to commit-log-editor errors
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Tools / TestsAssignee: Adam Roben (:aroben) <aroben>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, eric, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Adam Roben (:aroben)
Reported 2011-07-08 11:05:09 PDT
REGRESSION (r90564): test-webkitpy failing on multiple bots due to commit-log-editor errors
Attachments
Patch (2.12 KB, patch)
2011-07-08 11:07 PDT, Adam Roben (:aroben)
no flags
Adam Roben (:aroben)
Comment 1 2011-07-08 11:07:15 PDT
Adam Barth
Comment 2 2011-07-08 11:09:11 PDT
Comment on attachment 100135 [details] Patch Ok. Do I need to make sure this env variable is set on the commit bots?
Adam Roben (:aroben)
Comment 3 2011-07-08 11:20:51 PDT
(In reply to comment #2) > (From update of attachment 100135 [details]) > Ok. Do I need to make sure this env variable is set on the commit bots? No. You already ensured the git variable user.name is set, which is used as a fallback.
Eric Seidel (no email)
Comment 4 2011-07-08 11:34:59 PDT
Comment on attachment 100135 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=100135&action=review > Tools/Scripts/webkitpy/common/checkout/checkout_unittest.py:129 > + kwargs['env'] = env You can just pass it as env=env and it will automagically end up on the other side as part of kwargs. **kwargs is expanding the "kwargs" dictionary (not a special name) to be named args.
Eric Seidel (no email)
Comment 5 2011-07-08 11:46:31 PDT
** can be used to either stuff all the named args into a dictionary (of any name of your choosing, although conventionally kwargs) or to expand a dictionary into named args when calling a function. so defining a function as: def foo(*blah, **moreblah) will take all the non-named args, and put them into a tuple() blah, and all the named args and put them into a dict() moreblah Calling *listname will expand an arglist into a list of args, but only during a function call it seems. I thought * was a generic "expand tuple" operator, but I've since learned this morning it's just part of the language grammar. :) http://docs.python.org/reference/expressions.html#calls
WebKit Review Bot
Comment 6 2011-07-08 11:48:03 PDT
Comment on attachment 100135 [details] Patch Clearing flags on attachment: 100135 Committed r90648: <http://trac.webkit.org/changeset/90648>
WebKit Review Bot
Comment 7 2011-07-08 11:48:09 PDT
All reviewed patches have been landed. Closing bug.
Adam Roben (:aroben)
Comment 8 2011-07-08 11:51:39 PDT
Comment on attachment 100135 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=100135&action=review >> Tools/Scripts/webkitpy/common/checkout/checkout_unittest.py:129 >> + kwargs['env'] = env > > You can just pass it as env=env and it will automagically end up on the other side as part of kwargs. **kwargs is expanding the "kwargs" dictionary (not a special name) to be named args. If kwargs happens to already contain a value for 'env' then passing env=env will cause a runtime error.
Note You need to log in before you can comment on or make changes to this bug.