Skip to content

[release/2.0] integration/client: fix TestContainerExecLargeOutputWithTTY - #14308

Merged
mxpv merged 2 commits into
containerd:release/2.0from
samuelkarp:cherry-pick-14120-to-release/2.0
Oct 7, 2026
Merged

mxpv merged 2 commits into
containerd:release/2.0from
samuelkarp:cherry-pick-14120-to-release/2.0

Conversation

@samuelkarp

Copy link
Copy Markdown
Member

cherry-pick of #14120 and #12008

ningmingxiao and others added 2 commits October 6, 2026 15:49
Signed-off-by: ningmingxiao <[email protected]>
(cherry picked from commit a79e791)
Signed-off-by: Samuel Karp <[email protected]>
Wait for IO copying to complete before deleting the exec process. Delete
cancels outstanding IO operations, which can truncate the output.

```
=== NAME  TestContainerExecLargeOutputWithTTY
    container_test.go:1990: process output does not end with "999999 1000000" at iteration 1, here are the last 20 characters of the output:

         "1150 991151 991152 9"
--- FAIL: TestContainerExecLargeOutputWithTTY (2.00s)
```

In a follow-up, we should add comment for Delete API and document that the
caller should take responsibility to drain IO before Delete.

Signed-off-by: Wei Fu <[email protected]>
(cherry picked from commit 68f92da)
Signed-off-by: Samuel Karp <[email protected]>
@mxpv
mxpv merged commit 7981ffb into containerd:release/2.0 Oct 7, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants