Delta workers fetch the compiler-tier checkout under a hard-coded 600 s limit
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 35/100
Direzione di ricerca
Read the four delta worker call sites in server/code/workers/scip_delta.py, scip_go_delta.py, scip_ts_delta.py, and scip_py_delta.py, then compare them with the fetch in scip_full and the existing code_git_fetch_timeout_s setting. The linked pull request includes a unit test showing the worker keyword arguments. Done when each delta fetch uses the configured timeout and the tests pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
TL;DR: The code-index delta workers fetch a repository into the compiler-tier checkout with a hard-coded 600 s limit, so on a repository with a multi-gigabyte pack the first fetch is killed on every pass and the tier never starts. code_git_fetch_timeout_s (default 3600 s) already exists and the full-index path uses it; the delta workers skip it.
Company
Independent
Component
Code index
Describe what's wrong
On a large public TypeScript monorepo (a 13.7 GB pack), the TypeScript delta pass never gets past its first fetch. Each pass logs a timeout from compiler_tier.git:
git fetch --recurse-submodules=no in <checkout> exceeded 600s
The killed fetch never records refs/loom/scip-head in the checkout, so the next fetch has no base to send only new objects against. It re-sends the whole pack and leaves a temporary pack of about 13 GB (tmp_pack_*) in the checkout's object directory each time. The tier does not progress and disk use grows by one pack per pass.
The cause is the call in each delta worker:
await git(checkout, *checkout_fetch_args(bare, target), local_remote=bare)
compiler_tier.git takes timeout_s with a default of 600.0. The delta workers do not pass it. scip_full passes settings.code_git_fetch_timeout_s to the same fetch, and gitrepo uses it for its fetches. The four callers on main at 9871c8735d73:
| File | Line |
|---|---|
server/code/workers/scip_delta.py |
128 |
server/code/workers/scip_go_delta.py |
307 |
server/code/workers/scip_ts_delta.py |
123 |
server/code/workers/scip_py_delta.py |
103 |
Does it reproduce on the latest release or main?
Yes
How to reproduce
- Index a repository whose pack takes longer than 600 s to fetch from the local bare clone into the compiler-tier checkout (a fresh checkout has no
refs/loom/scip-head, so the first fetch sends everything). - Enable a delta worker for it, for example
code_scip_ts_delta_enabled. - Read the worker log: the fetch ends with the timeout above, the watermark does not move, and the next pass repeats it.
Without such a repository, the unit test in the linked pull request shows the keyword arguments each worker passes: timeout_s is absent, so the 600 s default applies.
Expected behavior
The checkout fetch runs under code_git_fetch_timeout_s, as the same fetch does in scip_full, so a first fetch of a large pack can finish and record refs/loom/scip-head.
Error message and logs
git fetch --recurse-submodules=no in <checkout> exceeded 600s
Environment
Observed on a deployed build. The four call sites are unchanged on main at 9871c8735d73.
How this was found
An AI tool helped find it, and I reproduced it myself.
Additional context
The checkout's git checkout --force in the same workers also runs under the 600 s default; the pull request leaves it alone.
Redaction
- I removed tokens, keys, passwords and personal or customer data from everything above.
- Lingua principale
- Python
- Stelle
- 263
- Fork
- 47
- Merge medio
- 14h 21m
- PR unite (30g)
- 873
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ClickHouse/loom
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
ClickHouse/loom#2014 ·
I maintainer di solito rispondono entro 1 giorno
-
Options of loom period-digest, reextract, reconcile-status and demote-activity-narration print no help textForse già presa @VanshajPoonia l’ha presa oggi. Apertabug good first issue help wanted up-for-grabs
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
ClickHouse/loom#1988 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
A compiler-tier checkout fetch from a shallow mirror never records its headForse già presa @KaloyanNaumov l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
ClickHouse/loom#2016 ·
I maintainer di solito rispondono entro 1 giorno
-
loom participant retire cannot retire an orphaned participant after container replacement or host rebootForse già presa @l0K1ngg l’ha presa oggi. Apertabug help wanted up-for-grabs
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
ClickHouse/loom#2007 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 40/100
ClickHouse/loom#2001 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ClickHouse/loom
Issue simili
-
Ubuntu for Debian DevelopersApertaDMB documentation good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ubuntu/ubuntu-project-docs#921 ·
I maintainer di solito rispondono entro 1 giorno
-
⏳ Pending feedback 🐛 Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
jumpserver/jumpserver#18282 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
accepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
future-agi/future-agi#5274 ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
GenericMappingTools/pygmt#5014 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno