Bug 91265

Summary: cr-ews bot doesn't set CWD correctly when zipping layout test results
Product: WebKit Reporter: Kenneth Russell <kbr>
Component: Tools / TestsAssignee: Eric Seidel (no email) <eric>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dbates, dpranke, eric, ojan, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing
none
Patch for landing none

Description Kenneth Russell 2012-07-13 11:04:10 PDT
The newly migrated cr-ews bot is setting the CWD incorrectly (one directory too high) when zipping up failed layout test results. Example bug showing this issue: https://bugs.webkit.org/show_bug.cgi?id=76225 .

The extracted zip archive creates 'tmp/layout_test_results' rather than just layout_test_results.
Comment 2 Eric Seidel (no email) 2012-07-13 11:12:33 PDT
I suspect that Workspace.create_zip just needs to be passed some sort of -D argument or something to have it cd into the directory before its starts zipping.
Comment 3 Eric Seidel (no email) 2012-07-13 11:15:10 PDT
(In reply to comment #2)
> I suspect that Workspace.create_zip just needs to be passed some sort of -D argument or something to have it cd into the directory before its starts zipping.

Hmm... Or maybe I'm thinking of tar.

We can probably just pass the zip directory as the cwd= in run_command:
http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/system/executive.py#L372
and then tell it to zip "."
Comment 4 Kenneth Russell 2012-07-13 11:18:33 PDT
(In reply to comment #1)
> Oh, we've had this forever.  I've just never known how to fix it.

Oops. I thought this was new behavior. Maybe I was confusing this with layout test results coming from Chromium's flakiness dashboard.
Comment 5 Eric Seidel (no email) 2012-08-21 16:41:54 PDT
Created attachment 159801 [details]
Patch
Comment 6 Kenneth Russell 2012-08-21 16:45:18 PDT
Comment on attachment 159801 [details]
Patch

LGTM! Thanks for the fix.
Comment 7 WebKit Review Bot 2012-08-21 18:41:36 PDT
Comment on attachment 159801 [details]
Patch

Rejecting attachment 159801 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1

ERROR: /mnt/git/webkit-commit-queue/Tools/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).

Full output: http://queues.webkit.org/results/13560090
Comment 8 Eric Seidel (no email) 2012-08-28 14:36:08 PDT
Created attachment 161062 [details]
Patch for landing
Comment 9 WebKit Review Bot 2012-08-28 14:41:45 PDT
Comment on attachment 161062 [details]
Patch for landing

Rejecting attachment 161062 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1

Kenneth Russel found in /mnt/git/webkit-commit-queue/Tools/ChangeLog does not appear to be a valid reviewer according to committers.py.
ERROR: /mnt/git/webkit-commit-queue/Tools/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).

Full output: http://queues.webkit.org/results/13654509
Comment 10 Eric Seidel (no email) 2012-08-28 14:45:38 PDT
I'll upload a new one with proper spelling shortly.
Comment 11 Eric Seidel (no email) 2012-08-28 17:04:58 PDT
Created attachment 161095 [details]
Patch for landing
Comment 12 WebKit Review Bot 2012-08-28 19:24:18 PDT
Comment on attachment 161095 [details]
Patch for landing

Rejecting attachment 161095 [details] from commit-queue.

eric@webkit.org does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.
Comment 13 WebKit Review Bot 2012-08-28 20:11:48 PDT
Comment on attachment 161095 [details]
Patch for landing

Clearing flags on attachment: 161095

Committed r126952: <http://trac.webkit.org/changeset/126952>
Comment 14 WebKit Review Bot 2012-08-28 20:11:52 PDT
All reviewed patches have been landed.  Closing bug.