diff --git a/runbot/documentation/images/Screenshot from 2020-09-23 12-20-40.png b/runbot/documentation/images/Screenshot from 2020-09-23 12-20-40.png new file mode 100644 index 00000000..ac7ae735 Binary files /dev/null and b/runbot/documentation/images/Screenshot from 2020-09-23 12-20-40.png differ diff --git a/runbot/models/build.py b/runbot/models/build.py index 9a6ad4a2..1f6eec6a 100644 --- a/runbot/models/build.py +++ b/runbot/models/build.py @@ -942,7 +942,7 @@ class BuildResult(models.Model): if logdb_uri and grep(build._server('sql_db.py'), 'allow_uri'): logdb = '%s' % logdb_uri command.add_config_tuple("log_db", "%s" % logdb) - if grep(build._server('tools/config.py'), 'log-db-level'): + if grep(config_path, 'log-db-level'): command.add_config_tuple("log_db_level", '25') if grep(config_path, "data-dir"): diff --git a/runbot/models/build_config.py b/runbot/models/build_config.py index 5ea2a068..2fd292d3 100644 --- a/runbot/models/build_config.py +++ b/runbot/models/build_config.py @@ -397,6 +397,9 @@ class ConfigStep(models.Model): if grep(config_path, "--screenshots"): cmd.add_config_tuple('screenshots', '/data/build/tests') + if grep(config_path, "--screencasts"): + cmd.add_config_tuple('screencasts', '/data/build/tests') + cmd.append('--stop-after-init') # install job should always finish if '--log-level' not in extra_params: cmd.append('--log-level=test') diff --git a/runbot/models/runbot.py b/runbot/models/runbot.py index c90bd7bf..737d0572 100644 --- a/runbot/models/runbot.py +++ b/runbot/models/runbot.py @@ -34,7 +34,6 @@ class Runbot(models.AbstractModel): return os.path.abspath(default) def _scheduler(self, host): - self._gc_testing(host) self._commit() for build in self._get_builds_with_requested_actions(host): @@ -152,6 +151,7 @@ class Runbot(models.AbstractModel): env = self.env settings = {} settings['port'] = config.get('http_port') + settings['runbot_domain'] = self._domain() settings['runbot_static'] = os.path.join(get_module_resource('runbot', 'static'), '') nginx_dir = os.path.join(self._root(), 'nginx') settings['nginx_dir'] = nginx_dir diff --git a/runbot/models/user.py b/runbot/models/user.py index 4af0b9be..1c14c773 100644 --- a/runbot/models/user.py +++ b/runbot/models/user.py @@ -7,4 +7,4 @@ class User(models.Model): # Add default action_id action_id = fields.Many2one('ir.actions.actions', - default=lambda self: self.env.ref('runbot.runbot_menu_warning_root', raise_if_not_found=False)) + default=lambda self: self.env.ref('runbot.open_view_warning_tree', raise_if_not_found=False)) diff --git a/runbot/templates/nginx.xml b/runbot/templates/nginx.xml index 3cc4bbae..a8f39567 100644 --- a/runbot/templates/nginx.xml +++ b/runbot/templates/nginx.xml @@ -47,6 +47,7 @@ server { autoindex off; location ~ /runbot/static/build/[^/]+/(logs|tests)/ { autoindex on; + add_header 'Access-Control-Allow-Origin' 'https://'; } } }