11from __future__import annotations
22
3+ import datetime
34import logging
45import os
56import re
1011from helpers .test_scan import TestScan
1112from helpers .test_table import TestTable
1213from soda .common .lazy import Lazy
13- from soda .common .random_helper import generate_random_alpha_num_str
1414from soda .common .yaml_helper import YamlHelper
1515from soda .execution .data_source import DataSource
1616
@@ -59,6 +59,7 @@ def _create_schema_name(self):
5959else :
6060python_version = os .getenv ("PYTHON_VERSION" )
6161python_version_short = f'P{ python_version .replace ("." ,"" )} ' if python_version else ""
62+ timestamp = datetime .datetime .now ().strftime ("%Y_%m_%dT%H_%M_%S_%f" )
6263
6364if github_head_ref :
6465github_head_ref_short = (
@@ -67,12 +68,12 @@ def _create_schema_name(self):
6768schema_name_parts .append ("ci" )
6869schema_name_parts .append (github_head_ref_short )
6970schema_name_parts .append (python_version_short )
70- schema_name_parts .append (generate_random_alpha_num_str ( 5 ) )
71+ schema_name_parts .append (timestamp )
7172
7273else :
7374schema_name_parts .append ("ci_main" )
7475schema_name_parts .append (python_version_short )
75- schema_name_parts .append (generate_random_alpha_num_str ( 5 ) )
76+ schema_name_parts .append (timestamp )
7677
7778schema_name_raw = "_" .join (schema_name_parts )
7879schema_name = re .sub ("[^0-9a-zA-Z]+" ,"_" ,schema_name_raw ).lower ()