cors-tests: Increase timeouts for setup operations
Drive-bys: * Only copy outputs when there are outputs to copy * Print tracebacks when there's an issue running a selenium driver Change-Id: I0807af4525a13a30baf27ada40eeabe311b44296
This commit is contained in:
2 changed files with 18 additions and 1 deletions
@@ -22,6 +22,7 @@ import os.path
import sys
import threading
import time
import traceback
from six.moves import urllib
from six.moves import socketserver
@@ -101,7 +102,7 @@ def setup(args):
ENV['OS_AUTH_URL'],
ENV['OS_USERNAME'],
ENV['OS_PASSWORD'],
timeout=5)
timeout=30) # We've seen request times as high as 7-8s in the gate
cluster_info = conn.get_capabilities()
conn.put_container('private', {
'X-Container-Read': '',
@@ -180,6 +181,9 @@ def run(args, url):
try:
browser = driver()
except Exception as e:
if not ('needs to be in PATH' in str(e) or
'SafariDriver was not found' in str(e)):
traceback.print_exc()
results.append(('SKIP', browser_name, str(e).strip()))
continue
ran_one = True
@@ -1,6 +1,11 @@
- hosts:all
become:true
tasks:
- name:Check for geckodriver log
stat:
path:'{{ ansible_env.HOME }}/geckodriver.log'
register:geckodriver_output
- name:Copy geckodriver log from worker nodes to executor node
synchronize:
src:'{{ ansible_env.HOME }}/geckodriver.log'
@@ -8,6 +13,12 @@
mode:pull
copy_links:true
verify_host:true
when:geckodriver_output.stat.exists == true
- name:Check for CORS test output
stat:
path:'{{ ansible_env.HOME }}/cors-test-results.txt'
register:test_output
- name:Copy CORS tests output from worker nodes to executor node
synchronize:
@@ -16,6 +27,7 @@
mode:pull
copy_links:true
verify_host:true
when:test_output.stat.exists == true
- zuul_return:
data:
@@ -23,3 +35,4 @@
artifacts:
- name:CORS test results
url:cors-test-results.txt
when:test_output.stat.exists == true
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.