WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
237812
[iOS] editing/spelling/editing-word-with-marker-1.html causes the subsequent test to time out
https://bugs.webkit.org/show_bug.cgi?id=237812
Summary
[iOS] editing/spelling/editing-word-with-marker-1.html causes the subsequent ...
Wenson Hsieh
Reported
2022-03-12 15:29:18 PST
editing/spelling/spellcheck-api-crash.html seems to be intermittently failing in EWS -- e.g.
https://ews-build.s3-us-west-2.amazonaws.com/iOS-15-Simulator-WK2-Tests-EWS/454527-10366/results.html
This is also easily reproducible just by running editing/spelling/editing-word-with-marker-1.html for multiple iterations.
Attachments
Patch
(5.79 KB, patch)
2022-03-12 15:46 PST
,
Wenson Hsieh
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2022-03-12 15:46:45 PST
Created
attachment 454543
[details]
Patch
Wenson Hsieh
Comment 2
2022-03-12 19:54:17 PST
(In reply to Wenson Hsieh from
comment #1
)
> Created
attachment 454543
[details]
> Patch
Waiting for a single runloop after calling `resetText` apparently causes Mac WK1 to fail...
Alexey Proskuryakov
Comment 3
2022-03-12 22:00:07 PST
This only modified the test, is there any way to fix or detect the issue in the harness?
Wenson Hsieh
Comment 4
2022-03-12 22:02:21 PST
(In reply to Alexey Proskuryakov from
comment #3
)
> This only modified the test, is there any way to fix or detect the issue in > the harness?
It's surely detectable with a `UIHelper.isWebKit2()` check, but I was hoping to avoid a workaround of that kind. Though, maybe it's worth going that route if it means we can stabilize EWS in the short term?
Alexey Proskuryakov
Comment 5
2022-03-14 09:20:07 PDT
What I mean is that it's difficult to isolate problems of the kind where a test makes subsequent tests fail, so it's important to prevent such situations. Improving one test that does something wrong does nothing to prevent other tests from having the same problem in the future. Either clearing the state between tests, or detecting the issue and failing eagerly with a RELEASE_ASSERT would be a permanent solution for the problem. I do not have a suggestion on how to fix WK2 without breaking WK1, as I don't understand what causes that.
Wenson Hsieh
Comment 6
2022-03-14 10:42:09 PDT
(In reply to Alexey Proskuryakov from
comment #5
)
> What I mean is that it's difficult to isolate problems of the kind where a > test makes subsequent tests fail, so it's important to prevent such > situations. Improving one test that does something wrong does nothing to > prevent other tests from having the same problem in the future. Either > clearing the state between tests, or detecting the issue and failing eagerly > with a RELEASE_ASSERT would be a permanent solution for the problem. >
AFAIK, the intent of that release assertion is to catch instances like this where tests end before UI-script callbacks are invoked, so I think we would expect crashes in the case where there are dangling callbacks. It is, however, quite unfortunate that it surfaces as a failure in the _subsequent_ layout test, which makes the true failing test a lot more difficult to pin down.
> I do not have a suggestion on how to fix WK2 without breaking WK1, as I > don't understand what causes that.
Alexey Proskuryakov
Comment 7
2022-03-14 13:39:51 PDT
Exactly. I'm not talking about that RELEASE_ASSERT, but about adding a new one that would catch the issue in time.
Wenson Hsieh
Comment 8
2022-03-14 14:05:58 PDT
(In reply to Alexey Proskuryakov from
comment #7
)
> Exactly. I'm not talking about that RELEASE_ASSERT, but about adding a new > one that would catch the issue in time.
Yeah, this sounds like a good area to explore ("attribute the failure to the correct layout test"). I think that refactoring this code so that we can just log a warning and continue (without impacting the correctness of the subsequent test) would also be viable option. I think that both the above, as well as fixing this particular layout test are items we should investigate at some point; either would be sufficient to deal with the flaky test failure tracked in this Bugzilla bug.
Radar WebKit Bug Importer
Comment 9
2022-03-19 16:30:16 PDT
<
rdar://problem/90529903
>
Dawn Morningstar
Comment 10
2022-03-22 15:04:56 PDT
r291709
Marking expectations to help EWS queue.
Cameron McCormack (:heycam)
Comment 11
2022-04-04 14:23:03 PDT
Skipping editing-word-with-marker-1.html in
bug 238767
.
Simon Fraser (smfr)
Comment 12
2022-07-27 22:15:11 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/2803
EWS
Comment 13
2022-07-29 13:50:50 PDT
Committed
252963@main
(e456d22e637f): <
https://commits.webkit.org/252963@main
> Reviewed commits have been landed. Closing PR #2803 and removing active labels.
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