mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-03 01:46:55 +02:00
- B1: delete paid files that assert nothing or cannot pass meaningfully: skill-llm-eval-spec and skill-e2e-spec-execute (test.todo), gemini-e2e (+ gemini-session-runner; no gemini CLI in CI), ship-idempotency (red since v1.63), the two opus-4-7 *-sonnet overlay wrappers, conductor-prose (+ its source-evaluation replay), codex-e2e-plan-format; drop their keys, scripts and census rows. - B2: skill-llm-eval grades browse/sections/command-list.md with one union judge that also carries the baseline score pin; regression-vs-baseline deleted (paid run: pass, c4/c4/a4). - B3: memory-pipeline, ios-qa, ios-qa-swift-build and plan-tune-cathedral make no model calls; renamed out of the paid glob so they run on every PR. Swift builds need GSTACK_TEST_SWIFT=1; device stub deleted. - B4: codex-e2e*, outside-voice, aside and ios-device cannot run in the CI image; excluded from the weekly lane with a tracked re-entry condition. - B6: fold opus-47's negative routing controls into skill-routing-e2e journey-negatives (paid run: 3/3 unrouted) and delete the file. - B7: delete the never-green brain-privacy-gate eval; a free gstack-skill-start test now proves consent precedes artifacts egress.
34 lines
1.5 KiB
TypeScript
34 lines
1.5 KiB
TypeScript
/**
|
|
* The ONE definition of which test files are paid (API spend, external
|
|
* services, e2e harnesses). package.json's test:gate/test:evals globs, the
|
|
* free-suite exclusion in scripts/test-free-shards.ts, and the sharded paid
|
|
* runner in scripts/test-paid-shards.ts all derive from this list — a file
|
|
* added to one and not the others either burns money in the free suite or
|
|
* silently never runs in the paid tier.
|
|
*/
|
|
|
|
import { matchGlob } from './touchfiles';
|
|
|
|
/** The exact globs package.json's `test:gate` passes to `bun test`. */
|
|
export const PAID_TEST_GLOBS = [
|
|
// skill-llm-eval* (not just the base file): a sibling judge file outside
|
|
// the exact glob could never run in any lane.
|
|
'test/skill-llm-eval*.test.ts',
|
|
'test/skill-e2e-*.test.ts',
|
|
'test/skill-routing-e2e.test.ts',
|
|
// codex-e2e* (was two exact names): codex-e2e-plan-format.test.ts and
|
|
// codex-e2e-recommendation-substance.test.ts were API-spending orphans —
|
|
// outside these globs they self-skipped in the free suite AND never
|
|
// entered the paid census. The same bug class as the deleted pre-split
|
|
// monolith (see test/paid-shards.test.ts's regression pin).
|
|
'test/codex-e2e*.test.ts',
|
|
'test/llm-judge-recommendation.test.ts',
|
|
'test/carve-section-loading*.test.ts',
|
|
] as const;
|
|
|
|
/** True when a repo-relative path (either slash style) is a paid test file. */
|
|
export function isPaidTestFile(relativePath: string): boolean {
|
|
const normalized = relativePath.replace(/\\/g, '/');
|
|
return PAID_TEST_GLOBS.some((glob) => matchGlob(normalized, glob));
|
|
}
|