-
-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD] initial PoC for tests for OpenUpgrade #506
Conversation
The problem I see is that we are only going to test:
But we are not going to know exactly if the migration is totally correct. These tests can create the false sensation of correct migration even if we don't include any assert. Anyway, having this clear in documentation, it's a good step to avoid some running issues. |
...and we can (and should) also include measuring coverage, and at the end, only merge stuff which doesn't decrease coverage |
🌟 🌟 🌟 Try
|
I'm trying to find the reason for https://travis-ci.org/OCA/OpenUpgrade/builds/136356675#L503, which is weird, because both https://github.com/OCA/OpenUpgrade/blob/9.0/openerp/addons/base/migrations/9.0.1.3/post-migration.py#L119 and https://github.com/OCA/openupgradelib/blob/master/openupgradelib/openupgrade.py#L1140 look correct. If you have any ideas, let me know |
looks like OCA/openupgradelib@e748410 is missing from the openupgradelib travis uses. Will have a look what's going on here. |
It seems there has no been another release in PyPi with latest changes of openupgradelib. |
I'm going to make another release. |
@pedrobaeza thanks, the new release surely makes sense. But for the tests, I'll rewrite |
@hbrunn, OK, you're right about that point. |
# on unreleased features in openupgradelib | ||
- pip uninstall openupgradelib | ||
- git clone https://github.com/OCA/openupgradelib ~/openupgradelib | ||
- pip install ~/openupgradelib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can install directly with pip: http://stackoverflow.com/questions/20101834/pip-install-from-github-repo-branch
@pedrobaeza @StefanRijnhart now it's the way I want it, please review |
Changes Unknown when pulling 6de5396 on hbrunn:9.0-tests into * on OCA:9.0*. |
Awesome! And it's green. 👍 👍 👍 |
I see three thumbs up, so I'll merge |
kidding, but thanks for your enthusiasm ;-) |
Is the coverage information correct? How do you measure this coverage? |
@pedrobaeza it only looks at the migration scripts themselves: https://github.com/OCA/OpenUpgrade/pull/506/files#diff-6f1f859c6ca5c4cae7310924786cf661R7 |
Hi, Well first 💯 👍 for this work (*) ! This a good step forward to improve Openupgrade. A suggestion :
Pro :
Cons :
And a question : I remember that for previous migration, it was not possible to run an openupgrade on a db with demo data but I don't remember why. Why it is now possible from 8.0 -> 9.0 ? kind regard. (*) 103 thumbs : time to merge... ;-) |
👍 Merging then |
@pedrobaeza thanks for merging @legalsylvain the time thing is crucial: We only have 50 minutes, then travis will kill the job. Now doing nearly nothing it costs 10 minutes, so I fear we'll get timing problems anyways with a growing amount of modules. Therp hosting the DB images was now the simplest choice, sooner or later I'll ask the OCA to do so - also makes more sense because then more people have access to it. Or just on github, weird I didn't think of that before. |
@hbrunn Thanks for the explanation. (and again for this improvement). |
this is a PoC for the scenario described in https://odoo-community.org/groups/contributors-15/contributors-41651?mode=date&date_begin=2016-06-01&date_end=2016-07-01, don't merge (yet)