Skip to content

[release/2.3] integration/client: fix TestContainerExecLargeOutputWithTTY - #14306

Merged
mxpv merged 1 commit into
containerd:release/2.3from
samuelkarp:cherry-pick-14120-to-release/2.3
Oct 7, 2026
Merged

mxpv merged 1 commit into
containerd:release/2.3from
samuelkarp:cherry-pick-14120-to-release/2.3

Conversation

@samuelkarp

Copy link
Copy Markdown
Member

cherry-pick of #14120

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 3b08066 into containerd:release/2.3 Oct 7, 2026
121 of 126 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.

3 participants