RESOLVED FIXED 138098
http/tests/cookies/third-party-cookie-relaxing.html is flaky on bots
https://bugs.webkit.org/show_bug.cgi?id=138098
Summary http/tests/cookies/third-party-cookie-relaxing.html is flaky on bots
Attachments
proposed fix (5.97 KB, patch)
2014-10-27 14:13 PDT, Alexey Proskuryakov
no flags
Alexey Proskuryakov
Comment 1 2014-10-27 12:16:00 PDT
As far as I can tell, updated expectations have not been landed yet. This is kind of a bad test to skip, as we don't have much coverage. Looking into what's going on now. I can reliably reproduce by running an arbitrary test repeatedly in one terminal window, and this test in another window: run-webkit-tests -f --child-processes=7 --repeat=10000 css3/selectors3/html/css3-modsel-68.html run-webkit-tests http/tests/cookies/third-party-cookie-relaxing.html --no-retry --no-show
Stephanie Lewis
Comment 2 2014-10-27 12:17:45 PDT
Alexey Proskuryakov
Comment 3 2014-10-27 12:22:54 PDT
This is caused by this line in resetWebPreferencesToConsistentValues(): [WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain]; This test temporarily sets a different cookie accept policy, which gets overridden when another DRT process executes this line, so we have a race. Separate instances of DumpRenderTree are supposed to use separate cookie stores, so they should not be able to affect one another. The question is what changed in Yosemite that this is no longer true.
Alexey Proskuryakov
Comment 4 2014-10-27 14:07:33 PDT
Looks like our parallel test processes used to always share cookie storages, but cookie accept policy wasn't read from the storage before Yosemite.
Alexey Proskuryakov
Comment 5 2014-10-27 14:13:58 PDT
Created attachment 240506 [details] proposed fix
WebKit Commit Bot
Comment 6 2014-10-27 14:59:50 PDT
Comment on attachment 240506 [details] proposed fix Clearing flags on attachment: 240506 Committed r175232: <http://trac.webkit.org/changeset/175232>
WebKit Commit Bot
Comment 7 2014-10-27 14:59:52 PDT
All reviewed patches have been landed. Closing bug.
Csaba Osztrogonác
Comment 8 2014-10-28 01:21:06 PDT
(In reply to comment #6) > Comment on attachment 240506 [details] > proposed fix > > Clearing flags on attachment: 240506 > > Committed r175232: <http://trac.webkit.org/changeset/175232> It broke the build on Apple Windows bots: 1>..\platform\network\cf\NetworkStorageSessionCFNet.cpp(57): error C3861: 'getpid': identifier not found 1>Done Building Project "C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj" (Build target(s)) -- FAILED. Build FAILED.
Alexey Proskuryakov
Comment 9 2014-10-28 09:44:32 PDT
Should be fixed in <http://trac.webkit.org/r175254>.
Note You need to log in before you can comment on or make changes to this bug.