Skip to Content

Name: [FIX] point_of_sale, pos_loyalty: make opening-control and next order coupon tours robust on slow runners

State: Failed finished in 159m

PR State: merged

PR Author: David Tran

PR Author Email:

PR: #1318

Committer: David Tran

Committer Email: david.tran@tvtmarine.com

Commit: 1f9f1aff399e3362f4acfac5dd2398a43bb30901

Description:

                                            [FIX] pos_loyalty: make the next order coupon tours robust on slow runners

PosLoyaltyTour11.1 reloads the page right after the receipt "done" synchronization
while it can still be in flight: the reloaded page replays the order, which
stays in the cache without new_coupon_info, and the Paid filter never reads it
again ("Next order coupon is missing"). The last step also read the paid order
once, while the navbar spinner it waited on is cleared by whichever concurrent
request ends first, so the order could still be missing from the model
(TypeError reading 'new_coupon_info'). PosLoyaltyTour6 has the same reload
after payment. Runbot build 225871 (subbuild 427841) failed on the first
attempt; build 225816 (subbuild 427570) failed attempts 1 and 2.

Wait for the synchronization to end before every reload, and make the last step
wait until the paid order carries the coupon information instead of reading it
once. Reproduced on core with latency injected in sync_from_ui, notify_synchronisation
and read_pos_orders: the tours failed before the fix and pass after it.

Signed-off-by: David Tran <david.tran@tvtmarine.com>
                                            

Branch: 19.0

Age:

Up-time:

Subbuilds Name State Detail
Build 428046 At install tests: from account to website_timesheet 133m Succeed Log
Build 428047 Post install tests: step install all modules 23m Succeed Log
Build 428048 Post install tests: from account to hr_recruitment_survey 164m Succeed Log
Build 428049 Post install tests: from hr_skills to phone_validation 295m Succeed Log
Build 428050 Post install tests: from point_of_sale to purchase_requisition_stock 219m Succeed Log
Build 428051 Post install tests: from purchase_stock to test_l10n_vn_viin_edi 159m Succeed Log
Build 428052 Post install tests: from test_mail to to_product_return_reason_stock 209m Succeed Log
Build 428053 Post install tests: from to_registration_email_blacklist to viin_approval_purpose_routing 154m Succeed Log
Build 428054 Post install tests: from viin_approval_sale to viin_product 204m Succeed Log
Build 428055 Post install tests: from viin_project to web_unsplash 119m Failed Log
Build 428056 Post install tests: from website to website_timesheet 114m Succeed Log
Create Date Level Message
10/23/2026 08:50:38 AM INFO
Updated repository Viindoo-tvtmaaddons
10/23/2026 08:50:38 AM INFO
Updated repository Viindoo-erponline-enterprise
10/23/2026 08:50:38 AM INFO
Updated repository Viindoo-branding
10/23/2026 08:50:38 AM INFO
Cloned repository Viindoo-odoo
10/23/2026 11:30:08 AM ERROR
Subbuild # 428055: odoo.addons.web.tests.test_js.WebSuite.test_unit_desktop.browser: [HOOT] Test "@viin_customizer/js/components/customizer_report/editor/customizer_report_editor_branch_popover/CustomizerReportEditor: the branch popover pushes the paper, never covers it/a box the push would move out of view is scrolled back by the least that shows it whole" failed: Failed assertion: 4. [toBeLessThan] expected value to be strictly less (the box does not end at the bottom of the visible editor) > Maximum: 1.500 > Received: 11
10/23/2026 11:30:08 AM ERROR
Subbuild # 428055: odoo.addons.web.tests.test_js.WebSuite.test_unit_desktop.browser: Some tests failed: see above for details Failed tests link: http://127.0.0.1:8069/web/tests?preset=desktop&id=74d7e366&debugTest=true&debug=assets
10/23/2026 11:30:08 AM ERROR
Subbuild # 428055: odoo.addons.web.tests.test_js: FAIL: WebSuite.test_unit_desktop Traceback (most recent call last): File "/data/build/rb-1f9f1af-225886/addons/web/tests/test_js.py", line 191, in test_unit_desktop self.browser_js(f'/web/tests?headless&loglevel=2&preset=desktop&timeout=15000{self.hoot_filters}', "", "", login='admin', timeout=5400, success_signal="[HOOT] Test suite succeeded", error_checker=unit_test_error_checker) File "/data/build/rb-1f9f1af-225886/odoo/tests/common.py", line 2582, in browser_js self.fail('%s\n\n%s' % (message, error)) AssertionError: Some js test failed Some tests failed: see above for details Failed tests link: http://127.0.0.1:8069/web/tests?preset=desktop&id=74d7e366&debugTest=true&debug=assets
10/23/2026 11:30:08 AM ERROR
Subbuild # 428055: odoo.tests.result: 1 failed, 0 error(s) of 729 tests when loading database 'rb-1f9f1af-225886-428055'