[Koha-bugs] [Bug 36277] t/db_dependent/api/v1/transfer_limits.t is failing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 13 14:35:05 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36277

--- Comment #4 from Jonathan Druart <jonathan.druart at gmail.com> ---
apt install stress
stress --cpu 16 (or the number of CPUs you have)

Run the following script to inject a lot of libraries

use t::lib::TestBuilder;
my $builder = t::lib::TestBuilder->new;
for my $i ( 1..100000 ) {
    say $i;
    $builder->build_object({class => 'Koha::Libraries'});
}


% time prove t/db_dependent/api/v1/transfer_limits.t
t/db_dependent/api/v1/transfer_limits.t .. 3/4     # Inactivity timeout
    #   Failed test 'POST
//hN26548B2h7s3DR9jWZ55OcQnBYvz_olhgm6YAKWU8rRGvCuHOkjM:thePassword123@/api/v1/transfer_limits/batch'
   #   at t/db_dependent/api/v1/transfer_limits.t line 210.

    #   Failed test 'SWAGGER3.2.1'
    #   at t/db_dependent/api/v1/transfer_limits.t line 210.
    #          got: undef
    #     expected: '201'
t/db_dependent/api/v1/transfer_limits.t .. 4/4     # Looks like you failed 2
tests of 26.

#   Failed test 'batch_add() and batch_delete() tests'
#   at t/db_dependent/api/v1/transfer_limits.t line 269.
# Looks like you failed 1 test of 4.
t/db_dependent/api/v1/transfer_limits.t .. Dubious, test returned 1 (wstat 256,
0x100)
Failed 1/4 subtests 

Test Summary Report
-------------------
t/db_dependent/api/v1/transfer_limits.t (Wstat: 256 Tests: 4 Failed: 1)
  Failed test:  4
  Non-zero exit status: 1
Files=1, Tests=4, 156 wallclock secs ( 0.03 usr  0.00 sys + 105.04 cusr  6.17
csys = 111.24 CPU)
Result: FAIL

real    2m36.183s
user    1m45.121s
sys     0m6.208s


No idea what to do then...
There might be a perf regression somewhere.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list