Bug 21670 - t/db_dependent/Plugins.t is failing randomly on Jenkins
Summary: t/db_dependent/Plugins.t is failing randomly on Jenkins
Status: ASSIGNED
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low major (vote)
Assignee: Tomás Cohen Arazi
QA Contact: Testopia
URL:
Keywords:
: 25550 (view as bug list)
Depends on:
Blocks: 25551
  Show dependency treegraph
 
Reported: 2018-10-25 17:09 UTC by Jonathan Druart
Modified: 2021-11-24 08:32 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
RM NOTE: Not mark as pushed yet - only a debug patch has been pushed.
Version(s) released in:


Attachments
Bug 21670: Add debug to Plugins.t (1.98 KB, patch)
2021-08-18 14:51 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2018-10-25 17:09:35 UTC
On run #72, Koha_Master_U18 failed:

koha_1       | Could not unlink /tmp/xRRc7ht/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm.pm: No such file or directory at /kohadevbox/koha/Koha/Plugins/Handler.pm line 105.
koha_1       | 
koha_1       | #   Failed test 'Koha::Plugins::Handler::delete works correctly.'
koha_1       | #   at t/db_dependent/Plugins.t line 127.
koha_1       | # Looks like you failed 1 test of 39.
koha_1       | [15:24:05] t/db_dependent/Plugins.t ................................................ 
koha_1       | Dubious, test returned 1 (wstat 256, 0x100)
koha_1       | Failed 1/39 subtests 


