[Bug 28647] New: administration_tasks.t is failing randomly
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28647 Bug ID: 28647 Summary: administration_tasks.t is failing randomly Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Test Suite Assignee: chris@bigballofwax.co.nz Reporter: victor@tuxayo.net QA Contact: testopia@bugs.koha-community.org Koha_Master #1697 koha_1 | /usr/local/share/perl/5.28.1/Selenium/Remote/Driver.pm:1340 in (eval) koha_1 | /kohadevbox/koha/t/lib/Selenium.pm:165 in Selenium::Remote::Driver::find_element koha_1 | t/db_dependent/selenium/administration_tasks.t:188 in t::lib::Selenium::click koha_1 | selenium_1 | 1624989981543 Marionette INFO Stopped listening on port 43585 selenium_1 | 18:06:22.136 INFO [ActiveSessions$1.onStop] - Removing session ee327494-5e3c-4809-aa8c-51d0c0df60b2 (org.openqa.selenium.firefox.GeckoDriverService) koha_1 | Error while executing command: no such element: Unable to locate element: //div[@id="container-main"]//a[contains(@href, "/admin/admin-home.pl")] at /usr/local/share/perl/5.28.1/Selenium/Remote/Driver.pm line 411. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28647 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com Status|NEW |ASSIGNED Assignee|chris@bigballofwax.co.nz |victor@tuxayo.net --- Comment #1 from Victor Grousset/tuxayo <victor@tuxayo.net> --- I can reproduce. I'm trying stuff like adding finds before so it waits for an element to be here before continuing. But haven't found yet something that actually works when retrying a lot of times. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28647 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtj@kohaaloha.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28647 --- Comment #2 from Victor Grousset/tuxayo <victor@tuxayo.net> --- For some reason, sometimes $driver->get($mainpage); doesn't do anything and we can wait as much as we want and we won't be on the mainpage -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28647 --- Comment #3 from Victor Grousset/tuxayo <victor@tuxayo.net> --- outrageous fix: $driver->get($mainpage); $driver->get($mainpage); It should still eventually fail but the probability will be: once in "a few dozen times" x "a few dozen times" So much lower :D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28647 --- Comment #4 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Created attachment 122624 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122624&action=edit Bug 28647: Selenium lib: make error handler fail gracefully Quitting the driver makes all the next use of Selenium in the file fail. And go to te error handler where it fails again and goes to the error handler. Now it just fails the current test and continues. I don't know how this wasn't an issue in the previous work on the test suite. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28647 --- Comment #5 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Created attachment 122625 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122625&action=edit Bug 28647: Wait for elements to load + do twice an unreliable operation Confirmed by 1000 passing runs. After testing: removing any of the 3 fixes almost surely causes a fail in less than 200 runs. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28647 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28647 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart+koha@gmail. | |com --- Comment #6 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- How to recreate the failure? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28647 --- Comment #7 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Running prove t/db_dependent/selenium/administration_tasks.t in a loop without the patches. And hope that on your machine there isn't a too low probability of failure. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28647 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply CC| |lucas@bywatersolutions.com --- Comment #8 from Lucas Gass <lucas@bywatersolutions.com> --- Sadly this no longer applies to current master. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org