[experiments] Fix some bugs for no rollout definition (#33626)

Some bugs crept in if there's no rollout defined for an experiment, fix
that up.
pull/33627/head
Craig Tiller 2 years ago committed by GitHub
parent d139c4a014
commit 78240d42f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/codegen/core/experiments_compiler.py

@ -266,7 +266,7 @@ class ExperimentDefinition(object):
return self._description
def default(self, platform):
return self._default[platform]
return self._default.get(platform, False)
@property
def test_tags(self):
@ -277,7 +277,7 @@ class ExperimentDefinition(object):
return self._allow_in_fuzzing_config
def additional_constraints(self, platform):
return self._additional_constraints[platform]
return self._additional_constraints.get(platform, {})
class ExperimentsCompiler(object):

Loading…
Cancel
Save