Bug 88598 - [Chromium-Android] Build DumpRenderTree with Android SDK
Summary: [Chromium-Android] Build DumpRenderTree with Android SDK
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Xianzhu Wang
URL:
Keywords:
: 88607 88610 (view as bug list)
Depends on:
Blocks: 66687 88542
  Show dependency treegraph
 
Reported: 2012-06-07 17:39 PDT by Xianzhu Wang
Modified: 2012-06-10 20:12 PDT (History)
8 users (show)

See Also:


Attachments
patch (6.19 KB, patch)
2012-06-07 21:04 PDT, Xianzhu Wang
abarth: review+
Details | Formatted Diff | Diff
patch for landing (5.67 KB, patch)
2012-06-08 12:11 PDT, Xianzhu Wang
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
patch for landing (with correct reviewer line) (5.66 KB, patch)
2012-06-08 13:12 PDT, Xianzhu Wang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xianzhu Wang 2012-06-07 17:39:52 PDT
This is follow-up of bug 86862, to change WebKit side accordingly after some changes at chromium side.
Comment 1 Xianzhu Wang 2012-06-07 21:04:54 PDT
Created attachment 146468 [details]
patch
Comment 2 Wei James (wistoch) 2012-06-07 22:10:15 PDT
*** Bug 88610 has been marked as a duplicate of this bug. ***
Comment 3 Wei James (wistoch) 2012-06-07 22:11:22 PDT
*** Bug 88607 has been marked as a duplicate of this bug. ***
Comment 4 Adam Barth 2012-06-08 11:03:23 PDT
Comment on attachment 146468 [details]
patch

I'm happy to rubber-stamp this change.  You might want to check with Peter before landing.
Comment 5 Xianzhu Wang 2012-06-08 11:21:52 PDT
Comment on attachment 146468 [details]
patch

Peter (sorry I should have cc'ed you), does the patch look good to you? If yes, please just set cq+. Thanks.

We will still have many layout test failures with this patch.

Hao, could you create a meta bug for remaining Android DRT upstreaming tasks? Two things I just thought of are: test expectations, font settings.
Comment 6 Peter Beverloo 2012-06-08 11:41:55 PDT
Comment on attachment 146468 [details]
patch

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

LGTM. I'm building the patch at the moment to verify it won't break the build. After it succeeds I'll put it on the commit queue. Cheers!

> Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:433
> +                    'action_name': 'apk_<(test_suite_name)',

Since this gyp-code is copied and not marked as FIXME, can we get rid of the test_suite_name variable and just fill in "DumpRenderTree"? At one point we'll move all of these support scripts (including generate_native_test.py, for example) to their own repository.

> Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:454
> +                        '--ant-compile',

I think this may need a rebase, given that the patch from bug 88626 is already on the commit queue.

> Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py:276
> +        return self._build_path(configuration, 'DumpRenderTree_apk/DumpRenderTree-debug.apk')

Why do we use "-debug" here, again? Seems fine, but I forgot the reason :).
Comment 7 Xianzhu Wang 2012-06-08 11:54:16 PDT
Comment on attachment 146468 [details]
patch

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

Will upload the new patch soon after I verify it locally.

>> Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:433
>> +                    'action_name': 'apk_<(test_suite_name)',
> 
> Since this gyp-code is copied and not marked as FIXME, can we get rid of the test_suite_name variable and just fill in "DumpRenderTree"? At one point we'll move all of these support scripts (including generate_native_test.py, for example) to their own repository.

Agreed. Done.

>> Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:454
>> +                        '--ant-compile',
> 
> I think this may need a rebase, given that the patch from bug 88626 is already on the commit queue.

Done.

>> Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py:276
>> +        return self._build_path(configuration, 'DumpRenderTree_apk/DumpRenderTree-debug.apk')
> 
> Why do we use "-debug" here, again? Seems fine, but I forgot the reason :).

This is the naming convention of Android SDK's ant rule. In our ant build script (called from generate_native_test.py) the default type is 'debug'.
Comment 8 Xianzhu Wang 2012-06-08 12:11:01 PDT
Created attachment 146624 [details]
patch for landing

Peter has verified it and admitted cq in offline.
Comment 9 WebKit Review Bot 2012-06-08 12:51:00 PDT
Comment on attachment 146624 [details]
patch for landing

Rejecting attachment 146624 [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/12924400
Comment 10 Xianzhu Wang 2012-06-08 13:12:39 PDT
Created attachment 146633 [details]
patch for landing (with correct reviewer line)
Comment 11 WebKit Review Bot 2012-06-08 19:45:42 PDT
Comment on attachment 146633 [details]
patch for landing (with correct reviewer line)

Clearing flags on attachment: 146633

Committed r119888: <http://trac.webkit.org/changeset/119888>
Comment 12 WebKit Review Bot 2012-06-08 19:45:47 PDT
All reviewed patches have been landed.  Closing bug.
Comment 13 Hao Zheng 2012-06-10 20:12:36 PDT
(In reply to comment #5)
> (From update of attachment 146468 [details])
> Peter (sorry I should have cc'ed you), does the patch look good to you? If yes, please just set cq+. Thanks.
> 
> We will still have many layout test failures with this patch.
> 
> Hao, could you create a meta bug for remaining Android DRT upstreaming tasks? Two things I just thought of are: test expectations, font settings.

Bug for font settings: https://bugs.webkit.org/show_bug.cgi?id=87006
We can file expectation bugs after we run layout test on some bot.