https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44321 --- Comment #3 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- I tested both patches on a CI-like instance (Debian 13, MariaDB 11.8, Elasticsearch 8) starting from a state with no leftover records from earlier runs, with an empty background job queue. Without the patches: t/db_dependent/www/search_utf8.t fails tests 19, 25, 45, 51, 71 and 77 (all three record blocks), and each run leaves 6 biblios behind (414 -> 420). With both patches: the test passes on two consecutive runs and the number of biblios stays at 414. This also explains why the test seemed to pass on repeated runs: with the old clean_records the imported records stayed in the catalog and the index, so later runs found them. Only the first run on a clean state really tested indexing. Notes, none blocking: 1. clean_records: if no matched_biblionumber is found, search({ biblionumber => [] })->count == 0 is trivially true, so the "imported biblios deleted" test would pass without deleting anything. Consider testing that the list is not empty. 2. clean_records now needs load_records_ui to have run first (it uses $self->{agent}); worth a line in the POD. 3. _wait_for_jobs only calls diag on timeout, so a stuck queue shows up as a later, misleading failure. Consider failing there. 4. The fixed "sleep 2" for the Elasticsearch refresh is still a guess. An explicit refresh of the index would make it deterministic. 5. Only the Elasticsearch path was tested; the Zebra path (sleep 10) is unchanged. Still unexplained: why Jenkins only fails tests 71 and 77 and not all six. -- You are receiving this mail because: You are watching all bug changes.