From 38c48e42c616f58330d218eea79aed51c8c6eacd Mon Sep 17 00:00:00 2001 From: Rong Rong Date: Thu, 8 Jul 2021 16:11:02 -0700 Subject: [PATCH] [Reland][BE] add test wall time report (#61389) Summary: This is a reland of https://github.com/pytorch/pytorch/issues/61322. Pull Request resolved: https://github.com/pytorch/pytorch/pull/61389 Reviewed By: malfet Differential Revision: D29601573 Pulled By: walterddr fbshipit-source-id: dfb2bdc7d72d493c01b9dbac50ef9b79c1782054 --- tools/stats/print_test_stats.py | 1 + tools/stats/s3_stat_parser.py | 1 + tools/test/test_stats.py | 1 + 3 files changed, 3 insertions(+) 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': '', }