[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
This commit is contained in:
Rong Rong 2021-07-08 16:11:02 -07:00 committed by Facebook GitHub Bot
parent 7481c6fc02
commit 38c48e42c6
3 changed files with 3 additions and 0 deletions

View file

@ -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__)))),
}

View file

@ -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):

View file

@ -22,6 +22,7 @@ def dummy_meta_meta() -> ReportMetaMeta:
'build_branch': '',
'build_job': '',
'build_workflow_id': '',
'build_start_time_epoch': '',
}