Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
1842 Vistas

Hello everyone,


I'm encountering an issue on Odoo.sh while creating a new branch in my Odoo project's development stage. Each attempt triggers an error message similar to this:


"odoo.tests.result: 2 failed, 0 error(s) of 1116 tests when loading database."


I've experimented with various methods, including forking from the main or staging branches, but the error persists. Oddly, this issue only arises in the development branch, even when I'm working on a completely new database.


Has anyone using Odoo.sh experienced this problem before? Any insights into what might be causing it or suggestions on how to resolve it would be greatly appreciated.


Thank you for your help and advice!

Avatar
Descartar
Mejor respuesta

Hi. I'm getting similar situation.

1 failed, 0 error(s) of 1421 tests when loading database

When I look at the build I get

FAIL: TestTranslationExport.test_export_translatable_resources
Traceback (most recent call last):
  File "/home/odoo/src/odoo/odoo/addons/base/tests/test_translate.py", line 360, in test_export_translatable_resources
    with self.assertNoLogs('odoo.tools.translate', "ERROR"):
  File "/usr/lib/python3.10/unittest/_log.py", line 75, in __exit__
    self._raiseFailure(
AssertionError: Unexpected logs found: ['ERROR:odoo.tools.translate:Failed to extract terms from /home/odoo/src/user/grt_view_invoice_button/models/ir_server_actions.py\nTraceback (most recent call last):\n  File "/home/odoo/src/odoo/odoo/tools/translate.py", line 1295, in _babel_extract_terms\n    for extracted in extract.extract(extract_method, src_file, keywords=extract_keywords, options=options):\n  File "/usr/lib/python3/dist-packages/babel/messages/extract.py", line 325, in extract\n    for lineno, funcname, messages, comments in results:\n  File "/usr/lib/python3/dist-packages/babel/messages/extract.py", line 418, in extract_python\n    for tok, value, (lineno, _), _, _ in tokens:\n  File "/usr/lib/python3.10/tokenize.py", line 523, in _tokenize\n    raise TokenError("EOF in multi-line statement", (lnum, 0))\ntokenize.TokenError: (\'EOF in multi-line statement\', (14, 0))']

Did you find an answer to your problem?

My module is a really small one with just a minor code change.

Avatar
Descartar
Autor Mejor respuesta

Today, I made several additional attempts to resolve this issue with no success, and I wanted to share the details of my efforts:

  1. Creating a New Project:
    • I started by creating a completely new project on Odoo.sh.
    • I attempted to fork a new branch from the main branch while it was in the development stage.
    • Unfortunately, I encountered the same error: "odoo.tests.result: 2 failed, 0 error(s) of 1116 tests when loading database."
    • 2024-01-09 [Timestamp] [Error]: No app found, it's possible that we are not on the home menu/app menu
      [Detailed Error Trace]
  2. Using Odoo.sh Interface:
    • I continued to experiment with different methods using the Odoo.sh interface, but the issue persisted.
  3. Command Line (CLI):
    • I also tried to create branches using the command line with 'git checkout -b "branchname"'.
    • Regrettably, the error remained consistent.
  4. GitHub Interface:
    • As a last resort, I attempted to create branches from the GitHub interface by forking both the main and staging branches.
    • To my disappointment, this also led to the same error.

I'm reaching out once again to seek assistance. Has anyone else using Odoo.sh encountered this particular problem, especially when trying various methods like I have?

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
abr 25
2093
2
ago 25
3076
1
mar 24
2144
2
oct 23
3334
0
feb 25
1249