Skip to content

Commit 76e6e59

Browse files
committed
Log cli output to tempfile
1 parent aae03e9 commit 76e6e59

File tree

1 file changed

+4
-1
lines changed
  • benchmark/apps/web/src/lib/server

1 file changed

+4
-1
lines changed

benchmark/apps/web/src/lib/server/runs.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { spawn } from "child_process"
44
import path from "path"
55
import os from "os"
6+
import fs from "fs"
67

78
import { revalidatePath } from "next/cache"
89
import pMap from "p-map"
@@ -42,12 +43,14 @@ export async function createRun({ suite, exercises = [], ...values }: CreateRun)
4243
revalidatePath("/runs")
4344

4445
try {
46+
const logFile = fs.openSync(`/tmp/roo-code-evals-${run.id}.log`, "a")
47+
4548
const process = spawn(
4649
"pnpm",
4750
["--filter", "@benchmark/cli", "dev", "run", "all", "--runId", run.id.toString()],
4851
{
4952
detached: true,
50-
stdio: "ignore",
53+
stdio: ["ignore", logFile, logFile],
5154
},
5255
)
5356

0 commit comments

Comments
 (0)