fix(ci): use shallow tag-only fetch to avoid 504 timeout #2

Merged
forbes merged 1 commits from fix/ci-tag-fetch-504 into main 2026-02-04 19:30:51 +00:00
Owner

Problem

The CI build step Fetch tags (for git describe) fails with:

error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504
fatal: expected 'acknowledgments'

git fetch --tags triggers full history negotiation against the upstream FreeCAD-derived repo (~45k commits), causing HTTP 504 gateway timeouts on the Gitea instance.

Fix

Replace with a depth=1 refspec fetch that pulls only tag refs without negotiating reachable objects behind them:

git fetch --no-recurse-submodules --depth=1 origin '+refs/tags/*:refs/tags/*'

This is sufficient for git describe --tags --always to resolve a version string.

## Problem The CI build step `Fetch tags (for git describe)` fails with: ``` error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 fatal: expected 'acknowledgments' ``` `git fetch --tags` triggers full history negotiation against the upstream FreeCAD-derived repo (~45k commits), causing HTTP 504 gateway timeouts on the Gitea instance. ## Fix Replace with a depth=1 refspec fetch that pulls only tag refs without negotiating reachable objects behind them: ``` git fetch --no-recurse-submodules --depth=1 origin '+refs/tags/*:refs/tags/*' ``` This is sufficient for `git describe --tags --always` to resolve a version string.
forbes added 1 commit 2026-02-04 19:30:46 +00:00
fix(ci): use shallow tag-only fetch to avoid 504 timeout
Some checks failed
Build and Test / build (pull_request) Failing after 41m54s
d60db282ea
The previous `git fetch --tags` triggers full history negotiation
against the upstream FreeCAD-derived repo (~45k commits), causing
HTTP 504 gateway timeouts on the Gitea instance.

Replace with a depth=1 refspec fetch that pulls only tag refs
without negotiating reachable objects behind them. This is
sufficient for `git describe --tags --always` to resolve a
version string.
forbes merged commit 044983330c into main 2026-02-04 19:30:51 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/create#2