compose attach sometimes loses the input in TestComposeAttach
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start with TestComposeAttach from #5302 and compare its compose up/attach path with TestAttach, which uses plain nerdctl run -it. Reproduce the intermittent failure by running the CI subtest repeatedly; done means the commands sent through compose attach reliably reach and run in the container before detaching.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
TestComposeAttach from #5302 sometimes loses everything sent through nerdctl compose attach. Attach does read the detach keys and exits, but none of the commands it got before that reach the shell in the container.
On a failing run the container was still running, /bin/sh was PID 1 and sleeping, fds 0-2 were there, and the file the commands write was never created. So the shell looks fine, the input just gets lost somewhere between attach and the container console. It happened on a few different jobs (rootless and rootful, arm), maybe 1 in 10 runs.
The service runs with stdin_open and tty, so compose up starts it with nerdctl run -it in a subprocess and the test detaches from that before attaching. TestAttach does the same thing with a plain nerdctl run -it and I haven't seen it fail this way, so I suspect something in the compose up path.
Steps to reproduce the issue
- Run TestComposeAttach from #5302 in CI a few times
- Check the "attaches to the service container" subtest
Describe the results you received and expected
Expected the commands sent through compose attach to run in the container. Sometimes none of them do. I'm marking the subtest flaky in #5302 with a link here and will keep digging.
What version of nerdctl are you using?
main + #5302
- Lenguaje dominante
- Go
- Estrellas
- 10.5k
- Forks
- 853
- Merge medio
- 6 d 14 h
- PR fusionados (30 d)
- 38
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin 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 containerd/nerdctl
-
Test and examples: update wordpress images (to silence potential false security alerts)Posiblemente ocupada @Guurdeep la tomó hace 20 días. Abiertoarea/ci documentation priority/low
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
containerd/nerdctl#5283 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
`nerdctl kill` shouldn't set `containerd.io/restart.explicitly-stopped` label for non-stop signalsQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
containerd/nerdctl#5171 · 3 comentarios ·
Los mantenedores suelen responder en 3 días
-
area/project
Dificultad 1/5 Menos de una hora Aptitud para principiantes 25/100
containerd/nerdctl#5383 · 5 comentarios ·
Los mantenedores suelen responder en 3 días
-
Restart-policy containers loop on "unable to apply apparmor profile" after reboot until the creating user logs in (OCI hook inherits the client's XDG_RUNTIME_DIR)Posiblemente ocupada @Shubhranshu153 la tomó hoy. Abiertoarea/rootless bug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
containerd/nerdctl#5377 · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
containerd/nerdctl#5355 ·
Los mantenedores suelen responder en 3 días
Todos los issues de containerd/nerdctl
Issues similares
-
P3 tech debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
kind/feature needs-triage priority/unprioritized
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
NVIDIA/k8s-test-infra#1504 ·
Los mantenedores suelen responder en 1 día
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wso2/agent-manager#2717 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
open-policy-agent/opa#9685 · 1 comentario ·
Los mantenedores suelen responder en 1 día