mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-03 01:46:55 +02:00
fix(evals): --case list mode and name precheck; case-shard qa-callers; refresh batching and design-with-ui seeds
This commit is contained in:
1 parent
2dae4bf944
commit
581e603313
6 files changed
+41
-14
No files matched your search
@@ -32,7 +32,7 @@
|
||||
"test/skill-e2e-plan-ceo-finding-floor.test.ts": 297738,
|
||||
"test/skill-e2e-plan-ceo-plan-mode.test.ts": 36812,
|
||||
"test/skill-e2e-plan-decision-classification.test.ts": 1000,
|
||||
"test/skill-e2e-plan-design-with-ui.test.ts": 595151,
|
||||
"test/skill-e2e-plan-design-with-ui.test.ts": 240000,
|
||||
"test/skill-e2e-plan-devex-finding-floor.test.ts": 207635,
|
||||
"test/skill-e2e-plan-devex-peer-comparison-classification.test.ts": 1000,
|
||||
"test/skill-e2e-plan-devex-plan-mode.test.ts": 115679,
|
||||
@@ -50,6 +50,11 @@
|
||||
"test/skill-e2e-plan.test.ts#plan-review-report": 76406,
|
||||
"test/skill-e2e-qa-bugs.test.ts": 1000,
|
||||
"test/skill-e2e-qa-callers.test.ts": 737164,
|
||||
"test/skill-e2e-qa-callers.test.ts#review-exploratory-small-cli": 294865,
|
||||
"test/skill-e2e-qa-callers.test.ts#ship-exploratory-late-input": 294865,
|
||||
"test/skill-e2e-qa-callers.test.ts#ship-exploratory-plan-checks": 294865,
|
||||
"test/skill-e2e-qa-callers.test.ts#ship-exploratory-small-cli": 294865,
|
||||
"test/skill-e2e-qa-callers.test.ts#ship-exploratory-unavailable": 294865,
|
||||
"test/skill-e2e-qa-functional-fix.test.ts": 235133,
|
||||
"test/skill-e2e-qa-functional.test.ts": 356641,
|
||||
"test/skill-e2e-qa-workflow.test.ts": 427303,
|
||||
@@ -162,7 +167,7 @@
|
||||
"test/skill-e2e-plan-design-plan-mode.test.ts": 106608,
|
||||
"test/skill-e2e-plan-devex-peer-comparison-classification.test.ts": 79786,
|
||||
"test/skill-e2e-plan-eng-finding-floor.test.ts": 388666,
|
||||
"test/skill-e2e-plan-eng-multi-finding-batching.test.ts": 1318488,
|
||||
"test/skill-e2e-plan-eng-multi-finding-batching.test.ts": 597500,
|
||||
"test/skill-e2e-plan-eng-plan-mode.test.ts": 229226,
|
||||
"test/skill-e2e-plan-format.test.ts": 219670,
|
||||
"test/skill-e2e-plan-prosons.test.ts": 163659,
|
||||
|
||||
@@ -142,6 +142,7 @@ export const CASE_SHARDED_FILES: readonly string[] = [
|
||||
'test/skill-e2e-shared-libs-paths.test.ts',
|
||||
'test/skill-e2e-shared-libs.test.ts',
|
||||
'test/skill-e2e-ship-docsync.test.ts',
|
||||
'test/skill-e2e-qa-callers.test.ts',
|
||||
];
|
||||
|
||||
/** Bun test names that differ from their E2E id. */
|
||||
@@ -2268,6 +2269,11 @@ export async function runCaseDiagnosis(id: string, options: {
|
||||
const rootDir = options.rootDir ?? ROOT;
|
||||
const log = options.log ?? ((line: string) => console.log(line));
|
||||
const file = options.file ?? caseFile(id, rootDir);
|
||||
const testName = CASE_TEST_NAMES[id] ?? id;
|
||||
if (!options.commandFor && !fs.readFileSync(path.join(rootDir, file), 'utf8').includes(testName)) {
|
||||
throw new Error(`--case ${id}: ${file} has no literal Bun test named "${testName}", so a trial could not select it. `
|
||||
+ 'Run the whole file (bun test <file> with EVALS=1) or add its literal name to CASE_TEST_NAMES.');
|
||||
}
|
||||
const policy = caseTrialPlan(id);
|
||||
const n = options.trials ?? policy.panel.n;
|
||||
const plan: CaseTrialPlan = { ...policy, panel: { n, k: policy.panel.k === policy.panel.n ? n : Math.min(policy.panel.k, n) } };
|
||||
@@ -2924,6 +2930,14 @@ async function main(): Promise<number> {
|
||||
// a slice whose artifact never landed is a FAILURE, not an absence.
|
||||
if (options.reportDir) return runPaidReport(options.reportDir, { writeDurations: options.writeDurations });
|
||||
|
||||
if (options.caseId && options.listOnly) {
|
||||
const file = caseFile(options.caseId);
|
||||
const plan = caseTrialPlan(options.caseId);
|
||||
const n = options.trials ?? plan.panel.n;
|
||||
console.log(`[test:paid] --case ${options.caseId}: ${n} trial(s) of ${file} (kind ${plan.kind}), list only`);
|
||||
for (let trial = 1; trial <= n; trial++) console.log(` ${trialShardKey(file, options.caseId, trial)}`);
|
||||
return 0;
|
||||
}
|
||||
if (options.caseId) {
|
||||
preflightAnthropicApi(process.env);
|
||||
const verdict = await runCaseDiagnosis(options.caseId, { trials: options.trials ?? undefined, jobs: options.jobs,
|
||||
|
||||
Reference in new issue
Block a user