mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-04 02:16:56 +02:00
test: derive paid touchfiles from each eval's static closure (E)
touchfiles.test.ts now checks, per key, that the paid file's static test/helpers and test/fixtures closure (plus fixture paths it names in string literals) is covered, and names the file, path, chain and key to fix when it is not. Free *.test.ts files are no longer touchfiles, so editing a free replay test stops selecting paid evals: 950 entries removed, 653 real closure paths added. The hand-copied inventories go: periodic-fixture-selection, fake-impeccable-touchfiles and 45 per-file selection examples. Selection for the sample edits (plan-eng-review template, claude-pty-runner, plan-count-fixture, gstack-config) loses no case under either profile. CONTRIBUTING documents the rule and its lower bound.
This commit is contained in:
1 parent
689ef3094b
commit
7cbb5e04e4
53 files changed
+627
-1873
No files matched your search
@@ -4,7 +4,6 @@ import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
import {spawnSync} from 'node:child_process';
|
||||
import {getQuestion} from '../scripts/question-registry';
|
||||
import {E2E_TOUCHFILES} from './helpers/touchfiles-data';
|
||||
import {CARVE_GUARDS} from './helpers/carve-guards';
|
||||
const root=path.resolve(import.meta.dir,'..');
|
||||
const temp=fs.mkdtempSync(path.join(os.tmpdir(),'gstack-ceo-mode-preference-'));
|
||||
@@ -126,9 +125,6 @@ test('only an explicit user selection or enabled successful mode check bypasses
|
||||
expect(document).toContain('Note: options differ in kind, not coverage — no completeness score.');
|
||||
}
|
||||
});
|
||||
test('the new render/runtime regression belongs to the existing auto-decide owner',()=>{
|
||||
expect(Object.entries(E2E_TOUCHFILES).filter(([,v])=>v.includes('test/ceo-mode-preference-al.test.ts')).map(([k])=>k)).toEqual(['auto-decide-preserved']);
|
||||
});
|
||||
test('rendered mode contract stays within the existing canonical skeleton cap',()=>{
|
||||
// --out-dir changes section-link roots only. Undo that output-location
|
||||
// substitution before measuring the same canonical bytes as parity-suite.
|
||||
|
||||
Reference in new issue
Block a user