Local Docker runs: a user job's whole log is read into memory, and containers have no log-size or process-count limits
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 58/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- docker, python
- Ambito
- backend, infrastructure
Direzione di ricerca
Start with services/pipeline/src/pipeline/process/docker_executor.py, especially logs() near line 639, then read process/reconcile.py around lines 248–265 to understand when logs are fetched relative to the row lock. Inspect the Docker container spec and its fixture for resource limits, using the Kubernetes path as a reference. Done means the acceptance test reads logs beyond max_bytes without buffering them all, and the fixture includes the new limits.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Found in the 2026-11-29 whole-repo review. Unbounded read verified; the crash loop is inferred from the code path.
Problem
In services/pipeline/src/pipeline/process/docker_executor.py the logs() method (~line 639) fetches a finished container's entire log and only afterwards trims it to max_bytes. The caller (process/reconcile.py ~248-265) does this while holding a database row lock and an open connection. The container spec sets no log size cap, no process-count limit, and no read-only root file system for runs on the platform image. The Kubernetes path already has all of these.
How it goes wrong
A job that prints in a loop for its whole time limit writes gigabytes of log. On exit the worker reads it all and is killed for memory; on restart it picks up the same run and is killed again. Separately, Docker's default log driver keeps those logs on the host disk with no limit — consistent with the earlier disk-full incident.
Suggested fix
Ask Docker for only the last N bytes (or read in bounded chunks and stop at max_bytes); fetch the log before taking the row lock; add LogConfig max size/files, PidsLimit, a read-only root with a size-limited /tmp.
Acceptance criteria
- Test: a container that emitted far more than
max_bytesis read without buffering it all - Container spec fixture includes the new limits
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 2
- Merge medio
- 8h 26m
- PR unite (30g)
- 47
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun 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 TechTraverse/stac-higher
-
ci
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
TechTraverse/stac-higher#261 ·
I maintainer di solito rispondono entro 1 giorno
-
ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TechTraverse/stac-higher#258 ·
I maintainer di solito rispondono entro 1 giorno
-
Error messages hide the server's reason: users see only '400 Bad Request'Forse già presa @aman-code-io l’ha presa 3 giorni fa. Apertabug good first issue ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
TechTraverse/stac-higher#232 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
TechTraverse/stac-higher#225 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
TechTraverse/stac-higher#216 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TechTraverse/stac-higher
Issue simili
-
docs(contributing): the two things that silently block a PRForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaavailable documentation good first issue
Difficoltà 1/5 1-3 ore Idoneità per principianti 95/100
Nixitov/Riptide-Native#944 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
JTHCode/secretguard#24 ·
I maintainer di solito rispondono entro 1 giorno
-
area: middleware documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
omarelshamy25x/shamy-hijri#63 ·
I maintainer di solito rispondono entro 1 giorno