Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Connection to runbot build using ssh to debug
by
Vauxoo, Moisés López Calderón
Some times we have a error from travis tests but locally we can't reproduce it.
Currently runbot don't run tests but both environments (travis and runbot) are very similares. So maybe you can reproduce it using runbot.
Check the following example:
- https://github.com/OCA/server-tools/pull/898
For this hardest cases you can use directly ssh connection for your runbot build and run manually the tests.
NOTE: Please, don't stop the current process with the odoo running because the docker container will be stopped, better start a new one with other port.
I use the following commands:
Notice that I'm using a Port Forwarding from remote 18069 to local 18080 so you can open your browse with: http://localhost:18080 to connect for this second instance and test interface. --
Currently runbot don't run tests but both environments (travis and runbot) are very similares. So maybe you can reproduce it using runbot.
Check the following example:
- https://github.com/OCA/server-tools/pull/898
For this hardest cases you can use directly ssh connection for your runbot build and run manually the tests.
I use the following commands:
ssh -L 18080:localhost:18069 -p 8779 odoo@runbot2.odoo-community.org
cp -r ~/data_dir/filestore/openerp_template ~/data_dir/filestore/moylop260
createdb -T openerp_template moylop260
~/odoo-9.0/odoo.py -d moylop260 --db-filter= moylop260 --xmlrpc-port=18069 --stop-after-init -i MODULE_TO_TEST --test-enable
Happy debug and enjoy!
Moisés López Calderón
Vauxoo - OpenERP's Gold Partner
Mobile: (+521) 477-752-22-30
Office: (+52) 477-773-33-46
web: http://www.vauxoo.com
Vauxoo - OpenERP's Gold Partner
Mobile: (+521) 477-752-22-30
Office: (+52) 477-773-33-46
web: http://www.vauxoo.com
twitter: @vauxoo
@moylop260
hangout: moylop260@vauxoo.com
Follow-Ups
-
Re: Connection to runbot build using ssh to debug
byVauxoo, Moisés López Calderón -
Re: Connection to runbot build using ssh to debug
byTecnativa. S. L., Jairo Llopis