| Index: appengine/findit/handlers/config.py
|
| diff --git a/appengine/findit/handlers/config.py b/appengine/findit/handlers/config.py
|
| index 130550bfd9063ffa419591fe9ef2c49378bea3eb..dc41ca1cc6e15fcbe3af3e461014c9b16280d42c 100644
|
| --- a/appengine/findit/handlers/config.py
|
| +++ b/appengine/findit/handlers/config.py
|
| @@ -182,6 +182,14 @@ def _ValidateActionSettings(settings):
|
| settings.get('cr_notification_latency_limit_minutes'), int))
|
|
|
|
|
| +def _ValidateCheckFlakeSettings(settings):
|
| + return (isinstance(settings, dict) and
|
| + isinstance(settings.get('lower_flake_threshold'), float) and
|
| + isinstance(settings.get('upper_flake_threshold'), float) and
|
| + isinstance(settings.get('max_flake_in_a_row'), int) and
|
| + isinstance(settings.get('max_stable_in_a_row'), int))
|
| +
|
| +
|
| # Maps config properties to their validation functions.
|
| _CONFIG_VALIDATION_FUNCTIONS = {
|
| 'steps_for_masters_rules': _ValidateMastersAndStepsRulesMapping,
|
| @@ -190,6 +198,7 @@ _CONFIG_VALIDATION_FUNCTIONS = {
|
| 'swarming_settings': _ValidateSwarmingSettings,
|
| 'download_build_data_settings': _ValidateDownloadBuildDataSettings,
|
| 'action_settings': _ValidateActionSettings,
|
| + 'check_flake_settings': _ValidateCheckFlakeSettings,
|
| }
|
|
|
|
|
| @@ -253,6 +262,7 @@ class Configuration(BaseHandler):
|
| 'swarming_settings': settings.swarming_settings,
|
| 'download_build_data_settings': settings.download_build_data_settings,
|
| 'action_settings': settings.action_settings,
|
| + 'check_flake_settings': settings.check_flake_settings,
|
| 'version': settings.version,
|
| 'latest_version': latest_version,
|
| 'updated_by': settings.updated_by,
|
|
|