Name: [FIX] test_base_automation: deflake custom reference field tour

State: Failed finished in 144m

PR State: merged

PR Author: Roy Le

PR Author Email:

PR: #1259

Committer: Roy Le

Committer Email: roy.le@viindoo.com

Commit: 6bdc500205154ffb3a98c957defd0c784ac70860

Description:

                                            [FIX] test_base_automation: deflake custom reference field tour

Switching the trigger from on_stage_set to on_tag_set swaps the relation
of trg_field_ref through an onchange round-trip. The tour could open the
autocomplete dropdown before that round-trip completed: it then listed
the records of the previous model and never refreshed, because the
(empty) field value did not change so the AutoComplete never closes it.
The guard added by ca1c63e363ce does not help: its descendant :not()
selector matches any child element and passes immediately.

Retry the second dropdown assertion: close (Escape) and reopen the
dropdown until the relation switch has landed, with a 10s cap.
Reproduced deterministically by delaying _compute_trg_field_ref by
500ms; the reworked tour passes under the same delay.
                                            

Branch: 17.0

Age:

Up-time:

Subbuilds Name State Detail
Build 403787 At install tests: from account to website_twitter 98m Succeed Log
Build 403788 Post install tests: step install all modules 43m Succeed Log
Build 403789 Post install tests: from account to hr_recruitment_survey 94m Succeed Log
Build 403790 Post install tests: from hr_skills to phone_validation 79m Succeed Log
Build 403791 Post install tests: from point_of_sale to purchase_requisition_stock 88m Succeed Log
Build 403792 Post install tests: from purchase_stock to test_lint 94m Succeed Log
Build 403793 Post install tests: from test_mail to to_purchase_line_numbering 99m Failed Log
Build 403794 Post install tests: from to_purchase_order_advance to viin_approval_purpose_routing 134m Succeed Log
Build 403795 Post install tests: from viin_approval_sale to viin_product_approval_marketplace 94m Succeed Log
Build 403796 Post install tests: from viin_product_approval_marketplace_website_sale to web_unsplash 89m Succeed Log
Build 403797 Post install tests: from website to website_twitter 104m Succeed Log
Create Date Level Message
08/14/2026 09:55:47 INFO
Updated repository Viindoo-tvtmaaddons
08/14/2026 09:55:47 INFO
Updated repository Viindoo-erponline-enterprise
08/14/2026 09:55:47 INFO
Updated repository Viindoo-branding
08/14/2026 09:55:47 INFO
Cloned repository Viindoo-odoo
08/14/2026 12:21:01 ERROR
Subbuild # 403793: odoo.tests.suite: ERROR: setUpClass (odoo.addons.to_odoo_module.tests.test_download_apps.TestDownloadApps) Traceback (most recent call last): File "/data/build/Viindoo-tvtmaaddons-17.0/to_git/models/git_branch.py", line 227, in _checkout git.fetch( File "/home/nvq1xbwiguuu/.local/lib/python3.10/site-packages/git/cmd.py", line 1116, in <lambda> return lambda *args, **kwargs: self._call_process(name, *args, **kwargs) File "/home/nvq1xbwiguuu/.local/lib/python3.10/site-packages/git/cmd.py", line 1789, in _call_process return self.execute(call, **exec_kwargs) File "/data/build/Viindoo-tvtmaaddons-17.0/to_git/helper.py", line 365, in execute return super().execute(*args, **kwargs) File "/home/nvq1xbwiguuu/.local/lib/python3.10/site-packages/git/cmd.py", line 1579, in execute raise GitCommandError(redacted_command, status, stderr_value, stdout_value) git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git fetch --depth=1 --jobs=32 git@github.com:Viindoo/test_private.git 13.0:13.0 stderr: 'Connection to github.com closed by remote host. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/data/build/Viindoo-tvtmaaddons-17.0/to_odoo_module/tests/test_download_apps.py", line 24, in setUpClass git_branches.checkout() File "/data/build/Viindoo-tvtmaaddons-17.0/to_git/helper.py", line 293, in wrapper return method(self, *args, **kwargs) File "/data/build/Viindoo-tvtmaaddons-17.0/to_git/models/git_branch.py", line 271, in checkout self._threaded_checkout() File "/data/build/Viindoo-tvtmaaddons-17.0/to_base/helper/multi_threading.py", line 445, in threaded return _run_unthreaded(recordset, *args, **kwargs) File "/data/build/Viindoo-tvtmaaddons-17.0/to_base/helper/multi_threading.py", line 297, in _run_unthreaded return method(recordset, *args, **kwargs) File "/data/build/Viindoo-tvtmaaddons-17.0/to_git/helper.py", line 293, in wrapper return method(self, *args, **kwargs) File "/data/build/Viindoo-tvtmaaddons-17.0/to_git/models/git_branch.py", line 267, in _threaded_checkout return self._checkout() File "/data/build/Viindoo-tvtmaaddons-17.0/to_git/helper.py", line 293, in wrapper return method(self, *args, **kwargs) File "/data/build/Viindoo-tvtmaaddons-17.0/to_git_odoo_version/models/git_branch.py", line 163, in _checkout checked_out_branches = super(GitBranch, self)._checkout() File "/data/build/Viindoo-tvtmaaddons-17.0/to_git/helper.py", line 293, in wrapper return method(self, *args, **kwargs) File "/data/build/Viindoo-tvtmaaddons-17.0/to_git/models/git_branch.py", line 244, in _checkout raise UserError(message) odoo.exceptions.UserError: Failed to fetch data from the remote! Please make sure that you have a working network connection, the repository exists and you have the correct access rights. Cmd('git') failed due to: exit code(128) cmdline: git fetch --depth=1 --jobs=32 git@github.com:Viindoo/test_private.git 13.0:13.0 stderr: 'Connection to github.com closed by remote host. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.'
08/14/2026 12:21:01 ERROR
Subbuild # 403793: odoo.tests.result: 0 failed, 1 error(s) of 2125 tests when loading database 'rb-6bdc500-223886-403793'