Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Alternative failure mitigation of TestExecInteractiveStdinClose#37143

Merged
vdemeester merged 1 commit into
moby:mastermoby/moby:masterfrom
arm64b:copy-after-command-exitarm64b/moby:copy-after-command-exitCopy head branch name to clipboard
May 29, 2018
Merged

Alternative failure mitigation of TestExecInteractiveStdinClose#37143
vdemeester merged 1 commit into
moby:mastermoby/moby:masterfrom
arm64b:copy-after-command-exitarm64b/moby:copy-after-command-exitCopy head branch name to clipboard

Conversation

@arm64b

@arm64b arm64b commented May 24, 2018

Copy link
Copy Markdown
Contributor

As a follow up of #37076
Begin to copy the data until the command to exit and any coping to stdin or copy from stdout/stderr has completed.
Also add the defense code to remove possible \x00 null character from the final buffer.

Signed-off-by: Dennis Chen dennis.chen@arm.com

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@arm64b

arm64b commented May 24, 2018

Copy link
Copy Markdown
Contributor Author

/cc @thaJeztah @vdemeester, I've been thinking what the root cause is when driving to the office, after check some os.exec golang document, I'd like to adjust the code sequence before we adding trimming method. so I suggest we squash this first 😀 IMO, it's worth doing this.

@arm64b
arm64b force-pushed the copy-after-command-exit branch from cc42d1c to 5bd4642 Compare May 24, 2018 02:58
@codecov

codecov Bot commented May 24, 2018

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@9c2c887). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #37143   +/-   ##
=========================================
  Coverage          ?   35.05%           
=========================================
  Files             ?      615           
  Lines             ?    45828           
  Branches          ?        0           
=========================================
  Hits              ?    16065           
  Misses            ?    27652           
  Partials          ?     2111

Begin to copy the data until the command to exit and any coping to
stdin or copy from stdout/stderr has completed.
Also adding defense code to trim the possible '\x00' null value.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vdemeester vdemeester left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐯

@vdemeester
vdemeester merged commit 2d7ae3e into moby:master May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.