Bug 90400 - Make the skia_test_expectations.txt file optional.
Summary: Make the skia_test_expectations.txt file optional.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ojan Vafai
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-02 13:51 PDT by Ojan Vafai
Modified: 2012-07-03 10:22 PDT (History)
7 users (show)

See Also:


Attachments
Patch (3.49 KB, patch)
2012-07-02 13:53 PDT, Ojan Vafai
dpranke: review+
dpranke: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ojan Vafai 2012-07-02 13:51:57 PDT
Make the skia_test_expectations.txt file optional.
Comment 1 Ojan Vafai 2012-07-02 13:53:42 PDT
Created attachment 150471 [details]
Patch
Comment 2 Emil A Eklund 2012-07-02 14:27:03 PDT
This is great, thank you!
Comment 3 Dirk Pranke 2012-07-02 14:36:04 PDT
Comment on attachment 150471 [details]
Patch

So, I'm conflicted about this change ... r-/cq-'ing it for a chance at discussion.

The skia test_expectations file was never optional. The chromium downstream file is optional. However, the skia file is used by both the upstream and downstream bots, and corresponds to the version of skia that both bots build against.

In other words, this file always exists and is used on the bots, and thus, it would be an error if the file was missing.

Therefore, if you are trying to figure out what the expectations for a test are, and you don't have this file in your checkout, there's a chance you will form the wrong expectations.

This means that if you run rebaseline-expectations, you better have this file in your checkout. If rebaseline-test is also trying to update the expectations, it needs the skia file as well, and I think that this implies that you need this even if you're running w/ garden-o-matic.

On the other hand, it's obviously annoying to have to do 'update-webkit --chromium' just for this one file, especially when this file is supposed to be empty most of the time.

So, I'm not sure what the right thing to do here is.
Comment 4 Ojan Vafai 2012-07-02 15:18:50 PDT
I think this won't generally be a problem in practice. update-expectations during rebaseline-test might not do the 100% optimal thing in a case where a test is listed in both files, but it won't break anything either, i.e. it'll leave the line in the skia test expectations file when it could have removed it.

I think this is preferable to requiring anyone rebaselining chromium results to need to get the skia test expectations file.

More importantly, most people working in WebKit won't even notice it modifying this file in the chromium repo.
Comment 5 Dirk Pranke 2012-07-02 15:24:26 PDT
Partially I'm concerned because your change doesn't just affect rebaseline-test, it affects *everything* that tries to use a chromium port, and I'm not sure what all the ramifications of that might be.
Comment 6 Ojan Vafai 2012-07-02 15:27:14 PDT
(In reply to comment #5)
> Partially I'm concerned because your change doesn't just affect rebaseline-test, it affects *everything* that tries to use a chromium port, and I'm not sure what all the ramifications of that might be.

Your concern is reasonable. As I see it, this is just some of the cost of having this funky skia test expectations file. I'm not too worried because in order to get to a place where you're actually running the tests locally, you'll necessarily have to checkout this file.
Comment 7 Ojan Vafai 2012-07-02 15:27:49 PDT
Would you be happier if we logged a warning?
Comment 8 Dirk Pranke 2012-07-02 15:36:51 PDT
Comment on attachment 150471 [details]
Patch

(In reply to comment #7)
> Would you be happier if we logged a warning?

Probably :)

Given that I'm not sure what'll break, and you think we should be okay in practice, I'm okay with landing this and we can see what happens. I just wanted people to understand why this was the way it was.
Comment 9 Ojan Vafai 2012-07-03 10:22:02 PDT
Committed r121784: <http://trac.webkit.org/changeset/121784>