From f085a105ed416e196ac1cf24617d83baeeb9c398 Mon Sep 17 00:00:00 2001 From: Eiden Yoshida <47196116+eidenyoshida@users.noreply.github.com> Date: Mon, 23 Mar 2026 08:15:51 -0600 Subject: [PATCH] [CK] MICI: Revert "add self healing to ref repo" (#5691) The check may not be working as intended, causing premature deletion of reference repositories --- Jenkinsfile | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 75a5eb7fac..a61dcf1e78 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -62,44 +62,12 @@ def cloneUpdateRefRepo() { echo "rocm-libraries repo exists at ${refRepoPath}, performing git remote update..." echo "locking on label: ${lockLabel}" lock(lockLabel) { - // Sanity check: detect corrupt refs that would break git fetch - int showRefStatus = sh( - script: """ - set +e - cd ${refRepoPath} - git show-ref > /dev/null 2>&1 - echo \$? > .git/.last-show-ref-status - """, - returnStatus: true, - label: "pre-update ref sanity check" - ) - - def showRefExit = sh( - script: "cat ${refRepoPath}/.git/.last-show-ref-status || echo 1", - returnStdout: true - ).trim() as Integer - - if (showRefExit != 0) { - echo "Ref repo at ${refRepoPath} appears corrupt (git show-ref failed). Recreating mirror clone..." - sh( - script: """ - set -ex - rm -rf ${refRepoPath} - mkdir -p ${refRepoPath} - git clone --mirror https://github.com/ROCm/rocm-libraries.git ${refRepoPath} - """, - label: "reclone ref repo after corruption" - ) - } - def fetchCommand = """ set -ex cd ${refRepoPath} git remote prune origin - git remote update --prune - git fsck --no-progress --connectivity-only + git remote update """ - sh(script: fetchCommand, label: "update ref repo") } echo "Completed git ref repo fetch, lock released"