GithubHelp home page GithubHelp logo

OpenUpgrade and Travis about openupgrade HOT 8 CLOSED

oca avatar oca commented on July 25, 2024
OpenUpgrade and Travis

from openupgrade.

Comments (8)

rvalyi avatar rvalyi commented on July 25, 2024

Hello @legalsylvain

That sounds all the rage. However I believe Travis free plans have a max execution time of ~12 minutes and my feeling is that it will not fit. Worth a double check. Also some OCA people are setting up a dedicated runbot system, may be it could be hacked into doing what you want (not on Travis infrastructure then).

Well this is just my hot feeling, it's probably worth a try or more investigation.

from openupgrade.

legalsylvain avatar legalsylvain commented on July 25, 2024

Hi @rvalyi,
Ok thanks about the information about max execution time. I think that it can fit at the beginning, but maybe not if all modules are done. (That was not the case for 7.0). We have to check that.
And without talking about the infrastructure, what is your point of view about the idea as such ?

thanks.

from openupgrade.

rvalyi avatar rvalyi commented on July 25, 2024

@legalsylvain yes, that may be possible with just a few module, not sure. Well the idea itself is great as I said.

from openupgrade.

bwrsandman avatar bwrsandman commented on July 25, 2024

This completely depends on demo data migration and if these datas are complete and non-iterferal with migration scripts.

It shouldn't be too difficult to do for version 8.0 of OpenUpgrade:

language: python

python:
  - "2.7"

env:
  - VERSION="7.0" ODOO_REPO="odoo/odoo"
  - VERSION="7.0" ODOO_REPO="OCA/OCB"

virtualenv:
  system_site_packages: true

install:
  - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
  - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
  - travis_install_nightly
  - git clone https://github.com/${ODOO_REPO}.git ${HOME}/new-version -b ${VERSION} --depth=1

script:
  - ${HOME}/Odoo/openerp_server -d OpenUpgrade -i all --without-demo=False --stop-after-init
  - coverage run ./scripts/migrate.py -d OpenUpgrade
  - ${HOME}/new-version/openerp_server -d OpenUpgrade --stop-after-init | grep ERROR

after_success:
  coveralls

Not tested, just quickly typed, the commands and paths are probably different.

from openupgrade.

legalsylvain avatar legalsylvain commented on July 25, 2024

Hi @bwrsandman (or other) I tried few days ago to realize this script.
I don't know exactly how to realize that and I'm limited by my level in shell script.
(https://github.com/grap-openupgrade/OpenUpgrade/blob/8.0-Travis/.travis.yml)

I would like to install on V7 only modules marked as done in modules70-80.rst file.

I tried:

- ADDONS_LIST =""
- for module in `cat openerp/openupgrade/doc/source/modules70-80.rst  | grep -i "|.*Done" | cut -d"|" -f2` ; do if [ -z "$ADDONS_LIST" ] ; then ADDONS_LIST=$module; else ADDONS_LIST=$ADDONS_LIST,$module; fi; done

But I don't know how to use it after.
Any help is welcome.

from openupgrade.

dreispt avatar dreispt commented on July 25, 2024

It's reasonable to add OCB specific support into current MQT scripts, or at worse, add there additional scripts for OCB.
The question is: what would be the test strategy? @bwrsandman script above on only a specific list of modules?

from openupgrade.

bwrsandman avatar bwrsandman commented on July 25, 2024

@legalsylvain try this:

ADDONS_LIST=`grep -i "^|.*|\s*Done" openerp/openupgrade/doc/source/modules70-80.rst |\
    cut -d"|" -f2  |\
    xargs echo |\
    sed 's/ /,/g'`

from openupgrade.

pedrobaeza avatar pedrobaeza commented on July 25, 2024

Done. Closing...

from openupgrade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.