-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Glib] Initialize WebProcessExtension
s in API tests on demand
#16828
[Glib] Initialize WebProcessExtension
s in API tests on demand
#16828
Conversation
EWS run on previous version of this PR (hash a57507b) |
I agree this change is fine, but I wish we understood how it could cause flakiness. It certainly shouldn't. |
I can give an example. When a test finishes fast and we're stopping the DBus server, an extension can still be trying to connect to it and we're getting a failing assertion here:
I faced it in WebKitGTK/TestWebKitWebContext test but only in debug build with an error that looked totally unrelated.
|
a57507b
to
7f9058a
Compare
EWS run on previous version of this PR (hash 7f9058a) |
7f9058a
to
30eaf31
Compare
EWS run on current version of this PR (hash 30eaf31) |
https://bugs.webkit.org/show_bug.cgi?id=260382 Reviewed by Carlos Garcia Campos and Michael Catanzaro. Currently, `WebProcessExtension`s are initialized for each API test. It's not only unnecessary but can lead to flakiness. This patch requires API tests using extensions to explicitly state this by setting `Test::shouldInitializeWebProcessExtensions` to `true`. * Tools/TestWebKitAPI/Tests/WebKitGLib/TestConsoleMessage.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestDOMElement.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestEditor.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestFrame.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestLoaderClient.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestMultiprocess.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestResources.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitUserContentManager.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebProcessExtensions.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGtk/TestAutocleanups.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGtk/TestContextMenu.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGtk/TestDOMClientRect.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGtk/TestDOMNode.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGtk/TestDOMNodeFilter.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGtk/TestDOMXPathNSResolver.cpp: (beforeAll): * Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.cpp: * Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h: (Test::Test): Canonical link: https://commits.webkit.org/267125@main
30eaf31
to
f7d2305
Compare
Committed 267125@main (f7d2305): https://commits.webkit.org/267125@main Reviewed commits have been landed. Closing PR #16828 and removing active labels. |
f7d2305
30eaf31