This is an automated email from the ASF dual-hosted git repository.

anandinguva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new a3bf007cef1 Append UUID when test_name is None for perf tool (#28882)
a3bf007cef1 is described below

commit a3bf007cef1f749b2759309c14ced1c5d9e38d76
Author: Anand Inguva <[email protected]>
AuthorDate: Sat Oct 7 11:35:14 2023 -0400

    Append UUID when test_name is None for perf tool (#28882)
    
    * Append UUID when test_name is null
    
    * Update sdks/python/apache_beam/testing/analyzers/perf_analysis.py
---
 sdks/python/apache_beam/testing/analyzers/perf_analysis.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sdks/python/apache_beam/testing/analyzers/perf_analysis.py 
b/sdks/python/apache_beam/testing/analyzers/perf_analysis.py
index 0074625d3b4..109e5bfcc28 100644
--- a/sdks/python/apache_beam/testing/analyzers/perf_analysis.py
+++ b/sdks/python/apache_beam/testing/analyzers/perf_analysis.py
@@ -23,6 +23,7 @@
 import argparse
 import logging
 import os
+import uuid
 from datetime import datetime
 from datetime import timezone
 from typing import Any
@@ -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,

Reply via email to