Skip to content

Stop shallow-clone fetches after the first timeout - #160

Open
RomainCscn wants to merge 1 commit into
mainfrom
claude/shallow-clone-fetch-perf-05792a
Open

RomainCscn wants to merge 1 commit into
mainfrom
claude/shallow-clone-fetch-perf-05792a

Conversation

@RomainCscn

Copy link
Copy Markdown
Collaborator

On shallow CI clones, a fetch that timed out was followed by larger fetches, the whole sequence ran again for the rollback check, and --timeout couldn't interrupt any of it, so one sync could spend minutes fetching. The rollback check also fetched full history on every normal sync whose last release was beyond the clone depth.

Now the first fetch timeout fails the sync with the git command and its time limit, each fetch fits in what's left of --timeout, and the rollback check stops fetching once it knows which commit comes first.

Fetching only one ref instead of every branch is left for a follow-up.

Fixes LIN-98232

@linear-code

linear-code Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

LIN-98232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant