From 28a0a5367b9c2604abc5b9b446c02e89ad7e7150 Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Sat, 11 Jan 2025 01:05:39 +0000 Subject: [PATCH 1/3] Update customize.py --- script/push-mlperf-inference-results-to-github/customize.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/script/push-mlperf-inference-results-to-github/customize.py b/script/push-mlperf-inference-results-to-github/customize.py index 59715ffce..de4566966 100644 --- a/script/push-mlperf-inference-results-to-github/customize.py +++ b/script/push-mlperf-inference-results-to-github/customize.py @@ -36,11 +36,7 @@ def preprocess(i): p = parse(repo) if env.get('CM_GITHUB_PAT', '') != '': token = env['CM_GITHUB_PAT'] - if token == "PAT": - env['CM_GIT_PUSH_CMD'] = r"""git push https://x-access-token:\$PAT@""" + \ - f"""{p.host}/{p.owner}/{p.repo}""" - else: - env['CM_GIT_PUSH_CMD'] = F"""git push https://x-access-token:{env['CM_GITHUB_PAT']}@{p.host}/{p.owner}/{p.repo}""" + env['CM_GIT_PUSH_CMD'] = f"""git push https://x-access-token:{env['CM_GITHUB_PAT']}@{p.host}/{p.owner}/{p.repo}""" return {'return': 0} From 4651df19fa9a2706795f40323cac3d3920cb897e Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Sat, 11 Jan 2025 01:08:48 +0000 Subject: [PATCH 2/3] Update run.bat --- script/push-mlperf-inference-results-to-github/run.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/push-mlperf-inference-results-to-github/run.bat b/script/push-mlperf-inference-results-to-github/run.bat index 0784e055e..085727d19 100644 --- a/script/push-mlperf-inference-results-to-github/run.bat +++ b/script/push-mlperf-inference-results-to-github/run.bat @@ -28,7 +28,8 @@ git commit -a -m "%CM_MLPERF_RESULTS_REPO_COMMIT_MESSAGE%" if defined CM_MLPERF_INFERENCE_SUBMISSION_DIR call %CM_SET_REMOTE_URL_CMD% -git push +echo "%CM_GIT_PUSH_CMD%" +%CM_GIT_PUSH_CMD% REM Check if the previous command was successful if %errorlevel% neq 0 exit /b %errorlevel% From cafe2836b4c4f17e6062be196d13c460df2eaaa4 Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Sat, 11 Jan 2025 01:09:48 +0000 Subject: [PATCH 3/3] Update module.py --- automation/script/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/script/module.py b/automation/script/module.py index b2b57a548..2ddc59c67 100644 --- a/automation/script/module.py +++ b/automation/script/module.py @@ -4763,7 +4763,7 @@ def docker(self, i): (docker_os_version) (str): force docker OS version (default: 22.04) (docker_image_tag_extra) (str): add extra tag (default:-latest) - (docker_cm_repo) (str): force CM automation repository when building Docker (default: cm4mlops) + (docker_cm_repo) (str): force CM automation repository when building Docker (default: mlperf-automations) (docker_cm_repos) (docker_cm_repo_flags)