Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
38 changes: 0 additions & 38 deletions services/auto-routing-benchmark/src/admin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ const TEST_CONFIG_ROWS = {
excludedAutoDeciderModels: [],
};

// ---------------------------------------------------------------------------
// Stubs: the db module is mocked at its function boundary (drizzle generates
// the SQL, so statement-level stubbing would couple tests to its internals).
// ---------------------------------------------------------------------------

vi.mock('./db', async importOriginal => {
const actual = await importOriginal<typeof DbModule>();
Expand Down Expand Up @@ -165,10 +163,6 @@ function authedPut(path: string, body: unknown, extraHeaders: Record<string, str
});
}

// ---------------------------------------------------------------------------
// Setup
// ---------------------------------------------------------------------------

beforeEach(() => {
vi.clearAllMocks();
tokenGet.mockResolvedValue('bench-token');
Expand Down Expand Up @@ -201,10 +195,6 @@ beforeEach(() => {
queueSendBatch.mockResolvedValue(undefined);
});

// ---------------------------------------------------------------------------
// Auth guard
// ---------------------------------------------------------------------------

describe('auth middleware', () => {
it('rejects requests without a bearer token', async () => {
const res = await request('/admin/config');
Expand All @@ -220,10 +210,6 @@ describe('auth middleware', () => {
});
});

// ---------------------------------------------------------------------------
// GET /admin/config
// ---------------------------------------------------------------------------

describe('GET /admin/config', () => {
it('returns a null config when the DB rows are absent', async () => {
// getConfigRows already returns null config by default
Expand Down Expand Up @@ -273,10 +259,6 @@ describe('GET /admin/config', () => {
});
});

// ---------------------------------------------------------------------------
// PUT /admin/config
// ---------------------------------------------------------------------------

describe('PUT /admin/config', () => {
it('rejects a non-JSON body', async () => {
const res = await request('/admin/config', {
Expand Down Expand Up @@ -358,10 +340,6 @@ describe('PUT /admin/config', () => {
});
});

// ---------------------------------------------------------------------------
// GET /admin/runs
// ---------------------------------------------------------------------------

describe('GET /admin/runs', () => {
it('returns an empty runs array when the table is empty', async () => {
const res = await authedGet('/admin/runs');
Expand All @@ -376,10 +354,6 @@ describe('GET /admin/runs', () => {
});
});

// ---------------------------------------------------------------------------
// POST /admin/runs
// ---------------------------------------------------------------------------

describe('POST /admin/runs', () => {
it('rejects a non-JSON body', async () => {
const res = await request('/admin/runs', {
Expand Down Expand Up @@ -622,10 +596,6 @@ describe('POST /admin/runs', () => {
});
});

// ---------------------------------------------------------------------------
// GET /admin/routing-table
// ---------------------------------------------------------------------------

describe('GET /admin/routing-table', () => {
it('returns {table: null, publishedAt: null} when no rows exist', async () => {
const res = await authedGet('/admin/routing-table');
Expand Down Expand Up @@ -663,10 +633,6 @@ describe('GET /admin/routing-table', () => {
});
});

// ---------------------------------------------------------------------------
// GET /admin/classifier-winner
// ---------------------------------------------------------------------------

describe('GET /admin/classifier-winner', () => {
it('returns {winner: null} when no completed classifier run exists', async () => {
const res = await authedGet('/admin/classifier-winner');
Expand All @@ -690,10 +656,6 @@ describe('GET /admin/classifier-winner', () => {
});
});

// ---------------------------------------------------------------------------
// POST /admin/profiles/register + /admin/profiles/status
// ---------------------------------------------------------------------------

describe('POST /admin/profiles/register', () => {
it('returns 400 when benchmark config is not set', async () => {
const res = await authedPost('/admin/profiles/register', {
Expand Down
54 changes: 0 additions & 54 deletions services/auto-routing-benchmark/src/datasets/classifier-cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ function chat(
// code, service config, or request contracts; low = read-only, test-only,
// docs-only, or isolated reversible code.
export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
// ---------------------------------------------------------------------------
// implementation / feature_development
// ---------------------------------------------------------------------------
{
id: 'impl-feat-members-endpoint',
input: chat(
Expand Down Expand Up @@ -117,9 +114,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// implementation / code_generation
// ---------------------------------------------------------------------------
{
id: 'impl-gen-semver-helper',
input: chat(
Expand Down Expand Up @@ -189,9 +183,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// implementation / test_creation
// ---------------------------------------------------------------------------
{
id: 'impl-test-slugify-units',
input: chat(
Expand Down Expand Up @@ -261,9 +252,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// debugging / bug_fixing
// ---------------------------------------------------------------------------
{
id: 'debug-fix-import-mismatch',
input: chat(
Expand Down Expand Up @@ -333,9 +321,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// debugging / test_repair
// ---------------------------------------------------------------------------
{
id: 'debug-repair-bcrypt-stub',
input: chat(
Expand Down Expand Up @@ -405,9 +390,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// debugging / root_cause_analysis
// ---------------------------------------------------------------------------
{
id: 'debug-rca-sidebar-overflow',
input: chat(
Expand Down Expand Up @@ -477,9 +459,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// refactoring / code_cleanup
// ---------------------------------------------------------------------------
{
id: 'refactor-cleanup-rename-total',
input: chat(
Expand Down Expand Up @@ -549,9 +528,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// refactoring / architecture_improvement
// ---------------------------------------------------------------------------
{
id: 'refactor-arch-order-service',
input: chat(
Expand Down Expand Up @@ -621,9 +597,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// refactoring / migration
// ---------------------------------------------------------------------------
{
id: 'refactor-migrate-async-await',
input: chat(
Expand Down Expand Up @@ -693,9 +666,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// planning_design / architecture_design
// ---------------------------------------------------------------------------
{
id: 'plan-arch-express-structure',
input: chat(
Expand Down Expand Up @@ -765,9 +735,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// planning_design / technical_planning
// ---------------------------------------------------------------------------
{
id: 'plan-steps-optimistic-ui',
input: chat(
Expand Down Expand Up @@ -837,9 +804,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// planning_design / system_design
// ---------------------------------------------------------------------------
{
id: 'plan-system-catalog-caching',
input: chat(
Expand Down Expand Up @@ -909,9 +873,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// investigation / repo_exploration
// ---------------------------------------------------------------------------
{
id: 'invest-repo-feature-flags',
input: chat(
Expand Down Expand Up @@ -981,9 +942,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// investigation / codebase_understanding
// ---------------------------------------------------------------------------
{
id: 'invest-code-cart-reducer',
input: chat(
Expand Down Expand Up @@ -1053,9 +1011,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// investigation / external_research
// ---------------------------------------------------------------------------
{
id: 'invest-ext-stripe-webhooks',
input: chat(
Expand Down Expand Up @@ -1125,9 +1080,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// agentic_execution / tool_usage
// ---------------------------------------------------------------------------
{
id: 'agentic-tool-pricing-toggle',
input: chat(
Expand Down Expand Up @@ -1197,9 +1149,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// agentic_execution / terminal_operations
// ---------------------------------------------------------------------------
{
id: 'agentic-term-run-tests',
input: chat(
Expand Down Expand Up @@ -1272,9 +1221,6 @@ export const CLASSIFIER_CASES: readonly ClassifierCase[] = [
},
},

// ---------------------------------------------------------------------------
// agentic_execution / multi_step_execution
// ---------------------------------------------------------------------------
{
id: 'agentic-multi-cut-release',
input: chat(
Expand Down
Loading