Skip to content

Conversation

@artmoskvin
Copy link
Collaborator

No description provided.

@artmoskvin artmoskvin requested a review from aleh-null September 1, 2024 17:57
@artmoskvin artmoskvin force-pushed the artm/runner-test branch 2 times, most recently from fbab275 to e2455ab Compare September 4, 2024 11:22
Copy link
Collaborator

@aleh-null aleh-null left a comment

Choose a reason for hiding this comment

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

LGTM. Let's have a chat about ExecResult{} seems like the only reason of it is to push stream to a client, right?

// TODO: should we use logger instead?
go ReadOutput(cmdStdout, stdout)
go ReadOutput(cmdStderr, stderr)
go readOutput(cmdStdout, stdout)
Copy link
Collaborator

Choose a reason for hiding this comment

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

For future. Let's do similar to Exec() when it comes to logs. Logger should handle all of that. However, I'm still unsure why io.Multiwriter() in container_manager.go L151. I propose we implement LogStreamer and use it as drop in replacement for this. WDYT?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Let's discuss it offline.

@artmoskvin artmoskvin merged commit 10d9222 into main Sep 4, 2024
@artmoskvin artmoskvin deleted the artm/runner-test branch September 4, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants