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:
Tim Burke
2021年03月11日 15:11:17 -08:00
parent c2f619129c
commit 1afad5c492

View File

@@ -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

View File

@@ -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
openstack/swift
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.

The note is not visible to the blocked user.