[Bug 32671] New: basic_workflow.t is failing randomly
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Bug ID: 32671 Summary: basic_workflow.t is failing randomly Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Test Suite Assignee: chris@bigballofwax.co.nz Reporter: jonathan.druart+koha@gmail.com QA Contact: testopia@bugs.koha-community.org Blocks: 25551 09:09:13 koha_1 | CP main = 3.20 09:09:13 koha_1 | CP add patron category = 5.66 09:09:13 koha_1 | CP add patron = 5.04 09:09:13 koha_1 | CP add biblio = 0.20 09:09:13 koha_1 | CP add items = 13.62 09:09:13 koha_1 | 09:09:13 koha_1 | # Failed test at t/db_dependent/selenium/basic_workflow.t line 240. 09:09:13 koha_1 | # got: 'Checkouts (1)' 09:09:13 koha_1 | # expected: 'Checkouts (2)' 09:09:13 koha_1 | CP checkout = 22.22 09:09:13 koha_1 | CP checkin = 8.07 09:09:13 koha_1 | CP holds = 10.32 09:09:13 selenium_1 | 1674029262102 Marionette INFO Stopped listening on port 41815 09:09:13 selenium_1 | JavaScript error: resource:///modules/Interactions.jsm, line 230: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver] 09:09:13 selenium_1 | 08:07:43.008 INFO [ActiveSessions$1.onStop] - Removing session 5bd9205a-1b9c-4ec1-9621-3a0a16c4ab24 (org.openqa.selenium.firefox.GeckoDriverService) 09:09:13 koha_1 | # Looks like you failed 1 test of 22. 09:09:13 koha_1 | [08:07:43] t/db_dependent/selenium/basic_workflow.t Koha_22.05_D11/138 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25551 [Bug 25551] [OMNIBUS] Some tests are failing randomly -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 --- Comment #1 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Koha_Master/2516 koha_1 | CP main = 3.14 koha_1 | CP add patron category = 5.06 koha_1 | koha_1 | # Failed test at t/db_dependent/selenium/basic_workflow.t line 122. koha_1 | Wide character in print at /usr/share/perl/5.32/Test2/Formatter/TAP.pm line 125. koha_1 | # 'Add patron (test cat description) › Patrons › Koha' koha_1 | # doesn't match '(?^u:Patron details for test_patron_surname)' koha_1 | CP add patron = 8.83 koha_1 | CP add biblio = 0.23 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 --- Comment #2 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Koha_Master/2530 koha_1 | CP main = 3.30 koha_1 | koha_1 | # Failed test at t/db_dependent/selenium/basic_workflow.t line 113. koha_1 | Wide character in print at /usr/share/perl/5.32/Test2/Formatter/TAP.pm line 125. koha_1 | # 'Patron categories › Administration › Koha' koha_1 | # doesn't match '(?^u:New category)' koha_1 | koha_1 | STRACE: /usr/share/perl5/Try/Tiny.pm:123 in Selenium::Remote::Driver::catch {...} koha_1 | /usr/share/perl5/Selenium/Remote/Driver.pm:361 in Try::Tiny::try koha_1 | (eval 1858):1 in Selenium::Remote::Driver::__ANON__ koha_1 | (eval 1860):2 in Selenium::Remote::Driver::__ANON__ koha_1 | /usr/share/perl5/Selenium/Remote/Driver.pm:1340 in Selenium::Remote::Driver::_execute_command koha_1 | /usr/share/perl5/Selenium/Remote/Driver.pm:1340 in (eval) koha_1 | /kohadevbox/koha/t/lib/Selenium.pm:117 in Selenium::Remote::Driver::find_element koha_1 | t/db_dependent/selenium/basic_workflow.t:114 in t::lib::Selenium::fill_form -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 --- Comment #3 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Koha_Master/2535 koha_1 | CP main = 3.84 koha_1 | koha_1 | # Failed test at t/db_dependent/selenium/basic_workflow.t line 113. koha_1 | Wide character in print at /usr/share/perl/5.32/Test2/Formatter/TAP.pm line 125. koha_1 | # 'Patron categories › Administration › Koha' koha_1 | # doesn't match '(?^u:New category)' koha_1 | koha_1 | STRACE: /usr/share/perl5/Try/Tiny.pm:123 in Selenium::Remote::Driver::catch {...} koha_1 | /usr/share/perl5/Selenium/Remote/Driver.pm:361 in Try::Tiny::try koha_1 | (eval 1858):1 in Selenium::Remote::Driver::__ANON__ koha_1 | (eval 1860):2 in Selenium::Remote::Driver::__ANON__ koha_1 | /usr/share/perl5/Selenium/Remote/Driver.pm:1340 in Selenium::Remote::Driver::_execute_command koha_1 | /usr/share/perl5/Selenium/Remote/Driver.pm:1340 in (eval) koha_1 | /kohadevbox/koha/t/lib/Selenium.pm:117 in Selenium::Remote::Driver::find_element koha_1 | t/db_dependent/selenium/basic_workflow.t:114 in t::lib::Selenium::fill_form -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com --- Comment #4 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Koha_Master/2537 koha_1 | CP main = 3.56 koha_1 | koha_1 | # Failed test at t/db_dependent/selenium/basic_workflow.t line 113. koha_1 | Wide character in print at /usr/share/perl/5.32/Test2/Formatter/TAP.pm line 125. koha_1 | # 'Patron categories › Administration › Koha' koha_1 | # doesn't match '(?^u:New category)' koha_1 | CP add patron category = 11.80 koha_1 | CP add patron = 5.86 koha_1 | CP add biblio = 0.32 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 --- Comment #5 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Koha_Master/2544 koha_1 | CP add items = 14.97 koha_1 | CP checkout = 8.63 koha_1 | CP checkin = 7.90 koha_1 | koha_1 | # Failed test at t/db_dependent/selenium/basic_workflow.t line 279. koha_1 | # got: '1' koha_1 | # expected: '2' koha_1 | CP holds = 15.34 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |RM_priority --- Comment #6 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- We have another of these in run #2808: koha_1 | # Failed test at t/db_dependent/selenium/basic_workflow.t line 122. koha_1 | Wide character in print at /usr/share/perl/5.32/Test2/Formatter/TAP.pm line 125. koha_1 | # 'Add patron (test cat description) › Patrons › Koha' koha_1 | # doesn't match '(?^u:Patron details for test_patron_surname)' Help much appreciated! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|basic_workflow.t is failing |basic_workflow.t is failing |randomly |on slow servers -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 --- Comment #7 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 163047 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163047&action=edit Bug 32671: Prevent selenium/basic_workflow.t to fail if run on slow servers When submitting the form to create a new patron we are doing a POST memberentry.pl that is redirecting to moremember.pl The selenium test is expecting for the end of the request to test the page's title against "Patron details for ". But it's only waiting for the POST response (302), not the GET moremember that will display the patron's details. You can simulate a slow server using cpulimit: `cpulimit -b -p $PID -l 1` replacing $PID with the pid of the starman process. Note that other tests are failing using 1%, but... baby steps. The current failre: # Failed test at t/db_dependent/selenium/basic_workflow.t line 122 Wide character in print at /usr/share/perl/5.32/Test2/Formatter/TAP.pm line 125 # 'Add patron (test cat description) › Patrons › Koha' # doesn't match '(?^u:Patron details for test_patron_surname)' The next one (NOT fixed by this patch): # Failed test at t/db_dependent/selenium/basic_workflow.t line 256. # ' # # Checkouts (0)# # '# doesn't match '(?^u:Checkouts \(1\))' t/db_dependent/selenium/basic_workflow.t .. 14/22 # Failed test at t/db_dependent/selenium/basic_workflow.t line 256. # ' # # Checkouts (1) # # ' # doesn't match '(?^u:Checkouts \(2\))' t/db_dependent/selenium/basic_workflow.t .. 16/22 # Failed test at t/db_dependent/selenium/basic_workflow.t line 256. # ' # # Checkouts (2) # # ' # doesn't match '(?^u:Checkouts \(3\))' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 --- Comment #8 from Jonathan Druart <jonathan.druart@gmail.com> --- We are loosing a test (the form submission redirect to the patron's details), but it's not worth spending more time here IMO. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|chris@bigballofwax.co.nz |jonathan.druart@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA --- Comment #9 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Also taking this one for master. Sue me ;) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to master Version(s)| |24.05.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 --- Comment #10 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Pushed for 24.05! Well done everyone, thank you! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to master |Pushed to stable Version(s)|24.05.00 |24.05.00,23.11.04 released in| | CC| |fridolin.somers@biblibre.co | |m --- Comment #11 from Fridolin Somers <fridolin.somers@biblibre.com> --- Pushed to 23.11.x for 23.11.04 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to stable |Pushed to oldstable Version(s)|24.05.00,23.11.04 |24.05.00,23.11.04,23.05.10 released in| | --- Comment #12 from Lucas Gass <lucas@bywatersolutions.com> --- Backported to 23.05.x for upcoming 23.05.10. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 --- Comment #13 from Jonathan Druart <jonathan.druart@gmail.com> --- Reappeared? Koha_Master/2818 koha_1 | CP add items = 16.87 koha_1 | CP checkout = 12.84 koha_1 | CP checkin = 9.72 koha_1 | koha_1 | # Failed test at t/db_dependent/selenium/basic_workflow.t line 281. koha_1 | # got: '1' koha_1 | # expected: '2' koha_1 | CP holds = 14.88 selenium_1 | 1710957630124 Marionette INFO Stopped listening on port 35023 selenium_1 | JavaScript error: resource:///modules/Interactions.jsm, line 230: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver] selenium_1 | 18:00:31.171 INFO [ActiveSessions$1.onStop] - Removing session baac1e07-489d-47e6-a32c-f7e8b2da51d5 (org.openqa.selenium.firefox.GeckoDriverService) koha_1 | # Looks like you failed 1 test of 22. koha_1 | [18:00:31] t/db_dependent/selenium/basic_workflow.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32671 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|RM_priority | -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org