[Bug 25811] New: authentication.t is failing randomly

classic Classic list List threaded Threaded
35 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] New: authentication.t is failing randomly

bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

            Bug ID: 25811
           Summary: authentication.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: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

Two recent failures in the CI

https://jenkins.koha-community.org/view/19.05/job/Koha_19.05_D8/244/consoleText
https://jenkins.koha-community.org/view/19.05/job/Koha_19.05_U18/239/consoleText

And I could reproduce locally in Debian 10 on master.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

Victor Grousset/tuxayo <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |25551


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.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #1 from Victor Grousset/tuxayo <[hidden email]> ---
Reproduced after:
- first try
- 14 tries
- first try

So it's quite frequent (on my machine)

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

Victor Grousset/tuxayo <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |25824


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25824
[Bug 25824] DecreaseLoanHighHolds.t is still failing randomly 2
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

Jonathan Druart <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]-c
                   |                            |ommunity.org

--- Comment #2 from Jonathan Druart <[hidden email]> ---
20.05_D10 run #17

12:50:09 koha_1       | STRACE: /usr/share/perl5/Try/Tiny.pm:123 in
Selenium::Remote::Driver::catch {...}
12:50:09 koha_1       |        
/usr/local/share/perl/5.28.1/Selenium/Remote/Driver.pm:353 in Try::Tiny::try
12:50:09 koha_1       |         (eval 444):1 in
Selenium::Remote::Driver::__ANON__
12:50:09 koha_1       |         (eval 446):2 in
Selenium::Remote::Driver::__ANON__
12:50:09 koha_1       |        
/usr/local/share/perl/5.28.1/Selenium/Remote/Driver.pm:1330 in
Selenium::Remote::Driver::_execute_command
12:50:09 koha_1       |        
/usr/local/share/perl/5.28.1/Selenium/Remote/Driver.pm:1330 in (eval)
12:50:09 koha_1       |         t/db_dependent/selenium/authentication.t:99 in
Selenium::Remote::Driver::find_element
12:50:09 koha_1       |         /usr/share/perl/5.28/Test/Builder.pm:339 in
main::__ANON__
12:50:09 koha_1       |         /usr/share/perl/5.28/Test/Builder.pm:339 in
(eval)
12:50:09 koha_1       |         /usr/share/perl/5.28/Test/More.pm:807 in
Test::Builder::subtest
12:50:09 koha_1       |         t/db_dependent/selenium/authentication.t:133 in
Test::More::subtest
12:50:09 koha_1       |
12:50:09 selenium_1   | 03:50:09.385 INFO - Executing: [take screenshot])
12:50:09 selenium_1   | 03:50:09.476 INFO - Done: [take screenshot]
12:50:12 koha_1       |
12:50:12 koha_1       | SCREENSHOT:
https://framapic.org/0HLdlQpPzrUy/vDNet1p63c6U
12:50:12 koha_1       |     # Looks like you planned 6 tests but ran 3.
12:50:12 koha_1       |
12:50:12 koha_1       | #   Failed test 'OPAC interface authentication'
12:50:12 koha_1       | #   at t/db_dependent/selenium/authentication.t line
133.
12:50:12 koha_1       | An element could not be located on the page using the
given search parameters: //div[@id="login"],xpath at
t/db_dependent/selenium/authentication.t line 99.
12:50:12 koha_1       | # Looks like your test exited with 255 just after 2.
12:50:12 koha_1       | [10:50:12] t/db_dependent/selenium/authentication.t

The screenshot is https://snipboard.io/IQWdmc.jpg

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #3 from Jonathan Druart <[hidden email]> ---
I still don't recreate locally.

Victor, can you try to call $driver->get_page_source(); and share the content?

Maybe in both t::lib::Selenium->add_error_handler and authentication.t, just
after we click #logout

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #4 from Victor Grousset/tuxayo <[hidden email]> ---
> Victor, can you try to call $driver->get_page_source(); and share the content?

Okay!

Did 113 run recreating it >_< disabled the additional logging to see if that
was the cause.

After 20 runs, got this error. it's not related right?

