-
-
Notifications
You must be signed in to change notification settings - Fork 267
[IMP] test_server: Patch odoo to create unlogged DB tables #573
base: master
Are you sure you want to change the base?
Conversation
0a2d829
to
9a9a25c
Compare
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.
we need a mention of this in the README.
But apart from that I'm +1
What is the average performance boost? |
@moylop260 very interesting! @gurneyalex out of curiousity, what is the size of the wal director(ies) on runbot? Would it make sense to address this at the system level, ie by storing wals on a ram disk or ssd? |
@@ -312,6 +337,11 @@ def main(argv=None): | |||
test_enable = str2bool(os.environ.get('TEST_ENABLE', True)) | |||
dbtemplate = os.environ.get('MQT_TEMPLATE_DB', 'openerp_template') | |||
database = os.environ.get('MQT_TEST_DB', 'openerp_test') | |||
is_runbot = str2bool(os.environ.get('RUNBOT')) | |||
is_gitlab_ci = str2bool(os.environ.get('GITLAB_CI')) | |||
is_travis_ci = str2bool(os.environ.get('TRAVIS')) |
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.
Why do you consider travis CI?
Remember Travis CI manages its own PostgreSQL settings which may not be customized AFAIK.
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.
I'm not patching PostgreSQL.
I'm patching odoo to create "unlogged" tables and travis kill the build after success then IMHO It is a good site to use "unlogged" too.
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.
and we can see that it is working.
https://travis-ci.org/OCA/maintainer-quality-tools/jobs/427705355#L831-L833
This commit causes Odoo to be patched so all database tables are created as unlogged. This is applied only for testing instances because, if a docker container is stopped without firstly saving the changes, all records will be deleted; so it's not suitable for working under other environments, e.g. locally. This is compatible with the odoo versions >=7.0. Co-authored-by: Luis González <[email protected]>
9a9a25c
to
9c81d6e
Compare
@sbidoul probably default values. These are handled by travis2docker and
the Vauxoo's docker stack for the image in which the runbot spawned
instances are run.
Le mer. 12 sept. 2018 à 10:09, Stéphane Bidoul (ACSONE) <
[email protected]> a écrit :
… @moylop260 <https://github.com/moylop260> very interesting!
@gurneyalex <https://github.com/gurneyalex> out of curiousity, what is
the size of the wal director(ies) on runbot? Would it make sense to address
this at the system level, ie by storing wals on a ram disk or ssd?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#573 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB8Ep69I7TTDfavNJeSwrC0r9lfZv9I8ks5uaMFEgaJpZM4WkoVh>
.
--
Alexandre Fayolle
Chef de Projet
Tel : + 33 (0)4 58 48 20 30
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com
|
This commit causes Odoo to be patched so all database tables are created
as unlogged.
Disadvantage:
If a container is stopped without stop postgresql service then the data will be corrupted... but for the case of runbot currently if a container is stopped then the build is killed too. Then this is not a real disadvantage for that environment.
This is compatible with the odoo versions >=7.0.
Co-authored by: Luis González (luisg123v)