From 13188b49e1bdc742718e3f4af54890139f39922e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=A4rtens?= Date: Thu, 27 Jul 2023 13:22:06 +0200 Subject: [PATCH] We noticed multiple CI errors over the last week, e.g. https://gitlab.com/veloren/veloren/-/jobs/4749826609 $ if [[ ! "${SCHEDULE_CADENCE}" =~ ${TAG_REGEX} ]]; then # collapsed multi-line command warning: redirecting to https://gitlab.com/veloren/veloren.git/ Locking support detected on remote "origin". Consider enabling it with: $ git config lfs.https://veloren-bot:[MASKED]@gitlab.com/veloren/veloren.git/info/lfs.locksverify true ref weekly:: Error in git rev-list --stdin --objects --not --remotes=origin --: exit status 128 fatal: bad object 11bc48033cf4e6528268f2acd97324e16e118bce error: failed to push some refs to 'https://veloren-bot:[MASKED]@gitlab.com/veloren/veloren' There seems to be a fix proposed here: https://github.com/git-lfs/git-lfs/issues/3977 by running git fetch first. lets try it out. Maybe we need to give it some commandline parameters to optimize in the future --- .gitlab/CI/publish.gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab/CI/publish.gitlab-ci.yml b/.gitlab/CI/publish.gitlab-ci.yml index 132ded6c0b..c1c479672a 100644 --- a/.gitlab/CI/publish.gitlab-ci.yml +++ b/.gitlab/CI/publish.gitlab-ci.yml @@ -43,6 +43,7 @@ gittag: - git remote set-url origin https://veloren-bot:${GITLAB_TOKEN_WRITE}@${CI_PROJECT_URL:8} - | if [[ ! "${SCHEDULE_CADENCE}" =~ ${TAG_REGEX} ]]; then + git fetch; git tag -a "${SCHEDULE_CADENCE}" -m '' -f; git push origin "${SCHEDULE_CADENCE}" -f; fi