Bug 21671

Summary: Koha/Patron/Modifications.t is failing randomly
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Test SuiteAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Marcel de Rooy <m.de.rooy>
Severity: normal    
Priority: P5 - low CC: lucas, m.de.rooy, martin.renvoize, nick
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
19.05.00, 18.11.06, 18.05.13
Bug Depends on:    
Bug Blocks: 25551    
Attachments: Bug 21671: Prevent Modifications.t to fail randomly
Bug 21671: Prevent Modifications.t to fail randomly
Bug 21671: Prevent Modifications.t to fail randomly

Description Jonathan Druart 2018-10-25 17:39:11 UTC
On 18.05_D9 (#96)

koha_1       |     # Looks like you planned 20 tests but ran 9.
koha_1       | 
koha_1       | #   Failed test 'approve tests'
koha_1       | #   at t/db_dependent/Koha/Patron/Modifications.t line 259.
koha_1       | [repeatable not set for attribute type and tried to add a new attribute for the same code]# Looks like your test exited with 255 just after 5.
koha_1       | [15:46:57] t/db_dependent/Koha/Patron/Modifications.t

The exception does not give us enough information to debug this.
Comment 1 Jonathan Druart 2018-11-08 16:18:57 UTC
Same today on 18.05_U18 (#112)
Comment 2 Jonathan Druart 2018-11-12 18:22:08 UTC
Created attachment 82238 [details] [review]
Bug 21671: Prevent Modifications.t to fail randomly

If repeatable is set to 0 by TestBuilder, the tests will fail with:
t/db_dependent/Koha/Patron/Modifications.t .. 1/6     # Looks like you planned 20 tests but ran 9.

 #   Failed test 'approve tests'
 #   at t/db_dependent/Koha/Patron/Modifications.t line 259.
[repeatable not set for attribute type and tried to add a new attribute for the same code]# Looks like your test exited with 255 just after 5.
Comment 3 Liz Rea 2019-04-29 16:56:06 UTC
Created attachment 89038 [details] [review]
Bug 21671: Prevent Modifications.t to fail randomly

If repeatable is set to 0 by TestBuilder, the tests will fail with:
t/db_dependent/Koha/Patron/Modifications.t .. 1/6     # Looks like you planned 20 tests but ran 9.

 #   Failed test 'approve tests'
 #   at t/db_dependent/Koha/Patron/Modifications.t line 259.
[repeatable not set for attribute type and tried to add a new attribute for the same code]# Looks like your test exited with 255 just after 5.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
I couldn't get the test to fail, but it still passes with this change and if Jonathan thinks it needs it, it probably does.
Comment 4 Marcel de Rooy 2019-05-03 09:23:31 UTC
Created attachment 89300 [details] [review]
Bug 21671: Prevent Modifications.t to fail randomly

If repeatable is set to 0 by TestBuilder, the tests will fail with:
t/db_dependent/Koha/Patron/Modifications.t .. 1/6     # Looks like you planned 20 tests but ran 9.

 #   Failed test 'approve tests'
 #   at t/db_dependent/Koha/Patron/Modifications.t line 259.
[repeatable not set for attribute type and tried to add a new attribute for the same code]# Looks like your test exited with 255 just after 5.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 5 Nick Clemens (kidclamp) 2019-05-07 11:44:31 UTC
Awesome work all!

Pushed to master for 19.05
Comment 6 Martin Renvoize 2019-05-08 15:41:55 UTC
Pushed to 18.11.x for 18.11.06
Comment 7 Lucas Gass 2019-05-30 13:55:20 UTC
backported to 18.05.x for 18.05.13