跳至内容
菜单
此问题已终结
3 回复
3556 查看

While attempting to rebuild instance with new module added, the install log has the following:

2023-03-15 15:34:31,359 4 INFO xxxxx-from-master-7610128 odoo.service.server: 937 post-tests in 2567.13s, 997354 queries
2023-03-15 15:34:31,359 4 ERROR xxxxx-from-master-7610128 odoo.tests.runner: 0 failed, 1 error(s) of 2517 tests when loading database 'xxxxx-from-master-7610128'
2023-03-15 15:34:31,363 4 INFO xxxxxx-from-master-7610128 odoo.service.server: Initiating shutdown
2023-03-15 15:34:31,363 4 INFO xxxxx-from-master-7610128 odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
2023-03-15 15:34:31,865 4 INFO xxxxx-from-master-7610128 odoo.sql_db: ConnectionPool(used=0/count=0/max=16): Closed 5 connections
odoo-bin process returned error code 1. Please check install.log
 

If zero tests failed, yet there was an error, what is the error?  It is certainly not in the install.log.  Is there some other place errors are logged by the tests?

This is in a development branch that has been cloned down from our master that runs fine absent this module.


形象
丢弃
编写者

I guess I should note that I am running with the settings:
Install only my modules (does not include submodules)
Validate the test suite on new builds.
Presumably, I could disable the test suite, but that doesn't seem like a good idea.

编写者

Well that's interesting. Even though the "Branches" display comes up and says "Test Failed", I can still connect to it and my module is installed and the various elements from the models in the module are in place.
Could it be the problem is in the Odoo.sh interface and no tests have actually failed?

编写者 最佳答案

Still very frustrating, but I was eventually able to capture a log that allowed me to find the problem.

形象
丢弃
最佳答案

I ran into a similar issue a while back—"Test Failed" showing even though everything seemed to be working fine on the surface. In my case, it turned out the test error was triggered by an unhandled exception inside a related dependency that wasn’t even part of the module I was updating. Odoo.sh can sometimes be unclear with how it logs those. If you're just looking to rule things out, try isolating that module in a clean build with all logging levels enabled (including --log-level=test) to catch anything that might slip by.

Also random side note while digging through logs this morning—I took a short break and came across this fun little word puzzle game: 1word4pics.com

形象
丢弃
最佳答案

1. Try this code in odoo.conf file 

addons-path=path.../addons,path..../custom-addonsExample:addons_path = /home/cybrosys/odoo-17.0/addons,/home/cybrosys/odoo-17.0/custom_app


2. Add Parameters ; -c odoo.conf -u custom_module_name

形象
丢弃

My module is installed, and the different components from the models in the module are in their proper places, even if the "Branches" display indicates "Test Failed" when I connect to it. https://slice-master.io

相关帖文 回复 查看 活动
3
7月 24
5848
1
12月 22
3149
0
10月 22
2511
0
3月 21
3360
1
10月 24
1387