Bug 196948

Summary: Regression (r244291): Broken API Test AutoLayoutRenderingProgressRelativeOrdering
Product: WebKit Reporter: Aakash Jain <aakash_jain>
Component: Tools / TestsAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, ap, cdumez, commit-queue, dbates, ews-watchlist, japhet, lforschler, ryanhaddad, thorton, webkit-bot-watchers-bugzilla, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=196926
https://bugs.webkit.org/show_bug.cgi?id=195111
Bug Depends on: 197089    
Bug Blocks:    
Attachments:
Description Flags
Patch
zalan: review+
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description Aakash Jain 2019-04-15 16:55:08 PDT
TestWebKitAPI.WebKit.AutoLayoutRenderingProgressRelativeOrdering seems to have start failing consistently recently.

e.g.:
https://ews-build.webkit.org/#/builders/3/builds/588
https://ews-build.webkit.org/#/builders/3/builds/589
https://ews-build.webkit.org/#/builders/3/builds/590
Comment 1 Ryan Haddad 2019-04-15 17:02:11 PDT
Failed
    TestWebKitAPI.WebKit.AutoLayoutRenderingProgressRelativeOrdering
        
        /Volumes/Data/worker/macOS-High-Sierra-Release-Build-EWS/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/AutoLayoutIntegration.mm:191
        Value of: didInvalidateIntrinsicContentSize
          Actual: false
        Expected: true
        
        
        /Volumes/Data/worker/macOS-High-Sierra-Release-Build-EWS/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/AutoLayoutIntegration.mm:202
        Value of: didFirstLayout
          Actual: true
        Expected: false
Comment 2 Aakash Jain 2019-04-15 17:03:14 PDT
Seems like this test is catching a real failure, which was introduced today in https://trac.webkit.org/changeset/244291

EWS indicated the failure for that patch in: https://ews-build.webkit.org/#/builders/3/builds/578
Comment 3 zalan 2019-04-15 17:14:03 PDT
r244291 potentially changed the order of incoming milestones. This test might be relying on the ordering (which it is not supposed to). Will look into this shortly.
Comment 4 Aakash Jain 2019-04-15 19:01:22 PDT
Created attachment 367487 [details]
Patch
Comment 5 Aakash Jain 2019-04-15 19:03:45 PDT
Committed r244322: <https://trac.webkit.org/changeset/244322>
Comment 6 Radar WebKit Bug Importer 2019-04-15 19:04:18 PDT
<rdar://problem/49927131>
Comment 7 Ryan Haddad 2019-04-15 20:19:08 PDT
1. If a change breaks a test, we should roll it out.
2. I’m going to reopen this bug because we need to track fixing the failure somewhere.
Comment 8 Aakash Jain 2019-04-16 12:02:06 PDT
(In reply to Ryan Haddad from comment #7)
> 2. I’m going to reopen this bug because we need to track fixing the failure somewhere.
Agree. I wasn't planning to close it. I used webkit-patch command which automatically closed it.
Comment 9 Ryan Haddad 2019-04-16 12:55:03 PDT
(In reply to Aakash Jain from comment #8)
> (In reply to Ryan Haddad from comment #7)
> > 2. I’m going to reopen this bug because we need to track fixing the failure somewhere.
> Agree. I wasn't planning to close it. I used webkit-patch command which
> automatically closed it.
No problem! Just didn't want it to slip through the cracks.
Comment 10 Ryan Haddad 2019-04-17 09:30:26 PDT
Alan, do we have a fix for this or should we just roll out the breaking change?
Comment 11 zalan 2019-04-17 09:31:12 PDT
(In reply to Ryan Haddad from comment #10)
> Alan, do we have a fix for this or should we just roll out the breaking
> change?
We do have a fix for this and will most likely be landing it today.
Comment 12 zalan 2019-04-17 15:17:18 PDT
Created attachment 367685 [details]
Patch
Comment 13 zalan 2019-04-17 15:17:31 PDT
WIP ^^
Comment 14 zalan 2019-04-17 20:18:05 PDT
Created attachment 367715 [details]
Patch
Comment 15 zalan 2019-04-18 09:48:56 PDT
Created attachment 367732 [details]
Patch
Comment 16 WebKit Commit Bot 2019-04-18 14:13:04 PDT
Comment on attachment 367732 [details]
Patch

Clearing flags on attachment: 367732

Committed r244434: <https://trac.webkit.org/changeset/244434>
Comment 17 WebKit Commit Bot 2019-04-18 14:13:06 PDT
All reviewed patches have been landed.  Closing bug.
Comment 18 Aakash Jain 2019-04-18 14:58:49 PDT
> Committed r244434: <https://trac.webkit.org/changeset/244434>
Seems like it broke another API Test: WebKit.AutoLayoutIntegration
https://ews-build.webkit.org/#/builders/3/builds/743
Comment 19 zalan 2019-04-18 15:00:02 PDT
(In reply to Aakash Jain from comment #18)
> > Committed r244434: <https://trac.webkit.org/changeset/244434>
> Seems like it broke another API Test: WebKit.AutoLayoutIntegration
> https://ews-build.webkit.org/#/builders/3/builds/743
:( most likely that test needs fixing too.
Comment 20 Aakash Jain 2019-04-18 19:20:23 PDT
> :( most likely that test needs fixing too.
ok. Test failures makes EWS slow (since EWS has to re-run the tests, and then compile clean tree and re-run treats on clean tree, to ensure that the failures are not flaky or pre-existing).
Can we either fix this test quickly or roll out the commit?
Comment 21 WebKit Commit Bot 2019-04-18 19:23:03 PDT
Re-opened since this is blocked by bug 197089
Comment 22 Alexey Proskuryakov 2019-04-22 09:23:15 PDT
What is the current status here? Has the fix been rolled back for breaking another test, so we are back to having AutoLayoutRenderingProgressRelativeOrdering fail?
Comment 23 zalan 2019-04-22 09:24:39 PDT
(In reply to Alexey Proskuryakov from comment #22)
> What is the current status here? Has the fix been rolled back for breaking
> another test, so we are back to having
> AutoLayoutRenderingProgressRelativeOrdering fail?
Correct.
Comment 24 zalan 2019-04-24 15:12:32 PDT
Created attachment 368187 [details]
Patch
Comment 25 Tim Horton 2019-04-24 15:15:47 PDT
Comment on attachment 368187 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=368187&action=review

> Source/WebKit/WebProcess/WebPage/WebPage.cpp:6244
> +        // Ensure we never send DidFirstLayout milestone withouth updating the intrinsic size.

withouth
Comment 26 zalan 2019-04-24 15:27:34 PDT
Created attachment 368191 [details]
Patch
Comment 27 WebKit Commit Bot 2019-04-24 19:17:56 PDT
Comment on attachment 368191 [details]
Patch

Clearing flags on attachment: 368191

Committed r244633: <https://trac.webkit.org/changeset/244633>
Comment 28 WebKit Commit Bot 2019-04-24 19:17:58 PDT
All reviewed patches have been landed.  Closing bug.