[7.5] filter out downstream failures with updated error messag… (#52118)

This commit is contained in:
Spencer 2019-12-03 16:17:45 -07:00 committed by GitHub
parent d7a5d05900
commit 8571e0b4b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -41,5 +41,13 @@ Wait timed out after 10055ms
</system-out>
<skipped/>
</testcase>
<testcase name="machine learning anomaly detection saved search with lucene query job creation opens the advanced section" classname="Firefox XPack UI Functional Tests.x-pack/test/functional/apps/machine_learning/anomaly_detection/saved_search_job·ts" time="6.040">
<system-out><![CDATA[[00:21:57] └-: machine learning...]]></system-out>
<failure><![CDATA[{ NoSuchSessionError: Tried to run command without establishing a connection
at Object.throwDecodedError (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/error.js:550:15)
at parseHttpResponse (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:563:13)
at Executor.execute (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:489:26)
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'NoSuchSessionError', remoteStacktrace: '' }]]></failure>
</testcase>
</testsuite>
</testsuites>

View file

@ -91,7 +91,8 @@ const getFailureText = (failure: NonNullable<TestCase['failure']>) => {
const isLikelyIrrelevant = ({ name, failure }: TestFailure) => {
if (
failure.includes('NoSuchSessionError: This driver instance does not have a valid session ID')
failure.includes('NoSuchSessionError: This driver instance does not have a valid session ID') ||
failure.includes('NoSuchSessionError: Tried to run command without establishing a connection')
) {
return true;
}