[IMP] runbot: cleaup settings view

This commit is contained in:
Xavier-Do 2022-10-21 10:02:44 +02:00 committed by Christophe Monniez
parent 0287dcaab7
commit e27a1b8f71
4 changed files with 22 additions and 19 deletions

View File

@ -7,4 +7,3 @@
<field name="description">Default Dockerfile for latest Odoo versions.</field>
</record>
</odoo>

View File

@ -16,20 +16,32 @@ class ResConfigSettings(models.TransientModel):
runbot_timeout = fields.Integer('Max allowed step timeout (in seconds)')
runbot_starting_port = fields.Integer('Starting port for running builds')
runbot_max_age = fields.Integer('Max commit age (in days)')
runbot_logdb_uri = fields.Char('Runbot URI for build logs')
runbot_logdb_uri = fields.Char('Runbot URI for build logs',
help='postgres://user:password@host/db formated uri to give to a build to log in database. Should be a user with limited access rights (ir_logging, runbot_build)')
runbot_update_frequency = fields.Integer('Update frequency (in seconds)')
runbot_template = fields.Char('Postgresql template', help="Postgresql template to use when creating DB's")
runbot_message = fields.Text('Frontend warning message')
runbot_message = fields.Text('Frontend warning message', help="Will be displayed on the frontend when not empty")
runbot_default_odoorc = fields.Text('Default odoorc for builds')
runbot_upgrade_exception_message = fields.Text('Upgrade exception message')
runbot_upgrade_exception_message = fields.Text('Upgrade exception message', help='Template to auto-generate a github message when creating an upgrade exception')
runbot_do_fetch = fields.Boolean('Discover new commits')
runbot_do_schedule = fields.Boolean('Schedule builds')
runbot_is_base_regex = fields.Char('Regex is_base')
runbot_db_gc_days = fields.Integer('Days before gc', default=30, config_parameter='runbot.db_gc_days')
runbot_db_gc_days_child = fields.Integer('Days before gc of child', default=15, config_parameter='runbot.db_gc_days_child')
runbot_full_gc_days = fields.Integer('Days before directory removal', default=365, config_parameter='runbot.full_gc_days',
help='Counting from the db removal date')
runbot_db_gc_days = fields.Integer(
'Days before gc',
default=30,
config_parameter='runbot.db_gc_days',
help="Time after the build finished (running time included) to wait before droping db and non log files")
runbot_db_gc_days_child = fields.Integer(
'Days before gc of child',
default=15,
config_parameter='runbot.db_gc_days_child',
help='Children should have a lower gc delay since the database usually comes from the parent or a multibuild')
runbot_full_gc_days = fields.Integer(
'Days before directory removal',
default=365,
config_parameter='runbot.full_gc_days',
help='Number of days to wait after to first gc to completely remove build directory (remaining test/log files)')
runbot_pending_warning = fields.Integer('Pending warning limit', default=5, config_parameter='runbot.pending.warning')
runbot_pending_critical = fields.Integer('Pending critical limit', default=5, config_parameter='runbot.pending.critical')

View File

@ -7,7 +7,6 @@
<form>
<header>
</header>
<sheet>
<group name="build_error_group">
<field name="fingerprint" readonly="1"/>
<field name="content"/>
@ -83,7 +82,6 @@
</group>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/>

View File

@ -12,7 +12,7 @@
<div class="row mt16 o_settings_container">
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_right_pane">
<span class="o_form_label">General Runbot Settings</span>
<span class="o_form_label">Builder settings</span>
<div class="content-group">
<label for="runbot_workers" class="col-xs-3 o_light_label" style="width: 60%;"/>
<field name="runbot_workers" style="width: 15%;"/>
@ -30,22 +30,16 @@
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_right_pane">
<span class="o_form_label">Git Related Settings</span>
<span class="o_form_label">Leader settings</span>
<div class="content-group">
<label for="runbot_do_fetch" class="col-xs-3 o_light_label" style="width: 40%;"/>
<field name="runbot_do_fetch"/>
<label for="runbot_max_age" class="col-xs-3 o_light_label" style="width: 60%;"/>
<field name="runbot_max_age" style="width: 15%;"/>
<label for="runbot_update_frequency" class="col-xs-3 o_light_label" style="width: 60%;"/>
<field name="runbot_update_frequency" style="width: 15%;"/>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="col-12 col-lg-12 o_setting_box">
<div class="o_setting_right_pane">
<div class="content-group">
<label for="runbot_do_schedule" class="col-xs-3 o_light_label" style="width: 40%;"/>
<field name="runbot_do_schedule"/>
<label for="runbot_template" class="col-xs-3 o_light_label" style="width: 40%;"/>
<field name="runbot_template" style="width: 55%;"/>
<label for="runbot_is_base_regex" class="col-xs-3 o_light_label" style="width: 40%;"/>