buildah icon indicating copy to clipboard operation
buildah copied to clipboard

WIP DO NOT MERGE - Make stderr red color

Open TomSweeneyRedHat opened this issue 5 years ago • 14 comments

When an error is thrown inside the container, like one from ls /fakefile, the return string should be colored red when doing a bud or run action. Currently it's coming black as red.

Addresses Bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=1661593

Signed-off-by: TomSweeneyRedHat [email protected]

What type of PR is this?

/kind api-change /kind bug /kind cleanup /kind deprecation /kind design /kind documentation /kind failing-test /kind feature /kind flake /kind other

What this PR does / why we need it:

How to verify it

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?


TomSweeneyRedHat avatar Sep 01 '20 23:09 TomSweeneyRedHat

I've put this PR up mostly so I can more easily ask @nalind some questions.

TomSweeneyRedHat avatar Sep 01 '20 23:09 TomSweeneyRedHat

Are we just going to give up on this one?

rhatdan avatar Oct 28 '20 19:10 rhatdan

@TomSweeneyRedHat Nalin and I talked about this yesterday and came to the agreement to remove the pseudo-terminal from buildah bud for the remote commands. This should allow us to separate the stdin from stdout, and then you could add your magic to make stderr red. When doing buildah run, the pseudo-terminal would continue to be used, so the red stderr, would be disabled, which I believe is the correct behaviour.

We have eliminated stdin from buildah bud already so there is no interaction between the users terminal and the build session.

Could you start working on this PR again to see if removing the pseudo terminal makes it work?

rhatdan avatar Oct 30 '20 09:10 rhatdan

@rhatdan sure thing, I'll give it a go.

TomSweeneyRedHat avatar Oct 30 '20 17:10 TomSweeneyRedHat

A friendly reminder that this PR had no activity for 30 days.

github-actions[bot] avatar Feb 18 '21 00:02 github-actions[bot]

This is still something we want...

rhatdan avatar Feb 18 '21 11:02 rhatdan

A friendly reminder that this PR had no activity for 30 days.

github-actions[bot] avatar Mar 21 '21 00:03 github-actions[bot]

@TomSweeneyRedHat Any progress?

rhatdan avatar Mar 23 '21 10:03 rhatdan

A friendly reminder that this PR had no activity for 30 days.

github-actions[bot] avatar Apr 23 '21 00:04 github-actions[bot]

A friendly reminder that this PR had no activity for 30 days.

github-actions[bot] avatar May 24 '21 00:05 github-actions[bot]

A friendly reminder that this PR had no activity for 30 days.

github-actions[bot] avatar Jul 24 '21 00:07 github-actions[bot]

@TomSweeneyRedHat: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-ci[bot] avatar Aug 25 '21 14:08 openshift-ci[bot]

@flouthoc I would like you to take this over.

rhatdan avatar Aug 25 '21 17:08 rhatdan

@rhatdan Sure i'll pick it up right after tag.

flouthoc avatar Aug 26 '21 09:08 flouthoc