odoo / odoo-extra

unsupported addons (runbot, document_fs)
117 stars 245 forks source link

After I run a test which “fails” I can’t see any log that shows me what is wrong #111

Closed andrewyova closed 7 years ago

andrewyova commented 7 years ago

--------------------------------------------------------How I installed Runbot--------------------------------------------

  1. Sudo apt-get install -y python-matplotlib
  2. Sudo apt-get install -y font-manager After finish install i switch user - - > switch user to “odoo9c” - > mine
  3. Mkdir ~/.ssh
  4. Chmod 700 ~/.ssh
  5. Ssh-keygen -t rsa -b 4096 -C “myemail@email.com” I insert keygen at my dir /opt/odoo/odoo9c/.ssh/id_rsa After insert i leave passphrase empty Open ssh key - - > cat /opt/odoo9c/.ssh/id_rsa.pub I copy that key to add my ssh key at gitlab Ssh - T git@gitlab.com After finish i download runbot at https://github.com/odoo/odoo-extra

I login using my odoo user : odoo9c at open odoo local like this /opt/odoo9c/openerp-server --addons-path=/opt/odoo9c/addons, --xmlrpc-port 8100 (I add runbot addons at /opt/odoo9c/addons) I open localhost:8100 and create new database called runbot

After create and login i start install app (base setup,web,runbot) this is a setting repository on runbot that i create :

i save it and update and i see the repository being tested, after finish tested the result is red (thumbs down) when i click log it show no error log

In the folder: /opt/odoo9c/addons/runbot/static/build/00002-testing-pci-sales-discount-76e00b/logs

file job_10_test_base.txt : [/usr/bin/python: can't open file '/opt/odoo9c/addons/runbot/static/build/00002-testing-pci-sales-discount-76e00b/bin/openerp-server.py': [Errno 2] No such file or directory]

Would you have any detailed documentation on How Runbot works (how it tests a build, what makes a build pass or fail?)

moylop260 commented 7 years ago

What is your odoo-extra sha and what is the repository record?

andrewyova commented 7 years ago

what do you mean about odoo-extra sha?

mart-e commented 7 years ago

Hello,

You may want to check these two presentations https://www.odoo.com/slides/slide/how-to-setup-your-own-runbot-309 (check slide 20) https://www.odoo.com/slides/slide/deploy-own-runbot-to-build-a-dashboard-449

The runbot does not find your Odoo server executable.

The extra dependencies should not be empty. Also the branch matching is not going to work. You must call your branch with the correct name (e.g. master-my-modules or 8.0-my-test)

andrewyova commented 7 years ago

@mart-e so i must add repository git@github.com:odoo/odoo ,save and update it? that repository it's to much take time , how many size that repository?

mart-e commented 7 years ago

@andrewyova you need a full odoo repository to run your modules on to (and it is not the same than the server the runbot uses). Either the official or your fork. Yes, it will take time and yes it will take a lot of space, this is why we advise to use a dedicated server for the runbot.

Closing as a configuration issue and not an issue on the runbot code.

Another tutorial with numbers for the required resources