Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
3548 Переглядів

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

Related Posts Відповіді Переглядів Дія
3
лип. 24
5842
1
груд. 22
3142
0
жовт. 22
2511
0
бер. 21
3359
1
жовт. 24
1379