t/db_dependent/selenium/authentication.t .. 1/2
STRACE: /usr/share/perl5/Try/Tiny.pm:123 in Selenium::Remote::Driver::catch
{...}
        /usr/local/share/perl/5.28.1/Selenium/Remote/Driver.pm:353 in
Try::Tiny::try
        (eval 444):1 in Selenium::Remote::Driver::__ANON__
        (eval 446):2 in Selenium::Remote::Driver::__ANON__
        /usr/local/share/perl/5.28.1/Selenium/Remote/Driver.pm:1330 in
Selenium::Remote::Driver::_execute_command
        /usr/local/share/perl/5.28.1/Selenium/Remote/Driver.pm:1330 in (eval)
        t/db_dependent/selenium/authentication.t:99 in
Selenium::Remote::Driver::find_element
        /usr/share/perl/5.28/Test/Builder.pm:339 in main::__ANON__
        /usr/share/perl/5.28/Test/Builder.pm:339 in (eval)
        /usr/share/perl/5.28/Test/More.pm:807 in Test::Builder::subtest
        t/db_dependent/selenium/authentication.t:133 in Test::More::subtest

    # Looks like you planned 6 tests but ran 3.
t/db_dependent/selenium/authentication.t .. 2/2
#   Failed test 'OPAC interface authentication'
#   at t/db_dependent/selenium/authentication.t line 133.
malformed JSON string, neither tag, array, object, number, string or atom, at
character offset 0 (before "(end of string)") at /usr/share/perl5/JSON.pm line
190.
# Looks like your test exited with 255 just after 2.
t/db_dependent/selenium/authentication.t .. Dubious, test returned 255 (wstat
65280, 0xff00)




I'm retrying with the logging added and hoping the original issue to happen.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #5 from Victor Grousset/tuxayo <[hidden email]> ---
The previous error might have been due to Selenium being in an invalid state.
I got it often until I restarted koha-testing-docker.

So. Tested with commit 7b54b529078756556252530bb72903caa88e94e7 to have closer
conditions. (master was there when I previously got the error)

Still can't get it again after 3438 runs! We will see it some day that happens
again.

For the record I got this error:

t/db_dependent/selenium/authentication.t ..
    #   Failed test 'Patron without permission should be redirected to the
login form'
    #   at t/db_dependent/selenium/authentication.t line 57.
    #                   '502 Bad Gateway'
    #     doesn't match '(?^u:Access denied)'
    # Looks like you failed 1 test of 5.
t/db_dependent/selenium/authentication.t .. 1/2
#   Failed test 'Staff interface authentication'
#   at t/db_dependent/selenium/authentication.t line 72.

It's just to find it in case it happens again. Not worthy of a bug now IMHO.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #6 from Jonathan Druart <[hidden email]> ---
Master_D10 #299 (Docker 1)

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #7 from Jonathan Druart <[hidden email]> ---
Master_D9 #1393 (Docker 1)

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #8 from Jonathan Druart <[hidden email]> ---
Created attachment 107414
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107414&action=edit
Bug 25811: Debug - Paste the source of the page

I am really struggling finding the problem here.
Posting the source of the page may help.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

Jonathan Druart <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |Needs Signoff
                 CC|                            |martin.renvoize@ptfs-europe
                   |                            |.com, [hidden email]

--- Comment #9 from Jonathan Druart <[hidden email]> ---
Can I have a stamp on this one? I will push it and wait until the next failure
in hope it gives us more hint.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

Tomás Cohen Arazi <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Signed Off

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

Tomás Cohen Arazi <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #107414|0                           |1
        is obsolete|                            |

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #10 from Tomás Cohen Arazi <[hidden email]> ---
Created attachment 107444
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107444&action=edit
Bug 25811: Debug - Paste the source of the page

I am really struggling finding the problem here.
Posting the source of the page may help.

Signed-off-by: Tomas Cohen Arazi <[hidden email]>

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

Jonathan Druart <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |ASSIGNED

--- Comment #11 from Jonathan Druart <[hidden email]> ---
Debug patch pushed to master.

Letting this opened for now.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

