https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23998 --- Comment #7 from David Nind <david@davidnind.com> --- Thanks for having a look at this again after all this time! The test pass when run by itself: prove t/db_dependent/api/v1/messages.t t/db_dependent/api/v1/messages.t .. 2/5 DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Duplicate entry '8' for key 'PRIMARY' at /kohadevbox/koha/Koha/Object.pm line 174 t/db_dependent/api/v1/messages.t .. ok All tests successful. Files=1, Tests=5, 7 wallclock secs ( 0.02 usr 0.00 sys + 5.72 cusr 1.11 csys = 6.85 CPU) Result: PASS (After applying the patch I did a yarn api:bundle and restart_all) However, running qa script complains when I run it 8-(. qa Tag v25.05.00-1 found in /kohadevbox/koha — checking out branch main in /kohadevbox/qa-test-tools Already on 'main' Your branch is up to date with 'origin/main'. testing 1 commit(s) (applied to dbbc1aa '3e Bug 41566: Restore item groups ft') Processing files [RUNNING] Koha/Patron/Message.pm [RUNNING] Koha/REST/V1/Messages.pm [RUNNING] api/v1/swagger/definitions/message.yaml [RUNNING] api/v1/swagger/paths/messages.yaml [RUNNING] api/v1/swagger/swagger.yaml [RUNNING] t/db_dependent/api/v1/messages.t [PASS] api/v1/swagger/paths/messages.yaml [FAIL] api/v1/swagger/definitions/message.yaml [PASS] api/v1/swagger/swagger.yaml [PASS] Koha/Patron/Message.pm [FAIL] Koha/REST/V1/Messages.pm [FAIL] t/db_dependent/api/v1/messages.t Result: [PASS] Koha/Patron/Message.pm [FAIL] Koha/REST/V1/Messages.pm FAIL tidiness File is not tidy, please run `perl misc/devel/tidy.pl Koha/REST/V1/Messages.pm` [FAIL] api/v1/swagger/definitions/message.yaml FAIL new_line_at_the_end_of_file Missing new line at the end of file, make sure your editor correctly reads .editorconfig ('insert_final_newline = true'). See bug 40541. [PASS] api/v1/swagger/paths/messages.yaml [PASS] api/v1/swagger/swagger.yaml [FAIL] t/db_dependent/api/v1/messages.t FAIL file_permissions File must have the exec flag FAIL forbidden_patterns forbidden pattern: Incorrect license statement (using postal address), may be a false positive if the file is coming from outside Koha (bug 24545) (line 16) FAIL test_no_warnings 'use Test::NoWarnings' must be present in this test file. FAIL tidiness File is not tidy, please run `perl misc/devel/tidy.pl t/db_dependent/api/v1/messages.t` Processing additional checks PASS! * Was this bug sponsored by anyone? Running tests (1) * Proving /kohadevbox/koha/t/db_dependent/api/v1/messages.t FAIL # Failed test 'Two messages returned' # at /kohadevbox/koha/t/db_dependent/api/v1/messages.t line 94. # got: '3' # expected: '2' # Looks like you failed 1 test of 20. # Failed test 'list() tests' # at /kohadevbox/koha/t/db_dependent/api/v1/messages.t line 112. DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Duplicate entry '18' for key 'PRIMARY' at /kohadevbox/koha/Koha/Object.pm line 174 # Looks like you failed 1 test of 5. /kohadevbox/koha/t/db_dependent/api/v1/messages.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/5 subtests Test Summary Report ------------------- /kohadevbox/koha/t/db_dependent/api/v1/messages.t (Wstat: 256 (exited 1) Tests: 5 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=1, Tests=5, 7 wallclock secs ( 0.01 usr 0.00 sys + 5.92 cusr 1.18 csys = 7.11 CPU) Result: FAIL -- You are receiving this mail because: You are watching all bug changes.