Giter VIP home page Giter VIP logo

dob's People

Contributors

azoellner avatar broeking avatar codingforfun avatar fkantelberg avatar manengel avatar mathiasfrancke avatar nwinkelstraeter avatar ortlam avatar ualbaghdady avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dob's Issues

Setup did not work

PS C:\Users\<my user>\Git\dop> ./setup.sh
PS C:\Users\<my user>\Git\dop> docker-compose build
[+] Building 17.9s (1/1) FINISHED
 => ERROR [internal] booting buildkit                                                         17.9s
 => => pulling image moby/buildkit:buildx-stable-1                                            17.1s
 => => creating container buildx_buildkit_default                                              0.8s
------
 > [internal] booting buildkit:
------
Error response from daemon: crun: creating cgroup directory `/sys/fs/cgroup/systemd/docker/buildx/li
bpod-b62494e7f96ad4d80e23ee9ecbdb05ae847da3a7d32c0255b519e7fbc33c6bd7`: No such file or directory: O
CI runtime attempted to invoke a command that was not found

Different branches

Hello,
I would be interested why dob is not separated in different branches for various Odoo versions.
Thank you for the information.

How to run module tests?

I have Odoo working with this tool perfectly. If I run the tests with this command it works correctly:

docker compose run --rm odoo odoo run --stop-after-init --test-tags /pos_default_partner --test-enable -i pos_default_partner

But when run the tests with:

docker compose run --rm odoo odoo test pos_default_partner

However, when I read the log I get the following message:

2023-11-17 16:24:33,200 1 WARNING ? py.warnings: <frozen importlib._bootstrap>:914: ImportWarning: AddonsHook.find_spec() not found; falling back to find_module()
  File "/usr/local/bin/dob", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/site-packages/doblib/__main__.py", line 136, in main
    sys.exit(CIEnvironment(args.cfg).test(left))
  File "/usr/local/lib/python3.10/site-packages/doblib/ci.py", line 209, in test
    result = pytest.main()
  File "/usr/local/lib/python3.10/site-packages/_pytest/config/__init__.py", line 169, in main
    ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
  File "/usr/local/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__
    return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
  File "/usr/local/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/local/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall
    res = hook_impl.function(*args)
  File "/usr/local/lib/python3.10/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/usr/local/lib/python3.10/site-packages/_pytest/main.py", line 267, in wrap_session
    config._do_configure()
  File "/usr/local/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1053, in _do_configure
    self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
  File "/usr/local/lib/python3.10/site-packages/pluggy/_hooks.py", line 514, in call_historic
    res = self._hookexec(self.name, self._hookimpls, kwargs, False)
  File "/usr/local/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/local/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall
    res = hook_impl.function(*args)
  File "/usr/local/lib/python3.10/site-packages/_pytest/faulthandler.py", line 25, in pytest_configure
    import faulthandler

========================= test session starts ========================= 
platform linux -- Python 3.10.13, pytest-7.4.3, pluggy-1.3.0
rootdir: /srv/odoo/odoo
plugins: odoo-1.0.0, anyio-3.7.1, cov-4.1.0
collected 0 items                                                                                                                                                     

=========================  no tests ran in 0.00s ========================= 
ERROR: file or directory not found: pos_default_partner

Debug mode is not activated

Environment:

Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

Context:

I follow readme executing:

./setup.sh
docker-compose build
docker-compose run --rm odoo odoo init
docker-compose run --rm odoo odoo update # To see how be executed
docker-compose up

In this way I have an Odoo instance running with no issue

I execute docker-compose down -v and create my .vscode following this guide

Problem

Try to run with F5 from vscode but no debugger session is started.

Checks

If execute command of tasks.json Odoo is started with no issue too.
I double check if have debugpy installed and ports opened

tcp        0      0 127.0.0.1:8072          0.0.0.0:*               ESCUCHAR    164276/docker-proxy 
tcp        0      0 127.0.0.1:8069          0.0.0.0:*               ESCUCHAR    164289/docker-proxy 
tcp        0      0 127.0.0.1:6543          0.0.0.0:*               ESCUCHAR    164170/docker-proxy 
tcp        0      0 127.0.0.1:5678          0.0.0.0:*               ESCUCHAR    164302/docker-proxy 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.