From dd992fcc9b107326f1206a3da80bc256262ab58a Mon Sep 17 00:00:00 2001 From: Molecule AI Core-DevOps Date: Mon, 11 May 2026 11:23:12 +0000 Subject: [PATCH] fix(publish-runtime-autobump): shallow clone + explicit tag fetch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gitea Actions runners cannot reach https://git.moleculesai.app over HTTPS (runbooks/gitea-operational-quirks.md §runner-network-isolation). fetch-depth: 0 on actions/checkout triggers a full repo history fetch that times out at ~15s, causing the workflow to fail on Gitea runners (main RED, issue #460). Fix: use fetch-depth: 1 (shallow clone) and explicitly fetch tags with git fetch origin --tags --depth=1. The collision check (git tag --list) still works since we only need the most recent tag, not full history. git push of the new tag works on a shallow clone. Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/publish-runtime-autobump.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/publish-runtime-autobump.yml b/.gitea/workflows/publish-runtime-autobump.yml index 85afdafd..f7ed5350 100644 --- a/.gitea/workflows/publish-runtime-autobump.yml +++ b/.gitea/workflows/publish-runtime-autobump.yml @@ -43,10 +43,18 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: - # Fetch full tag list so the bump logic can sanity-check against - # what's already in this repo (catches collision with prior - # manual tag pushes). - fetch-depth: 0 + # Shallow clone — depth 1 is enough for the workspace-diff check. + # Tags needed for the collision check below are fetched explicitly + # in the next step, bypassing the runner-network timeout that + # full-history fetch triggers on Gitea Actions runners + # (runbooks/gitea-operational-quirks.md §runner-network-isolation). + fetch-depth: 1 + + - name: Fetch tags for collision check + # fetch-depth: 1 gets only the most recent commit's refs, not the + # tag that points at it. Do a targeted tag fetch so git tag --list + # below can detect collision with prior manual pushes. + run: git fetch origin --tags --depth=1 - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: