Bug 25722

Summary: ActionLogs.t is failing randomly
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Test SuiteAssignee: Chris Cormack <chris>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: victor
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 25551    

Description Jonathan Druart 2020-06-12 07:52:39 UTC
I think it's the first time we see this one. It is very weird as logaction is super simple.

Master_D10 #265

18:29:18 koha_1       |     #   Failed test 'search() return right number of action logs'
18:29:18 koha_1       |     #   at t/db_dependent/Koha/ActionLogs.t line 72.
18:29:18 koha_1       |     #          got: '2'
18:29:18 koha_1       |     #     expected: '1'
18:29:18 koha_1       |     # Looks like you failed 1 test of 1.
18:29:18 koha_1       | 
18:29:18 koha_1       | #   Failed test 'search() tests'
18:29:18 koha_1       | #   at t/db_dependent/Koha/ActionLogs.t line 75.
18:29:18 koha_1       | # Looks like you failed 1 test of 3.
18:29:18 koha_1       | [16:29:18] t/db_dependent/Koha/ActionLogs.t 

I don't manage to make it fail locally.
Comment 1 Victor Grousset/tuxayo 2020-06-12 18:55:51 UTC
Actually it recently failed on 19.05.x also.

https://jenkins.koha-community.org/view/19.05/job/Koha_19.05_D9/229/consoleText
koha_1       |     #   Failed test 'search() return right number of action logs'
koha_1       |     #   at t/db_dependent/Koha/ActionLogs.t line 72.
koha_1       |     #          got: '2'
koha_1       |     #     expected: '1'
koha_1       |     # Looks like you failed 1 test of 1.
koha_1       | 
koha_1       | #   Failed test 'search() tests'
koha_1       | #   at t/db_dependent/Koha/ActionLogs.t line 75.
koha_1       | # Looks like you failed 1 test of 3.
koha_1       | [14:04:13] t/db_dependent/Koha/ActionLogs.t ........................................ 
koha_1       | Dubious, test returned 1 (wstat 256, 0x100)
koha_1       | Failed 1/3 subtests 


But I couldn't reproduce locally after 10500 runs with koha-testing-docker
KOHA_IMAGE=19.05-stretch ; ku-md9