[experiments] Make monitoring_experiment never expire (#33250)

<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
pull/33253/head
Craig Tiller 2 years ago committed by GitHub
parent ea03aee5b4
commit 8cb7e610c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/experiments/experiments.yaml
  2. 5
      tools/codegen/core/gen_experiments.py

@ -72,7 +72,7 @@
test_tags: ["core_end2end_test", "event_engine_client_test"]
- name: monitoring_experiment
description: Placeholder experiment to prove/disprove our monitoring is working
expiry: 2023/11/01
expiry: never-ever
owner: ctiller@google.com
test_tags: []
- name: promise_based_client_call

@ -102,6 +102,11 @@ for attr in attrs:
if 'expiry' not in attr:
print("no expiry for experiment %s" % attr['name'])
error = True
if attr['name'] == 'monitoring_experiment':
if attr['expiry'] != 'never-ever':
print("monitoring_experiment should never expire")
error = True
else:
expiry = datetime.datetime.strptime(attr['expiry'], '%Y/%m/%d').date()
if check_dates:
if expiry < today:

Loading…
Cancel
Save