Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST: Use oVirt Tiny Core instead of cirros #162

Open
wants to merge 25 commits into
base: tinycore-test
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
092cad7
Add ignoring of TimeoutException also to _wait_until
ljelinkova May 24, 2022
f5815d6
he: add storage network for vms
hbraha Apr 13, 2022
67405b5
ost: downgrade nmstate
hbraha May 18, 2022
3ed0680
run vms on el9
hbraha May 1, 2022
c3430cf
Revert "ost: downgrade nmstate"
mrkev-gh May 25, 2022
28754b2
package_mgmt: Remove special jenkins repos handling
tinez May 26, 2022
6be4e53
Update Grafana check for error
ljelinkova May 13, 2022
50d36dd
Fix typo
tinez May 26, 2022
693440c
el9stream: Reboot all hosts
tinez May 26, 2022
01cf93d
update el[89]stream jobs with COPR updates
michalskrivanek May 26, 2022
6fc59c3
jenkins: simplify COPR repo
michalskrivanek May 27, 2022
0694d79
basic: remove async_ argument when calling ExternalVmImportService
nyoxi Apr 12, 2022
9dbb59b
jenkins: fix typo
michalskrivanek May 27, 2022
ccc82fe
add convert disk test (#121)
bennyz May 27, 2022
1dcbe6a
ost_utils: vmconsole - use ip_interface for better readability
erav May 18, 2022
5e2707a
ost_utils: vmconsole - enhance debug logging
erav May 25, 2022
37ff8fa
ost_utils: vmconsole - use default byte stream
erav May 4, 2022
8fae21b
ost_utils: vmconsole - allow several login tries
erav May 24, 2022
d823489
ost_utils: vmconsole - prolong waiting times
erav May 18, 2022
b7a527a
Remove unnecessary empty line
avlitman May 29, 2022
8c5a744
readme: username is admin@ovirt if keycloak is enabled
avlitman May 29, 2022
6ce0c14
engine deploy: downgrade ovn - temp workaround
erav May 31, 2022
0f4d169
setup_engine: Ignore errors on downgrade (#172)
tinez Jun 1, 2022
c248eaa
ost_utils: vmconsole - ignore decode errors
erav Jun 1, 2022
2159bc9
TEST: Use oVirt Tiny Core instead of cirros
tinez May 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add ignoring of TimeoutException also to _wait_until
  • Loading branch information
ljelinkova authored and tinez committed May 25, 2022
commit 092cad7db1f1a058a421a1c24e7398a706b02010
36 changes: 15 additions & 21 deletions ost_utils/selenium/navigation/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ def wait_long_until(self, message, condition_method, *args):
self._wait_until(message, assert_utils.LONG_TIMEOUT, condition_method, *args)

def _wait_until(self, message, timeout, condition_method, *args):
WebDriverWait(self.driver, timeout).until(ConditionClass(condition_method, *args), message)
WebDriverWait(self.driver, timeout, ignored_exceptions=[TimeoutException]).until(
ConditionClass(condition_method, *args), message
)

def wait_while(self, message, condition_method, *args):
self._wait_while(message, assert_utils.SHORT_TIMEOUT, condition_method, *args)
Expand Down Expand Up @@ -154,9 +156,7 @@ def __call__(self, driver):
except NoSuchElementException as e:
raise e
except Exception as e:
LOGGER.exception(
'!!!ConditionClass failed with ' + e.__class__.__name__ + ' at retry number ' + str(self.retry)
)
LOGGER.exception(f'!!! ConditionClass failed with {e.__class__.__name__} at retry number {self.retry}')
raise e


Expand All @@ -169,23 +169,21 @@ def __init__(self, method_to_execute, *args):
self.retry = 0

def __call__(self, driver):
shouldRunAgain = False
should_run_again = False
try:
self.retry += 1
self.result = self.method_to_execute(*self.args)
# ignore StaleElementReferenceException and try again
except StaleElementReferenceException:
shouldRunAgain = True
should_run_again = True
# ignore TimeoutException if caused by timeout in java
except TimeoutException as e:
LOGGER.exception(
'!!!StaleExceptionOccurredCondition failed with '
+ e.__class__.__name__
+ ' at retry number '
+ str(self.retry)
f'!!! StaleExceptionOccurredCondition failed with {e.__class__.__name__} '
+ f'at retry number {str(self.retry)}'
)
if 'java.util.concurrent.TimeoutException' in str(e):
shouldRunAgain = True
should_run_again = True
else:
self.error = e
# stating it here just to avoid logging this expected condition or processing it as
Expand All @@ -196,22 +194,18 @@ def __call__(self, driver):
# Last 0 characters read:
except WebDriverException as e:
LOGGER.exception(
'!!!StaleExceptionOccurredCondition failed with '
+ e.__class__.__name__
+ ' at retry number '
+ str(self.retry)
f'!!! StaleExceptionOccurredCondition failed with {e.__class__.__name__} '
+ f'at retry number {self.retry}'
)
if 'START_MAP' in str(e):
shouldRunAgain = True
should_run_again = True
else:
self.error = e
except Exception as e:
LOGGER.exception(
'!!!StaleExceptionOccurredCondition failed with '
+ e.__class__.__name__
+ ' at retry number '
+ str(self.retry)
f'!!! StaleExceptionOccurredCondition failed with {e.__class__.__name__} '
+ f'at retry number {self.retry}'
)

self.error = e
return shouldRunAgain
return should_run_again