Bug 242119 - [ iOS ] 2X fast/text/accessibility-bold-system-font (Layout-tests) are constant failures
Summary: [ iOS ] 2X fast/text/accessibility-bold-system-font (Layout-tests) are consta...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
: 242139 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-06-29 10:05 PDT by Hercules Hjalmarsson
Modified: 2022-07-11 18:54 PDT (History)
5 users (show)

See Also:


Attachments
Diff images (12.07 KB, application/zip)
2022-06-29 10:09 PDT, Hercules Hjalmarsson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hercules Hjalmarsson 2022-06-29 10:05:38 PDT
fast/text/accessibility-bold-system-font/accessibility-bold-system-font-2.html

Is a constant image failure on macOS and iOS.

HISTORY:
https://results.webkit.org/?suite=layout-tests&test=fast%2Ftext%2Faccessibility-bold-system-font%2Faccessibility-bold-system-font-2.html

DIFF URL: 
https://build.webkit.org/results/Apple-Monterey-Release-WK2-Tests/251948%40main%20(4746)/fast/text/accessibility-bold-system-font/accessibility-bold-system-font-2-diffs.html

Diff images attached to this bug.
Comment 1 Hercules Hjalmarsson 2022-06-29 10:09:56 PDT
Created attachment 460545 [details]
Diff images
Comment 2 Radar WebKit Bug Importer 2022-06-29 10:11:03 PDT
<rdar://problem/96150140>
Comment 3 Hercules Hjalmarsson 2022-06-29 11:45:28 PDT
I was able to reproduce the image failure at both Mac and iOS ToT running the test as follows:

run-webkit-tests fast/text/accessibility-bold-system-font/accessibility-bold-system-font-2.html
Comment 4 Hercules Hjalmarsson 2022-06-29 12:03:14 PDT
The test was originally introduced at commit 189770@main, the history shows that it has been disabled for some time and then was re-enabled at commit 251883@main and has been failing ever since being re-enabled.
Comment 5 Ryan Haddad 2022-06-29 12:07:59 PDT
(In reply to Hercules Hjalmarsson from comment #4)
> The test was originally introduced at commit 189770@main, the history shows
> that it has been disabled for some time and then was re-enabled at commit
> 251883@main and has been failing ever since being re-enabled.
Based on https://github.com/WebKit/WebKit/commit/3e3f9ab0f79b58eb597037a6de8ebf192ddc1728#diff-0b438e462819a7b0d06250189152c7bcfb07b7c39acd73938bdfccc7b25b8058R5323, I think the intention was for this test to continue failing on macOS. This is surfacing because this is an image failure instead of a text failure, so the [ Pass Fail ] expectation isn't suppressing it.

Myles, since these tests aren't expected to pass on macOS, is there any reason we shouldn't just skip them?
Comment 6 Hercules Hjalmarsson 2022-06-29 13:00:11 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1911
Comment 7 Robert Jenner 2022-06-29 13:15:31 PDT
(In reply to Hercules Hjalmarsson from comment #6)
> Pull request: https://github.com/WebKit/WebKit/pull/1911

In this Pull Request, we have opted to [ Skip ] these tests for all platforms except iOS. This was because the previously set expectations mentioned that Accessibility Bold only exists on iOS. So in short, we've skipped them for all platforms. Then for iOS we re-enabled them by adding expectations.

This one is passing for iOS, so we set the expectation to [ Pass ] for this one:
fast/text/accessibility-bold-system-font/accessibility-bold-system-font-3.html


The initial test mentioned in this bug is a constant Image Failure for iOS, so we have marked the following test as [ Pass ImageOnlyFailure ] for iOS:
fast/text/accessibility-bold-system-font/accessibility-bold-system-font-2.html


The final test is a text failure, and has been marked as [ Pass Failure ] for iOS:
fast/text/accessibility-bold-system-font/accessibility-bold-system-font.html 

This is the DIFF for that text failure:
https://build.webkit.org/results/Apple-iOS-15-Simulator-Debug-WK2-Tests/251945@main%20(3029)/fast/text/accessibility-bold-system-font/accessibility-bold-system-font-pretty-diff.html

-This test makes sure that text using the accessibility bold functionality has the correct weight.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS window.getComputedStyle(target).getPropertyValue('font-weight') is "400"
-PASS successfullyParsed is true
-
-TEST COMPLETE
-Hello
+CONSOLE MESSAGE: ReferenceError: Can't find variable: description
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x98
+  RenderBlock {HTML} at (0,0) size 800x98
+    RenderBody {BODY} at (8,8) size 784x82
+      RenderBlock {DIV} at (0,0) size 784x82
+        RenderText {#text} at (0,0) size 156x82
+          text run at (0,0) width 156: "Hello"
Comment 8 EWS 2022-06-29 14:28:21 PDT
Test gardening commit 251963@main (bd97a03885f9): <https://commits.webkit.org/251963@main>

Reviewed commits have been landed. Closing PR #1911 and removing active labels.
Comment 9 Myles C. Maxfield 2022-06-29 23:39:41 PDT
*** Bug 242139 has been marked as a duplicate of this bug. ***
Comment 10 Myles C. Maxfield 2022-06-30 00:02:26 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1938
Comment 11 Myles C. Maxfield 2022-06-30 00:09:55 PDT
(In reply to Ryan Haddad from comment #5)
> Myles, since these tests aren't expected to pass on macOS, is there any
> reason we shouldn't just skip them?

In general, it's better to mark flakey rather than skip, because flakey at least makes sure the tests don't crash.
Comment 12 EWS 2022-06-30 00:23:22 PDT
Test gardening commit 251984@main (fa781327fe86): <https://commits.webkit.org/251984@main>

Reviewed commits have been landed. Closing PR #1938 and removing active labels.