Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/k8s/sandbox-manager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as k8s from '@kubernetes/client-node'
import { PassThrough } from 'stream'

import { logger as baseLogger } from '@/lib/logger'

Expand Down Expand Up @@ -1487,11 +1488,9 @@ echo "{\\"cwd\\":\\"$CWD\\",\\"homeDir\\":\\"$HOME_DIR\\",\\"isInHome\\":$IS_IN_
let errorOutput = ''

try {
const stream = await import('stream')

await new Promise<void>((resolve, reject) => {
const stdoutStream = new stream.PassThrough()
const stderrStream = new stream.PassThrough()
const stdoutStream = new PassThrough()
const stderrStream = new PassThrough()

stdoutStream.on('data', (chunk) => {
output += chunk.toString()
Expand Down