WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
97426
Unexpected reftest passes are only reported when pixel testing is enabled in results.html as well
https://bugs.webkit.org/show_bug.cgi?id=97426
Summary
Unexpected reftest passes are only reported when pixel testing is enabled in ...
Zan Dobersek
Reported
2012-09-23 22:46:05 PDT
This bug is an extension of the
bug #97242
. In results.html the unexpectedly-passing reftests are currently only reported when pixel testing was enabled during the test run.
Attachments
Patch
(7.25 KB, patch)
2012-09-23 22:56 PDT
,
Zan Dobersek
no flags
Details
Formatted Diff
Diff
Patch
(20.01 KB, patch)
2012-09-24 10:45 PDT
,
Zan Dobersek
no flags
Details
Formatted Diff
Diff
Patch
(21.47 KB, patch)
2012-09-24 12:00 PDT
,
Zan Dobersek
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Zan Dobersek
Comment 1
2012-09-23 22:56:42 PDT
Created
attachment 165313
[details]
Patch
Ojan Vafai
Comment 2
2012-09-24 08:40:54 PDT
Comment on
attachment 165313
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=165313&action=review
The python change here makes it so that *every* test is treated as a reftest. Not sure off the top of my head what the correct code is, but we should only mark reftests as reftests. I'd prefer if we also keep is_reftest only for matching reftests. It just complicates the if-statement on the JS side to need to check both is_reftest and is_mismatch_reftest. Also, can you please write a test for the results.html change?
> LayoutTests/fast/harness/results.html:515 > + if (expected != 'IMAGE' || globalState().results.pixel_tests_enabled || testObject.is_reftest) {
This should be (expected != 'IMAGE' || (globalState().results.pixel_tests_enabled || testObject.is_reftest)), no?
Ojan Vafai
Comment 3
2012-09-24 08:43:13 PDT
(In reply to
comment #2
)
> (From update of
attachment 165313
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=165313&action=review
> > The python change here makes it so that *every* test is treated as a reftest. Not sure off the top of my head what the correct code is, but we should only mark reftests as reftests.
nm this. I misread the code.
Zan Dobersek
Comment 4
2012-09-24 09:47:37 PDT
(In reply to
comment #2
)
> > I'd prefer if we also keep is_reftest only for matching reftests. It just complicates the if-statement on the JS side to need to check both is_reftest and is_mismatch_reftest. > > Also, can you please write a test for the results.html change?
Sure.
> > LayoutTests/fast/harness/results.html:515 > > + if (expected != 'IMAGE' || globalState().results.pixel_tests_enabled || testObject.is_reftest) { > > This should be (expected != 'IMAGE' || (globalState().results.pixel_tests_enabled || testObject.is_reftest)), no?
Yeah, that works as well.
Ojan Vafai
Comment 5
2012-09-24 10:06:40 PDT
(In reply to
comment #4
)
> (In reply to
comment #2
) > > > LayoutTests/fast/harness/results.html:515 > > > + if (expected != 'IMAGE' || globalState().results.pixel_tests_enabled || testObject.is_reftest) { > > > > This should be (expected != 'IMAGE' || (globalState().results.pixel_tests_enabled || testObject.is_reftest)), no? > > Yeah, that works as well.
Sigh. I clearly was not awake when I reviewed this patch this morning. Ignore this as well.
Ojan Vafai
Comment 6
2012-09-24 10:08:54 PDT
Now that I'm actually awake...this patch looks good as is. Just needs a test.
Zan Dobersek
Comment 7
2012-09-24 10:34:03 PDT
(In reply to
comment #6
)
> Now that I'm actually awake...this patch looks good as is. Just needs a test.
Refactored it a bit in that time, I'll upload it anyway.
Zan Dobersek
Comment 8
2012-09-24 10:45:26 PDT
Created
attachment 165408
[details]
Patch
Ojan Vafai
Comment 9
2012-09-24 10:58:32 PDT
Comment on
attachment 165408
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=165408&action=review
This is a nice cleanup. Would be great if you addressed my one comment, but I understand if you'd rather just add a FIXME and commit this.
> Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:174 > + if '==' in result.reftest_type: > + test_dict['is_reftest'] = True > + if '!=' in result.reftest_type: > + test_dict['is_mismatch_reftest'] = True
How about just putting reftest_type in test_dict directly and changing results.html to look at that? You can make this a FIXME if you don't want to do it now.
Zan Dobersek
Comment 10
2012-09-24 12:00:17 PDT
Created
attachment 165421
[details]
Patch Uploading a modified patch so you can confirm the changes look somewhat similar to what you had in mind.
Ojan Vafai
Comment 11
2012-09-24 12:02:13 PDT
Comment on
attachment 165421
[details]
Patch Looks great. Thanks. This patch exposes the fact that we handle multiple reference files completely incorrectly in results.html. We can deal with that problem when we actually have tests with multiple references in the tree.
Zan Dobersek
Comment 12
2012-09-24 23:17:31 PDT
Comment on
attachment 165421
[details]
Patch Clearing flags on attachment: 165421 Committed
r129459
: <
http://trac.webkit.org/changeset/129459
>
Zan Dobersek
Comment 13
2012-09-24 23:17:36 PDT
All reviewed patches have been landed. Closing bug.
Chris Dumez
Comment 14
2012-09-25 00:16:04 PDT
One python test started failing after this landed: [245/1584] webkitpy.layout_tests.run_webkit_tests_integrationtest.EndToEndTest.test_reftest_with_two_notrefs failed: Traceback (most recent call last): File "/home/buildslave-1/webkit-buildslave/efl-linux-64-debug/build/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py", line 967, in test_reftest_with_two_notrefs {"expected": "PASS", "actual": "IMAGE", "image_diff_percent": 1, 'is_reftest': True}) AssertionError: {u'expected': u'PASS', u'actual': u'IMAGE', u'reftest_type': [u'=='], u'image_di [truncated]... != {'expected': 'PASS', 'is_reftest': True, 'actual': 'IMAGE', 'image_diff_percent' [truncated]... - {u'actual': u'IMAGE', ? - - + {'actual': 'IMAGE', - u'expected': u'PASS', ? - - + 'expected': 'PASS', - u'image_diff_percent': 1, ? - + 'image_diff_percent': 1, - u'reftest_type': [u'==']} + 'is_reftest': True} Ran 1584 tests in 2.911s FAILED (failures=1, errors=0)
Zan Dobersek
Comment 15
2012-09-25 00:54:44 PDT
(In reply to
comment #14
)
> One python test started failing after this landed:
Thanks for reporting, the test cases needed updating which I forgot to do when uploading the latest iteration of the patch. I fixed it in
http://trac.webkit.org/changeset/129465
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug