Bug 27893 - run-webkit-tests Skipped Only mode includes tests that are skipped by other flags.
Summary: run-webkit-tests Skipped Only mode includes tests that are skipped by other f...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-31 13:09 PDT by Mike Fenton
Modified: 2009-08-04 12:06 PDT (History)
2 users (show)

See Also:


Attachments
Patch to improve the behavior of --skipped=only and add --skipped=only-all mode to run-webkit-tests (4.12 KB, patch)
2009-07-31 13:32 PDT, Mike Fenton
no flags Details | Formatted Diff | Diff
Updated patch without skipped=only-all mode (2.05 KB, patch)
2009-08-04 07:34 PDT, Mike Fenton
manyoso: review-
Details | Formatted Diff | Diff
Updated changeLog and rename of function. (2.15 KB, patch)
2009-08-04 08:27 PDT, Mike Fenton
abarth: commit-queue+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Fenton 2009-07-31 13:09:52 PDT
Current when run-webkit-tests is run with the --skipped=only option all tests currently in the Skipped file for the platform are run without consideration for other flags like -no-http or platform defaults for the tests configurations.

The current mode of --skipped=only should be transitioned to a new mode (--skipped=only-all) which maintains the current behavior.

--skipped=only should be updated to correctly use the existing flags in the script to only run skipped tests that the functionality exists to potentially pass the test.

This update will match the behavior of --skipped=ignore which does obey flags used by run-webkit-tests.
Comment 1 Mike Fenton 2009-07-31 13:32:02 PDT
Created attachment 33899 [details]
Patch to improve the behavior of --skipped=only and add --skipped=only-all mode to run-webkit-tests
Comment 2 Eric Seidel (no email) 2009-07-31 14:34:11 PDT
Comment on attachment 33899 [details]
Patch to improve the behavior of --skipped=only and add --skipped=only-all mode to run-webkit-tests

I'm not sure only-all is useful, maybe it is.
Comment 3 Mike Fenton 2009-08-04 05:25:35 PDT
I tend to agree, however, I didn't want to remove the old functionality entirely.
Comment 4 Adam Treat 2009-08-04 05:41:39 PDT
I happen to agree with Eric.  This is a bug fix pure and simple.  No need for --only-all which is confusing to me.
Comment 5 Mike Fenton 2009-08-04 07:34:14 PDT
Created attachment 34059 [details]
Updated patch without skipped=only-all mode

I've updated the patch to strictly fix the --skipped=only mode.  No only-all mode is included in this patch.
Comment 6 Adam Treat 2009-08-04 07:58:39 PDT
Comment on attachment 34059 [details]
Updated patch without skipped=only-all mode

> +2009-07-31  Mike Fenton  <mike.fenton@torchmobile.com>
> +
> +        Reviewed by NOBODY (OOPS!).
> +
> +        Change --skipped=only mode to use $ignoreDirectories to only
> +        run tests that configured by the script, or by the default
> +        values used in the script.

I think the ChangeLog could do a better job of explaining what is happening here.  Basically, you want --skipped=only to honor the --no-http flag.  That is not currently happening.  If I understand things correctly, your patch explicitly fixes this by making --skipped=only honor the ignoreDirectories, one of which is 'http' if --no-http is passed.

Spell this out as the explicit goal in the ChangeLog and how it was accomplished.

Also, it is not clear to me that this patch accomplishes what the bug report says it does: to make --skipped=only honor *all* other flags.  It seems that this bugfix was rather narrowly tailored to --no-http.  Which is fine!  But it is good to be clear about this.

> +sub ignoreFileByDirectory {
> +    my($filePath) = @_;
> +    foreach my $ignoredDir (keys %ignoredDirectories) {
> +        if ($filePath =~ m/^$ignoredDir/) {
> +            return 1;
> +        }
> +    }

Perhaps 'fileShouldBeIgnored' instead to be more descriptive?

r- for ChangeLog mostly.
Comment 7 Mike Fenton 2009-08-04 08:27:34 PDT
Created attachment 34064 [details]
Updated changeLog and rename of function.

This patch makes the suggested changes to the previous patch.

1) Rename the function.

2) Update the changelog to more clearly identify the reason for the change.
Comment 8 Adam Barth 2009-08-04 12:06:14 PDT
Comment on attachment 34064 [details]
Updated changeLog and rename of function.

Clearing review flag on attachment: 34064

Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebKitTools/ChangeLog
	M	WebKitTools/Scripts/run-webkit-tests
Committed r46771
	M	WebKitTools/ChangeLog
	M	WebKitTools/Scripts/run-webkit-tests
r46771 = 042145e38e9fb864caea4ce6b7799aa60e67b093 (trunk)
No changes between current HEAD and refs/remotes/trunk
Resetting to the latest refs/remotes/trunk
http://trac.webkit.org/changeset/46771
Comment 9 Adam Barth 2009-08-04 12:06:18 PDT
All reviewed patches have been landed.  Closing bug.