compose attach sometimes loses the input in TestComposeAttach
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Go
- 星标
- 10.5k
- 派生
- 853
- 平均合并
- 6 天 14 小时
- 30 天内合并 PR
- 38
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
containerd/nerdctl 的其他 Issue
-
Test and examples: update wordpress images (to silence potential false security alerts)可能已有人在做 @Guurdeep 于 20 天前认领。 未关闭area/ci documentation priority/low
难度 2/5 1-3 小时 新手友好度 74/100
containerd/nerdctl#5283 · 2 条评论 ·
维护者通常 3 天内回复
-
`nerdctl kill` shouldn't set `containerd.io/restart.explicitly-stopped` label for non-stop signals可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 82/100
containerd/nerdctl#5171 · 3 条评论 ·
维护者通常 3 天内回复
-
area/project
难度 1/5 1 小时以内 新手友好度 25/100
containerd/nerdctl#5383 · 5 条评论 ·
维护者通常 3 天内回复
-
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)可能已有人在做 @Shubhranshu153 今天认领。 未关闭area/rootless bug
难度 3/5 1-2 天 新手友好度 72/100
containerd/nerdctl#5377 · 已指派 1 人 ·
维护者通常 3 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
containerd/nerdctl#5355 ·
维护者通常 3 天内回复
查看 containerd/nerdctl 的全部 Issue
相似的 Issue
-
P3 tech debt
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
kind/feature needs-triage priority/unprioritized
难度 2/5 1-3 小时 新手友好度 75/100
NVIDIA/k8s-test-infra#1504 ·
维护者通常 1 天内回复
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
难度 2/5 1-3 小时 新手友好度 78/100
wso2/agent-manager#2717 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
open-policy-agent/opa#9685 · 1 条评论 ·
维护者通常 1 天内回复