Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Connection to runbot build using ssh to debug

by
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 <moylop260@vauxoo.com>:
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.

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 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

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
web: http://www.vauxoo.com
twitter: @vauxoo
聽 聽 聽 聽 聽 聽@moylop260 聽 聽 聽 聽 聽聽

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe




--
Jairo Llopis

Reference