Bug 138225 - bisect-builds should support WebKit clients other than Safari
Summary: bisect-builds should support WebKit clients other than Safari
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: Nobody
URL:
Keywords: InRadar
: 137577 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-30 13:12 PDT by Matthew Hanson
Modified: 2014-11-05 10:39 PST (History)
3 users (show)

See Also:


Attachments
Patch (5.99 KB, patch)
2014-10-30 14:07 PDT, Matthew Hanson
ddkilzer: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Hanson 2014-10-30 13:12:48 PDT
Currently bisect-builds only works with Safari. I propose that we add an argument that allows users to specify which application should be run against the nightly WebKit frameworks.
Comment 1 Matthew Hanson 2014-10-30 14:07:22 PDT
Created attachment 240693 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2014-10-30 14:08:02 PDT
<rdar://problem/18829294>
Comment 3 David Kilzer (:ddkilzer) 2014-10-30 16:48:21 PDT
Comment on attachment 240693 [details]
Patch

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

r=me with comments addressed.

> Tools/Scripts/bisect-builds:38
> -# $safariPath = "/path/to/Safari.app";
> +# $applicationPath = "/path/to/Application.app";

This should not change unless we're going to support $Settings::applicationPath and remove $Settings::safariPath.  Or keep $safariPath and add $applicationPath here.

  # $safariPath = "/path/to/Safari.app";
+ # $applicationPath = "/path/to/Application.app";

> Tools/Scripts/bisect-builds:73
>  my $safariPath = $Settings::safariPath;
> +my $applicationPath;

I would expect this to be change to the following if we were supported in the ~/.bisect-buildsrc file:

my $applicationPath = $Settings:: applicationPath;

> Tools/Scripts/bisect-builds:430
> +    # Check for both appliactions and application bundles.

Typo: appliactions

> Tools/Scripts/bisect-builds:436
> +    push @args, "--args", "-ApplePersistenceIgnoreState", "YES" if $isBundle;

Very nice.  Should we only do this if $safariPath is set instead of $isBundle?

    push @args, "--args", "-ApplePersistenceIgnoreState", "YES" if $safariPath;

Or does this work for multiple apps?
Comment 4 Matthew Hanson 2014-10-30 17:19:18 PDT
Comment on attachment 240693 [details]
Patch

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

Thanks for the review!

>> Tools/Scripts/bisect-builds:38
>> +# $applicationPath = "/path/to/Application.app";
> 
> This should not change unless we're going to support $Settings::applicationPath and remove $Settings::safariPath.  Or keep $safariPath and add $applicationPath here.
> 
>   # $safariPath = "/path/to/Safari.app";
> + # $applicationPath = "/path/to/Application.app";

I noticed this after sending out this patch. I'll keep it set to $safariPath here. This might be a good thing to change/add in a future patch.

>> Tools/Scripts/bisect-builds:73
>> +my $applicationPath;
> 
> I would expect this to be change to the following if we were supported in the ~/.bisect-buildsrc file:
> 
> my $applicationPath = $Settings:: applicationPath;

See above.

>> Tools/Scripts/bisect-builds:436
>> +    push @args, "--args", "-ApplePersistenceIgnoreState", "YES" if $isBundle;
> 
> Very nice.  Should we only do this if $safariPath is set instead of $isBundle?
> 
>     push @args, "--args", "-ApplePersistenceIgnoreState", "YES" if $safariPath;
> 
> Or does this work for multiple apps?

This works with multiple apps. I have tested it with Mail and iTunes so far, but I would expect it to work with others.
Comment 5 Matthew Hanson 2014-10-30 17:26:54 PDT
Committed r175401: <http://trac.webkit.org/changeset/175401>
Comment 6 Matthew Hanson 2014-11-05 10:39:21 PST
*** Bug 137577 has been marked as a duplicate of this bug. ***