Contributors mailing list archives

Browse archives


Re: Connection to runbot build using ssh to debug

Tecnativa. S. L., Jairo Llopis
- 17/07/2017 09:31:46
Great post Mois茅s, I feel this should be in the contribution guidelines or wiki, instead of here in some random post in the mailing list, it's very valuable information 馃槉

2017-07-13 17:53 GMT+02:00 Moises Lopez <>:
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:

For this hardest cases you can use directly ssh connection for your runbot build and run manually the tests.

Im谩genes integradas 1

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:
ssh -L 18080:localhost:18069 -p 8779
cp -r ~/data_dir/filestore/openerp_template ~/data_dir/filestore/moylop260
createdb -T openerp_template moylop260
~/odoo-9.0/ -d moylop260 --db-filter= moylop260 --xmlrpc-port=18069 --stop-after-init -i MODULE_TO_TEST --test-enable

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.
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
twitter: @vauxoo
聽 聽 聽 聽 聽 聽@moylop260 聽 聽 聽 聽 聽聽

Post to:

Jairo Llopis