Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Connection to runbot build using ssh to debug

by
Vauxoo, Moisés López Calderón
- 17/07/2017 08:54:46
:) 

On Mon, Jul 17, 2017 at 2:53 AM Jairo Llopis <jairo.llopis@tecnativa.com> wrote:
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

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

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

Reference