compose attach sometimes loses the input in TestComposeAttach
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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時間
- マージ済み PR(30日)
- 38
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン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 日以内に返信