test(githttp): node-session signal handler ignores inherited SIG_IGN and misses non-signal deaths
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
Read internal/githttp/testnode_linux_test.go and inspect trackNodeSession and killNodesOnSignal; the issue describes the inherited ignored-signal case and the child-process leak when the test process dies without a signal. Start by checking the signal behavior and existing test coverage. Done means ignored signals are not intercepted and Git child processes are handled on non-signal deaths; a linked pull request is already open.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-ups from the clean-context advisory on #461 (the #439 harness fix). Both are in internal/githttp/testnode_linux_test.go.
- Inherited ignored signals.
trackNodeSessioncallssignal.Notifyfor SIGINT, SIGTERM and SIGHUP. That enables a signal even when the test binary started with it ignored (undernohup, or as a background&job in a non-interactive shell, which ignores SIGINT). On such a signal,killNodesOnSignalkills every node session,signal.Resetrestores "ignored", and the re-raise does nothing. The test binary keeps running with its nodes dead, and later tests fail confusingly. I saw this in a dogfood run: SIGINT to a backgrounded test binary killed the node, and the test then ran to completion. Fix: skip each signal for whichsignal.Ignored(sig)is true. - Deaths without a signal: a test panic, the
-timeoutpanic, or SIGKILL of the test binary. Pdeathsig ends serve, but serve's git children keep running. This is not a regression: before #461, serve leaked too.
Trigger: the next change to testNode, any e2e run under nohup, or stray git receive-pack processes on a runner after a timed-out run.
Refs #439
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
- Lingua principale
- Go
- Stelle
- 0
- Fork
- 0
- Merge medio
- 6h 16m
- PR unite (30g)
- 243
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 coder/openstorage
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
coder/openstorage#807 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 49/100
coder/openstorage#806 ·
I maintainer di solito rispondono entro 1 giorno
-
api: merge/preview ignores strategy, squash and allow_unrelated_historiesForse già presa @ThomasK33 l’ha presa oggi. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
coder/openstorage#805 ·
I maintainer di solito rispondono entro 1 giorno
-
githttp: +import remote serves clone and fetch, and its pushes stay out of the normal branch listForse già presa @ThomasK33 l’ha presa oggi. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
coder/openstorage#804 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
api: branches/create ignores expected_target_sha, so a guarded create or move can overwrite a branchForse già presa @ThomasK33 l’ha presa oggi. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
coder/openstorage#803 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di coder/openstorage
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
coder/coder-logstream-kube#255 · 1 commento ·
-
[FEATURE]: 录入 AIDEV Agent Package v1 接入参考文档Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertakind/features
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
TencentBlueKing/bk-nodemgr#3991 ·
I maintainer di solito rispondono entro 1 giorno
-
meta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
last9/last9-mcp-server#554 ·
I maintainer di solito rispondono entro 1 giorno