Skip to content

Commit

Permalink
Append UUID when test_name is null
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandInguva committed Oct 7, 2023
1 parent 7531501 commit 7e8f772
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 @@ -22,6 +22,7 @@

import argparse
import logging
import uuid
import os
from datetime import datetime
from datetime import timezone
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 7e8f772

Please sign in to comment.