We requested another run and it passes (#73), same node (Docker_3)
Comment 1 Jonathan Druart 2018-10-25 18:47:48 UTC
And it fails, almost at the same time, for Koha_18.05_U18 on Docker_2 (#98)

koha_1       | Could not unlink /tmp/B8dlalp/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm.pm: No such file or directory at /kohadevbox/koha/Koha/Plugins/Handler.pm line 105.
koha_1       | 
koha_1       | #   Failed test 'Koha::Plugins::Handler::delete works correctly.'
koha_1       | #   at t/db_dependent/Plugins.t line 127.
koha_1       | # Looks like you failed 1 test of 39.
koha_1       | [17:21:16] t/db_dependent/Plugins.t
Comment 2 Jonathan Druart 2020-06-03 09:54:10 UTC
*** Bug 25550 has been marked as a duplicate of this bug. ***
Comment 3 Jonathan Druart 2020-08-06 09:59:31 UTC
20.05_D10 #53

00:11:34 koha_1       | Could not unlink /tmp/3KJViXB/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm.pm: No such file or directory at /kohadevbox/koha/Koha/Plugins/Handler.pm line 106.
00:11:34 koha_1       | 
00:11:34 koha_1       | #   Failed test 'Koha::Plugins::Handler::delete works correctly.'
00:11:34 koha_1       | #   at t/db_dependent/Koha/Plugins/Plugins.t line 237.
00:11:34 koha_1       | rollback ineffective with AutoCommit enabled at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1651.
00:11:34 koha_1       | # Looks like you failed 1 test of 51.
00:11:35 koha_1       | [22:11:35] t/db_dependent/Koha/Plugins/Plugins.t ................................... 
00:11:35 koha_1       | Dubious, test returned 1 (wstat 256, 0x100)
00:11:35 koha_1       | Failed 1/51 subtests 
00:11:47 db_1         | 2020-07-31 22:11:47 70 [Warning] Aborted connection 70 to db: 'koha_kohadev' user: 'koha_kohadev' host: '192.168.48.6' (Got an error reading communication packets)
Comment 4 Jonathan Druart 2020-08-06 10:02:58 UTC
> rollback ineffective with AutoCommit enabled at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1651.

This superfluous rollback call is removed by
  commit 88506d7bb6958a49969f737a8bc41afa8536c554
  Bug 26138: Make Koha::Plugins->call return consistent value
But maybe we will need to create a separate bug report for stable branches.
Comment 5 Jonathan Druart 2020-09-03 09:33:12 UTC
Koha_Master_U16 #57 (Docker_2)

10:56:49 koha_1       | Could not unlink /tmp/v0mm3n9/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm.pm: No such file or directory at /kohadevbox/koha/Koha/Plugins/Handler.pm line 106.
10:56:49 koha_1       | 
10:56:49 koha_1       | #   Failed test 'Koha::Plugins::Handler::delete works correctly.'
10:56:49 koha_1       | #   at t/db_dependent/Koha/Plugins/Plugins.t line 270.
10:56:49 koha_1       | # Looks like you failed 1 test of 53.
10:56:49 koha_1       | [08:56:49] t/db_dependent/Koha/Plugins/Plugins.t ................................... 
10:56:49 koha_1       | Dubious, test returned 1 (wstat 256, 0x100)
10:56:49 koha_1       | Failed 1/53 subtests
Comment 6 Jonathan Druart 2021-04-14 09:24:10 UTC
D11 #259

11:07:43 db_1         | 2021-04-14  9:07:43 270 [Warning] Aborted connection 270 to db: 'koha_kohadev' user: 'koha_kohadev' host: '192.168.240.4' (Got timeout reading communication packets)
11:07:51 koha_1       | Could not unlink /tmp/OVUj_ik/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm.pm: No such file or directory at /kohadevbox/koha/Koha/Plugins/Handler.pm line 107.
11:07:51 koha_1       | 
11:07:51 koha_1       | #   Failed test 'Koha::Plugins::Handler::delete works correctly.'
11:07:51 koha_1       | #   at t/db_dependent/Koha/Plugins/Plugins.t line 270.
11:07:56 koha_1       | # Looks like you failed 1 test of 53.
11:07:56 koha_1       | [09:07:56] t/db_dependent/Koha/Plugins/Plugins.t ................................... 
11:07:56 koha_1       | Dubious, test returned 1 (wstat 256, 0x100)

Don't know if the db error is related.
Comment 7 Jonathan Druart 2021-05-05 07:32:17 UTC
U20 #98 on Docker_2
Comment 8 Jonathan Druart 2021-05-28 06:23:10 UTC
Master_D9 1668 Docker_1

Either we fix or we remove, it's getting painful.
Comment 9 Jonathan Druart 2021-08-18 13:06:20 UTC
Master_D11 367 Docker_1
Comment 10 Jonathan Druart 2021-08-18 14:51:10 UTC
Created attachment 123963 [details] [review]
Bug 21670: Add debug to Plugins.t

It's failing randomly (at least on Jenkins, cannot recreate locally).
Maybe the plugin is not actually installed?
Comment 11 Jonathan Druart 2021-08-18 14:51:48 UTC
What about pushing this patch to get a bit more info? Do you think we should add more? If so, which ones?
Comment 12 Tomás Cohen Arazi 2021-08-18 15:39:02 UTC
(In reply to Jonathan Druart from comment #11)
> What about pushing this patch to get a bit more info? Do you think we should
> add more? If so, which ones?

Yes, please!
Comment 13 Jonathan Druart 2021-08-19 08:01:35 UTC
Pushed to master.
Comment 14 Jonathan Druart 2021-11-24 08:32:31 UTC
16:30:40 koha_1       | Could not unlink /tmp/7LgBZuL/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm.pm: No such file or directory at /kohadevbox/koha/Koha/Plugins/Handler.pm line 107.
16:30:40 koha_1       | 
16:30:40 koha_1       | #   Failed test 'Koha::Plugins::Handler::delete works correctly (pass 1)'
16:30:40 koha_1       | #   at t/db_dependent/Koha/Plugins/Plugins.t line 322.
16:30:40 koha_1       | # Looks like you failed 1 test of 61.
16:30:40 koha_1       | [15:26:45] t/db_dependent/Koha/Plugins/Plugins.t ................................... 
16:30:40 koha_1       | Dubious, test returned 1 (wstat 256, 0x100)
16:30:40 koha_1       | Failed 1/61 subtests 


Koha_Master/1830