spec(daemon-registry): the stop requirement does not say what `daemon stop` prints when a stop fails
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 55/100
Línea de trabajo
Start with the stop requirement and its existing scenarios in openspec/specs/daemon-registry/spec.md, then read the failure-path tests in internal/cli/daemon_test.go and internal/cli/tui/daemonpicker_test.go to see the printed output and exit codes they pin. Draft scenarios for a listing failure, a total stop failure and a partial stop failure, proposed through an OpenSpec change. Coordinate with #180, which also touches stopTargets. Done means the scenarios match what the tests already assert.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
The daemon-registry spec does not say what codegraph daemon stop and the codegraph daemon picker print when a stop fails.
The stop scenarios in openspec/specs/daemon-registry/spec.md cover only a stop that returns no error. An example is "Stop all with a malformed record under a live pid": stdout is no running daemons and the command exits 0. No scenario covers:
- a registry listing that fails;
- a stop where every per-target signal fails;
- a stop that stops some daemons and then fails on another.
#179 (fixing #172) set this behavior as a fix, because the spec does not cover it:
- The "no running daemons", "no running daemon for " and "nothing stopped" notices print only when the error is nil.
- A failed stop prints the error, and any skipped registry files, on stderr, and exits non-zero.
- A stop that fails part-way still prints a
stopped pid N (<repo>)line for each daemon it stopped.
Tests in internal/cli/daemon_test.go and internal/cli/tui/daemonpicker_test.go pin this behavior. Because no spec states it, a later change can alter it without a spec delta.
Possible direction
- Add scenarios for a listing failure, a total stop failure and a partial stop failure to the stop requirement, through an OpenSpec change.
- #180 changes how
stopTargetstreatsos.ErrProcessDone. One change could cover both.
Found by the impact lane of the suite review of #179, which noted that spec.md covers only the nil-error stop case.
🤖 Generated with Claude Code
- Lenguaje dominante
- Go
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 7 h 42 min
- PR fusionados (30 d)
- 111
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de seanb4t/codegraph-go
-
chore needs-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
seanb4t/codegraph-go#380 ·
Los mantenedores suelen responder en 1 día
-
chore needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
seanb4t/codegraph-go#379 ·
Los mantenedores suelen responder en 1 día
-
area:query chore needs-triage spec-needed
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
seanb4t/codegraph-go#377 ·
Los mantenedores suelen responder en 1 día
-
chore needs-triage
Dificultad 1/5 1-3 horas Aptitud para principiantes 84/100
seanb4t/codegraph-go#362 ·
Los mantenedores suelen responder en 1 día
-
area:query bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
seanb4t/codegraph-go#355 ·
Los mantenedores suelen responder en 1 día
Todos los issues de seanb4t/codegraph-go
Issues similares
-
Add iterate GmbH domains to a dedicated list and include it in company and developer categoriesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
v2fly/domain-list-community#4307 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
notify: voice_queue rows are deleted only at startup, so a hub that stays up grows it without boundAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mattabate/life-distributable#232 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día