Skip to content

Commit 1bfc6cc

Browse files
committed
More fixes
1 parent 4f476c8 commit 1bfc6cc

File tree

7 files changed

+14
-154
lines changed

7 files changed

+14
-154
lines changed

apps/web-evals/src/lib/server/runs.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,11 @@ export async function createRun({ suite, exercises = [], systemPrompt, ...values
5656
? { ...process.env, FOOTGUN_SYSTEM_PROMPT: systemPrompt }
5757
: process.env
5858

59-
const childProcess = spawn(
60-
"pnpm",
61-
["--filter", "@roo-code/evals", "dev", "run", "all", "--runId", run.id.toString()],
62-
{
63-
detached: true,
64-
stdio: ["ignore", logFile, logFile],
65-
env,
66-
},
67-
)
59+
const childProcess = spawn("pnpm", ["--filter", "@roo-code/evals", "cli", run.id.toString()], {
60+
detached: true,
61+
stdio: ["ignore", logFile, logFile],
62+
env,
63+
})
6864

6965
childProcess.unref()
7066
await _updateRun(run.id, { pid: childProcess.pid })

packages/evals/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ RUN npm install -g npm-run-all
77
# Install dependencies
88
RUN apt update && apt install -y sudo curl git vim jq
99

10-
1110
# Create a `vscode` user
1211
RUN useradd -m vscode -s /bin/bash && \
1312
echo "vscode ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/vscode && \
@@ -72,7 +71,7 @@ RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
7271
COPY --chown=vscode:vscode ./evals/.env ./
7372

7473
# Push database schema
75-
RUN pnpm --filter @roo-code/evals db:push
74+
RUN pnpm --filter @roo-code/evals db:push --force
7675

7776
EXPOSE 3000
7877
CMD ["pnpm", "web"]

packages/evals/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cd Roo-Code
1414
Run the setup script:
1515

1616
```sh
17-
cd evals
17+
cd packages/evals
1818
./scripts/setup.sh
1919
```
2020

packages/evals/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"check-types": "tsc --noEmit",
1010
"_test": "dotenvx run -f .env.test -- vitest run",
1111
"clean": "rimraf dist .turbo",
12-
"cli": "dotenvx run -f .env.development -- tsx src/cli/index.ts",
12+
"cli": "dotenvx run -f .env.development .env.local -- tsx src/cli/index.ts",
1313
"drizzle-kit": "dotenvx run -f .env.development -- tsx node_modules/drizzle-kit/bin.cjs",
1414
"drizzle-kit:test": "dotenvx run -f .env.test -- tsx node_modules/drizzle-kit/bin.cjs",
1515
"db:start": "docker compose up -d",

packages/evals/scripts/copy-run.mts

Lines changed: 0 additions & 112 deletions
This file was deleted.

packages/evals/scripts/enable-wal.mts

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/evals/scripts/setup.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,19 +318,19 @@ else
318318
echo "✅ Done"
319319
fi
320320

321-
if [[ ! -s .env ]]; then
322-
cp .env.sample .env || exit 1
321+
if [[ ! -s .env.local ]]; then
322+
touch .env.local || exit 1
323323
fi
324324

325325
echo -n "🗄️ Syncing Roo Code evals database... "
326326
pnpm --filter @roo-code/evals db:push --force &>/dev/null || exit 1
327327
echo "✅ Done"
328328

329-
if ! grep -q "OPENROUTER_API_KEY" .env; then
329+
if ! grep -q "OPENROUTER_API_KEY" .env.local; then
330330
read -p "🔐 Enter your OpenRouter API key (sk-or-v1-...): " openrouter_api_key
331331
echo "🔑 Validating..."
332332
curl --silent --fail https://openrouter.ai/api/v1/key -H "Authorization: Bearer $openrouter_api_key" &>/dev/null || exit 1
333-
echo "OPENROUTER_API_KEY=$openrouter_api_key" >> .env || exit 1
333+
echo "OPENROUTER_API_KEY=$openrouter_api_key" >> .env.local || exit 1
334334
fi
335335

336336
current_version=$(code --list-extensions --show-versions 2>/dev/null | grep roo)
@@ -346,9 +346,9 @@ if ! nc -z localhost 3000; then
346346
read -p "🌐 Would you like to start the evals web app? (Y/n): " start_evals
347347

348348
if [[ "$start_evals" =~ ^[Yy]|^$ ]]; then
349-
pnpm web
349+
pnpm --filter @roo-code/web-evals dev
350350
else
351-
echo "💡 You can start it anytime with 'pnpm web'."
351+
echo "💡 You can start it anytime with 'pnpm --filter @roo-code/web-evals dev'."
352352
fi
353353
else
354354
echo "👟 The evals web app is running at http://localhost:3000"

0 commit comments

Comments
 (0)