Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable demux option in exec_run #410

Merged
merged 1 commit into from
Jul 27, 2024

Conversation

inknos
Copy link
Contributor

@inknos inknos commented Jul 26, 2024

exec_run now returns a tuple of bytes if demux is True the first element being the stdout and the second the stderr of the exec_run call.

Implementation is courtesy of:
https://github.com/SatelliteQE/broker/blob/60a52941f2eb297ccbdf7a0fa0b932eb23ad926b/broker/binds/containers.py#L8-L48

Resolves: #322

Thanks @JacobCallahan

@inknos inknos force-pushed the demux-stdout-stderr branch from 7cd4833 to 1e69e8d Compare July 26, 2024 15:03
@inknos inknos marked this pull request as draft July 26, 2024 15:28
@inknos inknos force-pushed the demux-stdout-stderr branch 2 times, most recently from 040d052 to b8ab3eb Compare July 26, 2024 15:42
@inknos inknos marked this pull request as ready for review July 26, 2024 15:42
`exec_run` now returns a tuple of bytes if demux is True the first
element being the stdout and the second the stderr of the exec_run call.

Implementation is courtesy of:
https://github.com/SatelliteQE/broker/blob/60a52941f2eb297ccbdf7a0fa0b932eb23ad926b/broker/binds/containers.py#L8-L48

Resolves: containers#322

Signed-off-by: Nicola Sella <[email protected]>
@inknos inknos force-pushed the demux-stdout-stderr branch from b8ab3eb to 05d1e7c Compare July 26, 2024 15:50
@jwhonce
Copy link
Member

jwhonce commented Jul 26, 2024

LGTM

@rhatdan
Copy link
Member

rhatdan commented Jul 27, 2024

Thanks @inknos
/lgtm
/approve

Copy link
Contributor

openshift-ci bot commented Jul 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inknos, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit ba97755 into containers:main Jul 27, 2024
14 checks passed
tpapaioa added a commit to tpapaioa/broker that referenced this pull request Sep 20, 2024
tpapaioa added a commit to tpapaioa/broker that referenced this pull request Sep 20, 2024
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.

demux doesn't work in exec_run => no way to separate stdout and stderr
3 participants