Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve chat context eval runner #5722

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Next Next commit
fix exception
  • Loading branch information
beyang committed Sep 26, 2024
commit b081608e06f7eedd542c63fab738050a525abcf5
3 changes: 3 additions & 0 deletions agent/src/cli/command-bench/command-bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { isDefined, modelsService } from '@sourcegraph/cody-shared'
import { sleep } from '../../../../vscode/src/completions/utils'
import { setStaticResolvedConfigurationWithAuthCredentials } from '../../../../vscode/src/configuration'
import { localStorage } from '../../../../vscode/src/services/LocalStorageProvider'
import { createOrUpdateTelemetryRecorderProvider } from '../../../../vscode/src/services/telemetry-v2'
import { startPollyRecording } from '../../../../vscode/src/testutils/polly'
import { dotcomCredentials } from '../../../../vscode/src/testutils/testing-credentials'
import { allClientCapabilitiesEnabled } from '../../allClientCapabilitiesEnabled'
Expand Down Expand Up @@ -352,6 +353,8 @@ export const benchCommand = new commander.Command('bench')
async function evaluateWorkspace(options: CodyBenchOptions, recordingDirectory: string): Promise<void> {
console.log(`starting evaluation: fixture=${options.fixture.name} workspace=${options.workspace}`)

createOrUpdateTelemetryRecorderProvider(true)

const workspaceRootUri = vscode.Uri.from({ scheme: 'file', path: options.workspace })

const baseGlobalState: Record<string, any> = {}
Expand Down