-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
FTR: fix 10 sec timeout in waitForDeleted #33313
FTR: fix 10 sec timeout in waitForDeleted #33313
Conversation
💔 Build FailedX-Pack Functional Tests.x-pack/test/functional/apps/maps/es_search_source·js.maps app elasticsearch document layer query bar should apply query to fit to bounds setting implicitWait to 0 might be not the best approach, I will investigate |
💔 Build Failed |
💚 Build Succeeded |
💔 Build Failed |
💚 Build Succeeded |
💚 Build Succeeded |
💔 Build FailedThe only failure: xpack-ciGroup3 passed 20x times 💪 |
This reverts commit 55482de.
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - I only code reviewed and checked Jenkins results. The test I initially saw the problem is was
kibana/test/functional/apps/context/_filters.js (in ciGroup1)
We can see from the screenshots below that this PR saves almost 1 minute off that test.
Closes: 33168
Closes: #33168 |
* use css selector instead of className, set implicit wait to 0 * set implicitWait to 2 sec * set default implicitWait to WAIT_FOR_EXISTS_TIME * set timeout to 1 sec, retry for query bar test * sleep 5 sec waiting zoom is finished * sleep is the only way to wait * run x-pack-ciGroup3 20x times * Revert "run x-pack-ciGroup3 20x times" This reverts commit 55482de.
* use css selector instead of className, set implicit wait to 0 * set implicitWait to 2 sec * set default implicitWait to WAIT_FOR_EXISTS_TIME * set timeout to 1 sec, retry for query bar test * sleep 5 sec waiting zoom is finished * sleep is the only way to wait * run x-pack-ciGroup3 20x times * Revert "run x-pack-ciGroup3 20x times" This reverts commit 55482de.
* use css selector instead of className, set implicit wait to 0 * set implicitWait to 2 sec * set default implicitWait to WAIT_FOR_EXISTS_TIME * set timeout to 1 sec, retry for query bar test * sleep 5 sec waiting zoom is finished * sleep is the only way to wait * run x-pack-ciGroup3 20x times * Revert "run x-pack-ciGroup3 20x times" This reverts commit 55482de.
💚 Build Succeeded |
* use css selector instead of className, set implicit wait to 0 * set implicitWait to 2 sec * set default implicitWait to WAIT_FOR_EXISTS_TIME * set timeout to 1 sec, retry for query bar test * sleep 5 sec waiting zoom is finished * sleep is the only way to wait * run x-pack-ciGroup3 20x times * Revert "run x-pack-ciGroup3 20x times" This reverts commit 55482de.
Summary
@LeeDr reported a bug with FTR waiting for the element to be removed out of DOM always takes 10 sec.
Why it happened:
waitForDeletedByCssSelector
relies ondriver.findElements
, which usesimplicitWait
timeout for element to be found: by default timeout=timeouts.find
(10 sec), sodriver.findElements
tries to find element up to 10 sec.Fix: implicit wait is reset to 1000 (1 sec) on start to rely only on explicitTImeout so that
findElements
stops execution on the first attempt and returns the result if elements not found.Since we no longer use Leadfoot, I fixed the following mismatch:
find service has
waitForDeletedByCssSelector
web_element_wrapper has
waitForDeletedByClassName
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] This was checked for cross-browser compatibility, including a check against IE11- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support- [ ] Documentation was added for features that require explanation or tutorials- [ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
- [ ] This was checked for breaking API changes and was labeled appropriately- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately