RESOLVED FIXED 106187
[Mac Lion] [WK2] tiled-drawing tests are being run when they shouldn’t be
https://bugs.webkit.org/show_bug.cgi?id=106187
Summary [Mac Lion] [WK2] tiled-drawing tests are being run when they shouldn’t be
Ryosuke Niwa
Reported 2013-01-05 16:02:04 PST
The following tests have been failing on Lion WebKit2 bots: platform/mac/tiled-drawing/fixed/absolute-inside-out-of-view-fixed.html platform/mac/tiled-drawing/fixed/four-bars-zoomed.html platform/mac/tiled-drawing/fixed/negative-scroll-offset.html platform/mac/tiled-drawing/sticky/sticky-horizontal.html platform/mac/tiled-drawing/sticky/sticky-vertical.html e.g. http://build.webkit.org/results/Apple%20Lion%20Release%20WK2%20(Tests)/r138908%20(6663)/results.html
Attachments
Patch (67.59 KB, patch)
2013-01-30 18:25 PST, Jessie Berlin
no flags
Radar WebKit Bug Importer
Comment 1 2013-01-05 16:02:30 PST
Ryosuke Niwa
Comment 2 2013-01-05 16:04:45 PST
Added test expectations in http://trac.webkit.org/changeset/138912.
Alexey Proskuryakov
Comment 3 2013-01-07 10:07:25 PST
When did this start? Can this be the same as bug 106205?
Simon Fraser (smfr)
Comment 4 2013-01-07 10:41:49 PST
tiled drawing tests should be skipped on Lion. This used to be impossible because of TestExpectations order, but that was fixed.
Simon Fraser (smfr)
Comment 5 2013-01-07 11:25:57 PST
Bug 105583 fixed the TestExpectations fallback order.
Simon Fraser (smfr)
Comment 6 2013-01-30 14:50:11 PST
These tests should not be skipped for WK2 on all platforms; that's just disabling testing.
Ryosuke Niwa
Comment 7 2013-01-30 14:52:50 PST
(In reply to comment #6) > These tests should not be skipped for WK2 on all platforms; that's just disabling testing. Oh oops :/ Somehow I forgot to add [ Lion ] there. Fixing that now and skipping them instead.
Jessie Berlin
Comment 8 2013-01-30 15:08:41 PST
Simon Fraser (smfr)
Comment 9 2013-01-30 15:10:50 PST
That didn't remove these lines from platform/mac-wk2/TestExpectations: webkit.org/b/106187 platform/mac/tiled-drawing/fixed/absolute-inside-out-of-view-fixed.html [ Failure ] webkit.org/b/106187 platform/mac/tiled-drawing/fixed/four-bars-zoomed.html [ Failure ] webkit.org/b/106187 platform/mac/tiled-drawing/fixed/negative-scroll-offset.html [ Failure ] webkit.org/b/106187 platform/mac/tiled-drawing/sticky/sticky-horizontal.html [ Failure ] webkit.org/b/106187 platform/mac/tiled-drawing/sticky/sticky-vertical.html [ Failure ]
Jessie Berlin
Comment 10 2013-01-30 15:22:02 PST
(In reply to comment #9) > That didn't remove these lines from platform/mac-wk2/TestExpectations: > > webkit.org/b/106187 platform/mac/tiled-drawing/fixed/absolute-inside-out-of-view-fixed.html [ Failure ] > webkit.org/b/106187 platform/mac/tiled-drawing/fixed/four-bars-zoomed.html [ Failure ] > webkit.org/b/106187 platform/mac/tiled-drawing/fixed/negative-scroll-offset.html [ Failure ] > webkit.org/b/106187 platform/mac/tiled-drawing/sticky/sticky-horizontal.html [ Failure ] > webkit.org/b/106187 platform/mac/tiled-drawing/sticky/sticky-vertical.html [ Failure ] Removed those lines in http://trac.webkit.org/changeset/141329
Jessie Berlin
Comment 11 2013-01-30 15:59:54 PST
Apparently platform/mac/tiled-drawing/ [ Pass ] is considered more specific than [ Lion ] platform/mac/tiled-drawing/ [ Skip ] ? http://build.webkit.org/builders/Apple%20Lion%20Release%20WK2%20%28Tests%29/builds/7471/steps/layout-test/logs/stdio 15:30:00.382 68230 LayoutTests/platform/mac-wk2/TestExpectations:413 More specific entry for platform/mac/tiled-drawing/ on line LayoutTests/platform/mac-wk2/TestExpectations:412 overrides line LayoutTests/platform/mac-wk2/TestExpectations:413. platform/mac/tiled-drawing/ 15:30:00.382 68230 LayoutTests/platform/mac-wk2/TestExpectations:413 More specific entry for platform/mac/tiled-drawing/ on line LayoutTests/platform/mac-wk2/TestExpectations:412 overrides line LayoutTests/platform/mac-wk2/TestExpectations:413. platform/mac/tiled-drawing/ So even that fix is not working here.
Jessie Berlin
Comment 12 2013-01-30 16:17:01 PST
Looking at test_expectations.py: # At this point we know we have seen a previous exact match on this # base path, so we need to check the two sets of modifiers. # FIXME: This code was originally designed to allow lines that matched # more modifiers to override lines that matched fewer modifiers. # However, we currently view these as errors. # # To use the "more modifiers wins" policy, change the errors for overrides # to be warnings and return False".
Dirk Pranke
Comment 13 2013-01-30 16:20:44 PST
Looking ... I think perhaps this is a buggy error message; at the very least, line 413 is more specific than line 412. I'm also not sure why you're getting that error so many times.
Jessie Berlin
Comment 14 2013-01-30 16:23:08 PST
(In reply to comment #13) > Looking ... I think perhaps this is a buggy error message; at the very least, line 413 is more specific than line 412. I'm also not sure why you're getting that error so many times. I think I have a fix, I am just testing it.
Dirk Pranke
Comment 15 2013-01-30 16:35:10 PST
Yup, buggy error message (the two line numbers are swapped). At any rate, you can't have both qualified and unqualified lines in a single file like that. As the comment you found indicates, having multiple lines that both match a single configuration is an error. We used to support more-specific overriding less-specific, but it seemed to be unwarranted complexity. In this case, I would replace the two lines: platform/mac/tiled-drawing/ [ Pass ] [ Lion ] platform/mac/tiled-drawing/ [ Skip ] With just: [ MountainLion ] platform/mac/tiled-drawing/ [ Pass ] There is no current way to "futureproof" things so that all WK1 and only Lion WK2 is skipped. You would need to add either a specific WK1 TestExpectations file or add support for WK1 and WK2 keywords. I would recommend doing the former, especially if you plan to continue deprecating WK1 on Apple Mac more and more.
Ryosuke Niwa
Comment 16 2013-01-30 17:57:13 PST
(In reply to comment #15) > Yup, buggy error message (the two line numbers are swapped). > > At any rate, you can't have both qualified and unqualified lines in a single file like that. As the comment you found indicates, having multiple lines that both match a single configuration is an error. We used to support more-specific overriding less-specific, but it seemed to be unwarranted complexity. > > In this case, I would replace the two lines: > > platform/mac/tiled-drawing/ [ Pass ] > [ Lion ] platform/mac/tiled-drawing/ [ Skip ] > > With just: > > [ MountainLion ] platform/mac/tiled-drawing/ [ Pass ] That wouldn't work because we need to make it pass on MacFuture as well.
Dirk Pranke
Comment 17 2013-01-30 18:05:53 PST
(In reply to comment #16) > > In this case, I would replace the two lines: > > > > platform/mac/tiled-drawing/ [ Pass ] > > [ Lion ] platform/mac/tiled-drawing/ [ Skip ] > > > > With just: > > > > [ MountainLion ] platform/mac/tiled-drawing/ [ Pass ] > > That wouldn't work because we need to make it pass on MacFuture as well. That is what I was getting at with my last paragraph. I don't think "Future" is a supported keyword, but we could probably add it. It's not really the right solution, though.
Jessie Berlin
Comment 18 2013-01-30 18:19:49 PST
For this particular bug, I think moving the tests from platform/mac to platform/mac-wk2 and adding an entry in the mac-lion TestExpectations file to skip them is more appropriate, since the feature is mac-wk2 only. I will post a patch that does that shortly.
Jessie Berlin
Comment 19 2013-01-30 18:25:42 PST
Dirk Pranke
Comment 20 2013-01-30 18:52:24 PST
bug 108146 filed to discuss adding -wk1 specific directories and expectations files.
Jessie Berlin
Comment 21 2013-01-31 09:00:55 PST
Note You need to log in before you can comment on or make changes to this bug.