diff --git a/tools/stats/print_test_stats.py b/tools/stats/print_test_stats.py index caf2f08da3e..d1b40cbdac5 100755 --- a/tools/stats/print_test_stats.py +++ b/tools/stats/print_test_stats.py @@ -700,6 +700,7 @@ def build_info() -> ReportMetaMeta: "build_branch": os.environ.get("CIRCLE_BRANCH", ""), "build_job": os.environ.get("JOB_BASE_NAME", ""), "build_workflow_id": os.environ.get("CIRCLE_WORKFLOW_ID", ""), + "build_start_time_epoch": str(int(os.path.getmtime(os.path.realpath(__file__)))), } diff --git a/tools/stats/s3_stat_parser.py b/tools/stats/s3_stat_parser.py index 3dccac4efda..71474bf487c 100644 --- a/tools/stats/s3_stat_parser.py +++ b/tools/stats/s3_stat_parser.py @@ -48,6 +48,7 @@ class ReportMetaMeta(TypedDict): build_branch: str build_job: str build_workflow_id: str + build_start_time_epoch: str class ReportMeta(ReportMetaMeta): diff --git a/tools/test/test_stats.py b/tools/test/test_stats.py index f2fa1b0a99a..46ad2874860 100644 --- a/tools/test/test_stats.py +++ b/tools/test/test_stats.py @@ -22,6 +22,7 @@ def dummy_meta_meta() -> ReportMetaMeta: 'build_branch': '', 'build_job': '', 'build_workflow_id': '', + 'build_start_time_epoch': '', }