"CrSettingsChromeCleanupPageTest.All" failing on Windows official builds. |
|||||||||
Issue descriptionPasting from issue 860069 to here, since issue 860069 is otherwise unrelated to these failures AFAIU. From comment #34 Just to update: 'CrSettingsChromeCleanupPageTest.All-browser_tests failed failure reason seen on Win ASAN/Win Clang & Win64 clang -73.0.3629.0 on official desktop builder' Link to the builder: ------------------- https://uberchromegw.corp.google.com/i/official.desktop/builders/win-asan/builds/1181 https://uberchromegw.corp.google.com/i/official.desktop/builders/win-clang/builds/1740 https://uberchromegw.corp.google.com/i/official.desktop/builders/win64-clang/builds/1736 Link to error log: ------------------ https://logs.chromium.org/logs/chrome/bb/official.desktop/win-asan/1181/+/recipes/steps/browser_tests/0/stdout https://logs.chromium.org/logs/chrome/bb/official.desktop/win-clang/1740/+/recipes/steps/browser_tests/0/stdout https://logs.chromium.org/logs/chrome/bb/official.desktop/win64-clang/1736/+/recipes/steps/browser_tests/0/stdout From comment #35 Just to update: 'CrSettingsChromeCleanupPageTest.All-browser_tests failure seen on Win Trunk -73.0.3629.0 on official desktop continuous builder' Link to the builder: ------------------- https://uberchromegw.corp.google.com/i/official.desktop.continuous/builders/win%20trunk/builds/98465 Link to error log: ------------------ https://logs.chromium.org/logs/chrome/bb/official.desktop.continuous/win_trunk/98465/+/recipes/steps/browser_tests/0/stdout
,
Dec 6
I can reproduce this on my desktop. There seems to be some start being kept between test runs because with --gtest_repeat=2 the first test always succeeds and the second test always fails. This does seem to have been triggered by https://crrev.com/c/1352822. Replacing the <embed> from that CL with <span> stops the failure on my desktop. But I think the cause is the resource leak in the test harness, not the patch itself.
,
Dec 6
Actually seems to be timing related. When I add some debug logs it goes down to about 1 in 3 runs fail. Must just be coincidence that it was always repeat #2 that failed.
,
Dec 6
Added some debug output: [36672:5736:1206/162429.140:ERROR:web_contents_impl.cc(5625)] DidStartLoading 0 frame_name '' unique_name 'chrome://settings/partner-logo.svg' [36672:5736:1206/162429.140:ERROR:web_contents_impl.cc(4993)] LoadingStateChanged start 1 different_document 0 due_to_interstital 0 url NULL [36672:5736:1206/162429.142:ERROR:web_contents_impl.cc(5664)] DidStopLoading [36672:5736:1206/162429.143:ERROR:web_contents_impl.cc(4993)] LoadingStateChanged start 0 different_document 1 due_to_interstital 0 url chrome://settings/ [36672:5736:1206/162429.205:ERROR:web_contents_impl.cc(5625)] DidStartLoading 0 frame_name '' unique_name 'chrome://settings/partner-logo.svg' [36672:5736:1206/162429.206:ERROR:web_contents_impl.cc(4993)] LoadingStateChanged start 1 different_document 0 due_to_interstital 0 url NULL [36672:5736:1206/162429.210:ERROR:web_contents_impl.cc(5664)] DidStopLoading [36672:5736:1206/162429.221:ERROR:web_contents_impl.cc(4993)] LoadingStateChanged start 0 different_document 1 due_to_interstital 0 url chrome://settings/ [36672:5736:1206/162429.267:ERROR:web_contents_impl.cc(5625)] DidStartLoading 0 frame_name '' unique_name 'chrome://settings/partner-logo.svg' [36672:5736:1206/162429.267:ERROR:web_contents_impl.cc(4993)] LoadingStateChanged start 1 different_document 0 due_to_interstital 0 url NULL [36672:5736:1206/162429.331:ERROR:web_contents_impl.cc(5625)] DidStartLoading 0 frame_name '' unique_name 'chrome://settings/partner-logo.svg' [36672:5736:1206/162429.331:ERROR:web_contents_impl.cc(4993)] LoadingStateChanged start 1 different_document 0 due_to_interstital 0 url NULL [36672:5736:1206/162429.331:FATAL:web_contents_observer_sanity_checker.cc(307)] Check failed: !is_loading_. There's a random number of valid DidStart / DidStop pairs before it dies, so it looks like several sequences are calling DidStart and DidStop unsynchronized and they occasionally collide. Looks like a real race condition in the loader?
,
Dec 6
Nope, these are all being called from the same sequence. So whatever is messing up the order of DidStart and DidStop is at the other end of the mojo pipe.
,
Dec 6
Found a fix in the test suite - it was lacking a teardown() function that removes the current page, so every test case was adding more and more copies of the same child to the DOM. I'd argue that there's still an underlying loader bug since the missing teardown() shouldn't cause the loader to get in an invalid state. But the teardown is clearly the right thing to do so I'll add it and follow up with the loader team to see if they think it's worth investigating further.
,
Dec 6
In the setup() method there is a PolymerTest.clearBody() call which should run before each test and empty the DOM anyway, so not 100% sure if the lack of teardown() is the issue.
,
Dec 7
Uploaded https://crrev.com/c/1367924. I've confirmed it fixes the issue on my desktop (without the fix the test will fail about 50% of the time, with the fix it's run over 10 repeats without a crash). I'm following the pattern of about_page_tests.js. I don't know enough about the JS infrastructure to get any further on this. If you don't think this is the correct fix (or if you want to dig into it further to find out why clearBody isn't enough) I'll have to throw this over to you.
,
Dec 7
Today https://crrev.com/c/1367924 ran for 4 repeats and then crashed again, so I didn't submit it.
,
Dec 10
If the investigation takes a while, can we revert https://chromium-review.googlesource.com/c/1352822 in the meantime? Having known-broken tests in the tree causes needless duplicate work.
,
Dec 10
Just to update: Still seeing the same issue (CrSettingsChromeCleanupPageTest) on official of 73.0.3636.0/73.0.3636.1 & continuous builder as below. Link to the builder: ------------------ https://uberchromegw.corp.google.com/i/official.desktop/builders/win-asan/builds/1189 https://uberchromegw.corp.google.com/i/official.desktop/builders/win-clang/builds/1764 https://uberchromegw.corp.google.com/i/official.desktop.continuous/builders/win64%20beta/builds/5793 https://uberchromegw.corp.google.com/i/official.desktop.continuous/builders/win%20trunk/builds/98894 https://uberchromegw.corp.google.com/i/official.desktop.continuous/builders/win64%20trunk/builds/47506 Link to error log: ----------------- https://logs.chromium.org/logs/chrome/bb/official.desktop/win-asan/1189/+/recipes/steps/browser_tests/0/stdout https://logs.chromium.org/logs/chrome/bb/official.desktop/win-clang/1764/+/recipes/steps/browser_tests/0/stdout https://logs.chromium.org/logs/chrome/bb/official.desktop.continuous/win64_beta/5793/+/recipes/steps/browser_tests/0/stdout https://logs.chromium.org/logs/chrome/bb/official.desktop.continuous/win_trunk/98894/+/recipes/steps/browser_tests/0/stdout https://logs.chromium.org/logs/chrome/bb/official.desktop.continuous/win64_trunk/47506/+/recipes/steps/browser_tests/0/stdout Thanks..!
,
Dec 10
,
Dec 10
@10: The revert is in the cq.
,
Dec 10
,
Dec 12
Just to update: Same issue(CrSettingsChromeCleanupPageTest) still seen on Win 64 beta of official continuous builder. Link to the builder: ------------------- https://uberchromegw.corp.google.com/i/official.desktop.continuous/builders/win64%20beta/builds/5826 Link to error log: ------------------- https://logs.chromium.org/logs/chrome/bb/official.desktop.continuous/win64_beta/5826/+/recipes/steps/browser_tests/0/stdout Thanks..!
,
Dec 12
Thanks for the update. Will need to merge the fix to M72 after it's been in Canary for 24 hours.
,
Dec 17
Just to update: Same issue(CrSettingsChromeCleanupPageTest) still seen on Win 64 beta of official continuous builder. Link to the builder: ------------------- https://uberchromegw.corp.google.com/i/official.desktop.continuous/builders/win64%20beta/builds/5884 Link to error log: ------------------- https://logs.chromium.org/logs/chrome/bb/official.desktop.continuous/win64_beta/5884/+/recipes/steps/browser_tests/0/stdout joenotcharles@, Please take a look into it. Thanks..!
,
Dec 17
This
,
Dec 17
jmukthavaram@: this is waiting on TPM approval to merge the fix in https://crbug.com/767130 to M72.
,
Dec 18
Just to update: Also seeing the same issue on Win Clang official builder. Link to the builder: -------------------- https://uberchromegw.corp.google.com/i/official.desktop/builders/win-clang/builds/1792 Link to error log: ------------------ https://logs.chromium.org/logs/chrome/bb/official.desktop/win-clang/1792/+/recipes/steps/browser_tests/0/stdout Thanks!
,
Dec 18
That's building branch 3626, which is M72.
,
Dec 18
Fix has been merged to M72. |
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by proberge@chromium.org
, Dec 6Owner: joenotcharles@google.com