Skip to content

Commit

Permalink
Append UUID when test_name is None for perf tool (#28882)
Browse files Browse the repository at this point in the history
* Append UUID when test_name is null

* Update sdks/python/apache_beam/testing/analyzers/perf_analysis.py
  • Loading branch information
AnandInguva authored Oct 7, 2023
1 parent d5b8fb8 commit a3bf007
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdks/python/apache_beam/testing/analyzers/perf_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import argparse
import logging
import os
import uuid
from datetime import datetime
from datetime import timezone
from typing import Any
Expand Down Expand Up @@ -146,7 +147,7 @@ def run_change_point_analysis(
datetime.now().replace(tzinfo=timezone.utc)),
# BQ doesn't allow '.' in table name
test_id=test_id.replace('.', '_'),
test_name=test_name,
test_name=test_name or uuid.uuid4().hex,
metric_name=metric_name,
change_point=metric_values[change_point_index],
issue_number=issue_number,
Expand Down

0 comments on commit a3bf007

Please sign in to comment.