derrickaw commented on code in PR #35435: URL: https://github.com/apache/beam/pull/35435#discussion_r2211706892
########## sdks/python/apache_beam/yaml/integration_tests.py: ########## @@ -144,6 +152,55 @@ def temp_bigquery_table(project, prefix='yaml_bq_it_'): bigquery_client.client.datasets.Delete(request) +def instance_prefix(instance): + datestr = "".join(filter(str.isdigit, str(datetime.now(timezone.utc).date()))) Review Comment: doc string ########## sdks/python/apache_beam/yaml/integration_tests.py: ########## @@ -144,6 +152,55 @@ def temp_bigquery_table(project, prefix='yaml_bq_it_'): bigquery_client.client.datasets.Delete(request) +def instance_prefix(instance): + datestr = "".join(filter(str.isdigit, str(datetime.now(timezone.utc).date()))) + instance_id = '%s-%s-%s' % (instance, datestr, secrets.token_hex(4)) + assert len(instance_id) < 34, "instance id length needs to be within [6, 33]" + return instance_id + + +@contextlib.contextmanager +def temp_bigtable_table(project, prefix='yaml_bt_it_'): Review Comment: doc string -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org