Skip to content

Commit 1fcac94

Browse files
authored
Retry github push on failure on Windows for mlperf results
* Update run.bat
1 parent d2e1f4e commit 1fcac94

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/check-broken-links.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16+
1617
# Checks the status of hyperlinks in .md files in verbose mode
1718
- name: Check links
1819
uses: gaurav-nelson/github-action-markdown-link-check@v1

script/push-mlperf-inference-results-to-github/run.bat

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ git commit -a -m "%MLC_MLPERF_RESULTS_REPO_COMMIT_MESSAGE%"
2828

2929
if defined MLC_MLPERF_INFERENCE_SUBMISSION_DIR call %MLC_SET_REMOTE_URL_CMD%
3030

31-
echo "%MLC_GIT_PUSH_CMD%"
32-
%MLC_GIT_PUSH_CMD%
31+
@if errorlevel 1 (
32+
timeout /t %random:~0,3% /nobreak > nul
33+
git pull --rebase
34+
%MLC_GIT_PUSH_CMD%
35+
)
36+
3337

3438
REM Check if the previous command was successful
3539
if %errorlevel% neq 0 exit /b %errorlevel%

0 commit comments

Comments
 (0)