Skip to content

Commit 05fa357

Browse files
authored
Merge pull request #2820 from Kilo-Org/mark/run-benchmarks
Slight tweak to benchmark/evals
2 parents 558d0ff + 3482f50 commit 05fa357

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/test-llm-autocompletion/runner.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ class TestRunner {
4545
actualValue = "(no changes parsed)"
4646
}
4747

48+
// Auto-reject if no changes were parsed
49+
if (actualValue === "(no changes parsed)") {
50+
return {
51+
testCase,
52+
isApproved: false,
53+
completion,
54+
actualValue,
55+
llmRequestDuration,
56+
}
57+
}
58+
4859
const approvalResult = await checkApproval(testCase.category, testCase.name, testCase.input, actualValue)
4960

5061
return {
@@ -196,7 +207,7 @@ class TestRunner {
196207
process.exit(1)
197208
}
198209

199-
const numRuns = 5
210+
const numRuns = 10
200211

201212
console.log(`\n🧪 Running Single Test: ${testName} (${numRuns} times)\n`)
202213
console.log("Category:", testCase.category)

0 commit comments

Comments
 (0)