compose attach sometimes loses the input in TestComposeAttach
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 10.5k
- Fork
- 853
- Merge trung bình
- 6 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 38
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của containerd/nerdctl
-
Test and examples: update wordpress images (to silence potential false security alerts)Có thể đã có người làm @Guurdeep đã nhận 20 ngày trước. Đang mởarea/ci documentation priority/low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
containerd/nerdctl#5283 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
`nerdctl kill` shouldn't set `containerd.io/restart.explicitly-stopped` label for non-stop signalsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
containerd/nerdctl#5171 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
area/project
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 25/100
containerd/nerdctl#5383 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
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)Có thể đã có người làm @Shubhranshu153 đã nhận hôm nay. Đang mởarea/rootless bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
containerd/nerdctl#5377 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
containerd/nerdctl#5355 ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của containerd/nerdctl
Issue tương tự
-
P3 tech debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/feature needs-triage priority/unprioritized
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
NVIDIA/k8s-test-infra#1504 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wso2/agent-manager#2717 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
open-policy-agent/opa#9685 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày