mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 05:15:45 +07:00
[FIX] runbot: fix default modules and flamegraph
This commit is contained in:
parent
ec8a70a410
commit
ecd718ca2a
@ -97,7 +97,7 @@ class ConfigStep(models.Model):
|
|||||||
# install_odoo
|
# install_odoo
|
||||||
create_db = fields.Boolean('Create Db', default=True, track_visibility='onchange') # future
|
create_db = fields.Boolean('Create Db', default=True, track_visibility='onchange') # future
|
||||||
custom_db_name = fields.Char('Custom Db Name', track_visibility='onchange') # future
|
custom_db_name = fields.Char('Custom Db Name', track_visibility='onchange') # future
|
||||||
install_modules = fields.Char('Modules to install', help="List of module patterns to install, use * to install all available modules, prefix the pattern with dash to remove the module.", default='*')
|
install_modules = fields.Char('Modules to install', help="List of module patterns to install, use * to install all available modules, prefix the pattern with dash to remove the module.", default='')
|
||||||
db_name = fields.Char('Db Name', compute='_compute_db_name', inverse='_inverse_db_name', track_visibility='onchange')
|
db_name = fields.Char('Db Name', compute='_compute_db_name', inverse='_inverse_db_name', track_visibility='onchange')
|
||||||
cpu_limit = fields.Integer('Cpu limit', default=3600, track_visibility='onchange')
|
cpu_limit = fields.Integer('Cpu limit', default=3600, track_visibility='onchange')
|
||||||
coverage = fields.Boolean('Coverage', default=False, track_visibility='onchange')
|
coverage = fields.Boolean('Coverage', default=False, track_visibility='onchange')
|
||||||
@ -298,7 +298,7 @@ class ConfigStep(models.Model):
|
|||||||
coverage_extra_params = self._coverage_params(build, modules_to_install)
|
coverage_extra_params = self._coverage_params(build, modules_to_install)
|
||||||
python_params = ['-m', 'coverage', 'run', '--branch', '--source', '/data/build'] + coverage_extra_params
|
python_params = ['-m', 'coverage', 'run', '--branch', '--source', '/data/build'] + coverage_extra_params
|
||||||
elif self.flamegraph:
|
elif self.flamegraph:
|
||||||
python_params = ['-m', 'flamegraph', '-o', self._perfs_data_path()] + coverage_extra_params
|
python_params = ['-m', 'flamegraph', '-o', self._perfs_data_path()]
|
||||||
cmd = build._cmd(python_params, py_version)
|
cmd = build._cmd(python_params, py_version)
|
||||||
# create db if needed
|
# create db if needed
|
||||||
db_name = "%s-%s" % (build.dest, self.db_name)
|
db_name = "%s-%s" % (build.dest, self.db_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user