Summary: | Koha/Database/Commenter.t is failing if the DB has been upgraded | ||
---|---|---|---|
Product: | Koha | Reporter: | Jonathan Druart <jonathan.druart> |
Component: | Test Suite | Assignee: | Marcel de Rooy <m.de.rooy> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | fridolin.somers |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
23.11.00,23.05.04,22.11.11
|
|
Circulation function: | |||
Bug Depends on: | 29093, 32334 | ||
Bug Blocks: | 34841 | ||
Attachments: |
Bug 34843: Fix database comment inconsistency on toc_request
Bug 34843: Fix database comment inconsistency on toc_request |
Description
Jonathan Druart
2023-09-20 12:27:04 UTC
Will have a look (In reply to Jonathan Druart from comment #0) > To recreate: > root@kohadevbox:koha$ perl /kohadevbox/misc4dev/run_tests.pl > --run-db-upgrade-only > Cant reproduce this right away in Koha. Did new install on current master too. This may need some specific context? SQL version ? Other specifics ? Note that Commenter.t also passes with me if I completely remove all data by drop / create db / run kohastructure.sql (In reply to Marcel de Rooy from comment #2) > (In reply to Jonathan Druart from comment #0) > > To recreate: > > root@kohadevbox:koha$ perl /kohadevbox/misc4dev/run_tests.pl > > --run-db-upgrade-only > > > > Cant reproduce this right away in Koha. Did new install on current master > too. > This may need some specific context? > SQL version ? > Other specifics ? This is in the context of bug 34841. The --run-db-upgrade-only will reset the DB to 19.11.00 (using a dump that is present in the misc4dev repo), then run the DB upgrade process, twice. And the test suite will eventually run on top of that. Here Commenter.t is failing when it's run after the 19.11.00 DB reset+upgrade x 2 I guess this is coming from COMMENTs missing from atomic updates, when we added the columns. Created attachment 156030 [details] [review] Bug 34843: Fix database comment inconsistency on toc_request Bug 29093 had a dbrev without comment, but added comment to kohastructure. Test plan: Check (or remove) comment on article_requests.toc_request. Run dbrev. Check if comment was added (if you removed). Run t/db/Koha/Database/Commenter.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Created attachment 156033 [details] [review] Bug 34843: Fix database comment inconsistency on toc_request Bug 29093 had a dbrev without comment, but added comment to kohastructure. Test plan: Check (or remove) comment on article_requests.toc_request. Run dbrev. Check if comment was added (if you removed). Run t/db/Koha/Database/Commenter.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Pushed to master for 23.11. Nice work everyone, thanks! Pushed to 23.05.x for 23.05.04 Nice work everyone! Pushed to oldstable for 22.11.x |