Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Issue 2853014: The Mac Selenium tests are flaky, failing every now and then because of a... (Closed)

Created:
10 years, 6 months ago by Mark Schneckloth
Modified:
9 years, 7 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

The Mac Selenium tests are flaky, failing every now and then because of a Python "error 32: Broken Pipe" while sending the .nexe from the Selenium server to the browser. This might be caused by the "timeout" for "new NaclLib()" being too short so the Javascript abandons loading the page before the .nexe is fully transferred. As such, increase the "timeout" (it's actually a loop count) from 100 to 500 (sometimes from 50 to 500) for most of the uses of "new NaclLib()". Committed: http://code.google.com/p/nativeclient/source/detail?r=2574

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -26 lines) Patch
M tests/npapi_bridge/npapi_test.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/npapi_geturl/npapi_geturl.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/npapi_hw/npapi_hw.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/npapi_runtime/npapi_runtime.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x64/npapi_hw.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x64/srpc_basic.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x64/srpc_hw.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x64/srpc_nrd_xfer.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x64/srpc_plugin.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x64/srpc_shm.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x64/srpc_sockaddr.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x86/OldAbiVersion/srpc_hw.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x86/npapi_hw.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x86/srpc_basic.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x86/srpc_hw.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x86/srpc_nrd_xfer.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x86/srpc_plugin.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x86/srpc_shm.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/prebuilt/x86/srpc_sockaddr.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/srpc/srpc_basic.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/srpc/srpc_nrd_xfer.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/srpc/srpc_plugin.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/srpc/srpc_shm.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/srpc/srpc_sockaddr.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/srpc/srpc_url_as_nacl_desc.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/srpc_hw/srpc_hw.html View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Mark Schneckloth
10 years, 6 months ago (2010-06-23 22:31:31 UTC) #1
noelallen_use_chromium
The changes look harmless other than potentially increasing the time it takes to fail. Considering ...
10 years, 6 months ago (2010-06-24 17:13:52 UTC) #2
Mark Schneckloth
10 years, 6 months ago (2010-06-25 18:35:12 UTC) #3
I have been playing with various timeout values on my machine.  No matter how
small I set the timeout (even 1) I cannot induce a failure of a Selenium test. 
So this CL is unlikely to fix the "error 32: Broken pipe" problem.

As pointed out by Noel, increasing the timeout from 100 to 500 (the units are
"number of 100ms loops" so the increase is from 10 to 50 seconds), is not a bad
thing.  It pretty much guarantees that we won't have any flaky errors in the
future where we didn't wait long enough for the .nexe to load.  So I will commit
this and then keep looking for the underlying cause of the "error 32: Broken
pipe" Selenium test error.

Powered by Google App Engine
This is Rietveld 408576698