Skip to content

Commit af64562

Browse files
committed
fixup! feat(runner): add support for running and repairing tests
1 parent b433915 commit af64562

File tree

14 files changed

+266
-434
lines changed

14 files changed

+266
-434
lines changed

runner/configuration/base-environment-config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import z from 'zod';
22
import {ratingSchema} from '../ratings/rating-types.js';
33
import {MultiStepPrompt} from './multi-step-prompt.js';
4-
import {mcpServerOptionsSchema} from '../codegen/llm-runner.js';
5-
import {getPossiblePackageManagers} from './environment-config.js';
64

75
export const baseEnvironmentConfigSchema = z.strictObject({
86
/** Display name for the environment. */

runner/configuration/constants.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ export const LLM_OUTPUT_DIR = join(rootDir, 'llm-output');
2626
*/
2727
export const DEFAULT_MAX_REPAIR_ATTEMPTS = 1;
2828

29-
/**
30-
* Number of times we'll try to ask LLM to repair a test failure,
31-
* providing the test output and the code that causes the problem.
32-
*/
33-
export const DEFAULT_MAX_TEST_REPAIR_ATTEMPTS = 1;
34-
3529
/** Name of the folder where we store all generated reports */
3630
export const REPORTS_ROOT_DIR = join(rootDir, 'reports');
3731

runner/configuration/environment-config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ const environmentConfigSchema = z.union([
1515
*/
1616
export type EnvironmentConfig = z.infer<typeof environmentConfigSchema>;
1717

18-
/** Package managers that are currently supported. */
19-
export function getPossiblePackageManagers() {
20-
return ['npm', 'pnpm', 'yarn'] as const;
21-
}
22-
2318
/** Asserts that the specified data is a valid environment config. */
2419
export function assertIsEnvironmentConfig(value: unknown): asserts value is EnvironmentConfig {
2520
const validationResult = environmentConfigSchema.safeParse(value);

runner/configuration/environment-local.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import z from 'zod';
33
import {LlmRunner, McpServerOptions, mcpServerOptionsSchema} from '../codegen/llm-runner.js';
44
import {LocalGateway} from '../orchestration/gateways/local_gateway.js';
55
import {BaseEnvironment} from './base-environment.js';
6-
import {EnvironmentConfig, getPossiblePackageManagers} from './environment-config.js';
6+
import {getPossiblePackageManagers} from './package-managers.js';
77
import {baseEnvironmentConfigSchema} from './base-environment-config.js';
88

99
export const localEnvironmentConfigSchema = baseEnvironmentConfigSchema.extend({
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** Package managers that are currently supported. */
2+
export function getPossiblePackageManagers() {
3+
return ['npm', 'pnpm', 'yarn'] as const;
4+
}

runner/orchestration/build-repair.ts

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

0 commit comments

Comments
 (0)