Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(213)

Issue 11311043: workaround for chrome testing flakiness (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by felix8a
Modified:
12 years, 8 months ago
Reviewers:
kpreid2
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

chromedriver is randomly flaky. symptom: test run hangs forever when trying to load the next browser test. this is a workaround that avoids most of that flakiness. for a while I was concerned that the hang might be a side effect of the complex things we do to js, but I have a test run that hung after browser-expectations, which is the first test, and there's nothing particularly complicated in it, so it seems likely to be a bug in chromedriver. the bug seems to be mainly triggered by navigating to about:blank. but I think I have a few instances of it failing elsewhere. I spent some time trying to figure out the bug, but didn't get very far, and this workaround seems adequate, so I'm deferring understanding the real problem until later. the workaround is to get a fresh webdriver instance for each test. this is the way most people use webdriver, so it's likely to work robustly in the future too. It's slightly slower than reusing the same browser, but not significantly slower. (The reuse-a-browser code was created a long time ago when we had much fewer browser tests, and browser startup time was a significant fraction of the time. Browser startup is now an insignificant fraction of the time.)

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M tests/com/google/caja/plugin/WebDriverHandle.java View 3 chunks +11 lines, -2 lines 2 comments Download
M tests/com/google/caja/util/TestFlag.java View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4
felix8a
12 years, 8 months ago (2013-07-16 00:17:51 UTC) #1
kpreid2
LGTM, but see below for alternatives I'd like to explore. https://codereview.appspot.com/11311043/diff/1/tests/com/google/caja/plugin/WebDriverHandle.java File tests/com/google/caja/plugin/WebDriverHandle.java (right): https://codereview.appspot.com/11311043/diff/1/tests/com/google/caja/plugin/WebDriverHandle.java#newcode130 ...
12 years, 8 months ago (2013-07-16 16:54:54 UTC) #2
felix8a
https://codereview.appspot.com/11311043/diff/1/tests/com/google/caja/plugin/WebDriverHandle.java File tests/com/google/caja/plugin/WebDriverHandle.java (right): https://codereview.appspot.com/11311043/diff/1/tests/com/google/caja/plugin/WebDriverHandle.java#newcode130 tests/com/google/caja/plugin/WebDriverHandle.java:130: driver.get("about:blank"); On 2013/07/16 16:54:54, kpreid2 wrote: > Two thoughts: ...
12 years, 8 months ago (2013-07-16 17:08:56 UTC) #3
felix8a
12 years, 8 months ago (2013-07-16 17:10:51 UTC) #4
@r5495
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b