Jonathan Druart <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|[hidden email]    |[hidden email]-c
                   |                            |ommunity.org

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #12 from Jonathan Druart <[hidden email]> ---
Created attachment 107635
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107635&action=edit
Bug 25811: (follow-up) Debug - Paste the source of the page

Wide character in syswrite at /usr/share/perl5/File/Slurp.pm line 506.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #13 from Jonathan Druart <[hidden email]> ---
Last patch pushed to master.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

Lucas Gass <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #14 from Lucas Gass <[hidden email]> ---
I'm not too sure whats going on here. I see this bug has a status of assigned
and its dependency, 25824, is set to NEW.

not backporting, yet.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

Jonathan Druart <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|25824                       |


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25824
[Bug 25824] DecreaseLoanHighHolds.t is still failing randomly 2
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #15 from Jonathan Druart <[hidden email]> ---
Hi Lucas,

The dependency was wrong.

I've pushed this patch for debugging purpose, it's not supposed to be
backported. The bug will remain opened until we found the reason of the
failure.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #16 from Jonathan Druart <[hidden email]> ---
Master_D9 #1399

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #17 from Jonathan Druart <[hidden email]> ---
The last failure uploaded the content of the page: https://gdf3.com/FBHWZ7YH

Which does contain the '<div id="login">' node...

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #18 from Jonathan Druart <[hidden email]> ---
Created attachment 107716
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107716&action=edit
Bug 25811: Try to fix the random failure caused by not finding id=login

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #19 from Victor Grousset/tuxayo <[hidden email]> ---
(In reply to Jonathan Druart from comment #17)
> The last failure uploaded the content of the page: https://gdf3.com/FBHWZ7YH
>
> Which does contain the '<div id="login">' node...

As the analysis of the failure happens after it, the missing elements can have
the time to be loaded.

Thanks for the patch, fingers crossed.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #20 from Jonathan Druart <[hidden email]> ---
(In reply to Jonathan Druart from comment #18)
> Created attachment 107716 [details] [review]
> Bug 25811: Try to fix the random failure caused by not finding id=login

Pushed to master.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #21 from Jonathan Druart <[hidden email]> ---
Koha_Master_U18 #871

12:20:17 koha_1       | #   Failed test 'OPAC interface authentication'
12:20:17 koha_1       | #   at t/db_dependent/selenium/authentication.t line
134.
12:20:17 koha_1       | An element could not be located on the page using the
given search parameters: //div[@id="login"],xpath at
t/db_dependent/selenium/authentication.t line 100.
12:20:17 koha_1       | # Looks like your test exited with 255 just after 2.
12:20:18 koha_1       | [10:20:18] t/db_dependent/selenium/authentication.t

https://snipboard.io/6dYKtk.jpg

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

Nick Clemens <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #22 from Nick Clemens <[hidden email]> ---
(In reply to Jonathan Druart from comment #21)

> Koha_Master_U18 #871
>
> 12:20:17 koha_1       | #   Failed test 'OPAC interface authentication'
> 12:20:17 koha_1       | #   at t/db_dependent/selenium/authentication.t line
> 134.
> 12:20:17 koha_1       | An element could not be located on the page using
> the given search parameters: //div[@id="login"],xpath at
> t/db_dependent/selenium/authentication.t line 100.
> 12:20:17 koha_1       | # Looks like your test exited with 255 just after 2.
> 12:20:18 koha_1       | [10:20:18] t/db_dependent/selenium/authentication.t
>
> https://snipboard.io/6dYKtk.jpg

The screen capture shows we are still logged in. Is it possible:
1 - That the mainpage has been cached and when we 'get' it we are still seeing
when we were logged in?
2 - That we are somehow being logged in by another test running at same time?
LDAP or Shib or something retaining a logged in cookie?
3 - Could we dump the patron info so we can see if it is this patron that has
not been logged out, or another patron that is logged in?

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25811] authentication.t is failing randomly

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25811

--- Comment #23 from Jonathan Druart <[hidden email]> ---
Yes Nick, you are right. And this is the first time it happens actually.
Previously we had a logged out screen and the test complained because
id="login" did not exist.
Now at least it makes sense!

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
12