mirror of https://github.com/garrytan/gstack.git
test(evals): retro E2E fixtures extract sections — 1821 -> 757 lines
Keeps every section the retro flow exercises incl. base-branch detect; drops preamble, Global Retrospective Mode, Compare Mode (58% cut). retro-base-branch was the single slowest CI test at 224s. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
a663d3f574
commit
0ca94703b6
|
|
@ -6,6 +6,7 @@ import {
|
|||
logCost, recordE2E,
|
||||
createEvalCollector, finalizeEvalCollector,
|
||||
} from './helpers/e2e-helpers';
|
||||
import { extractSkillSections, RETRO_E2E_SECTIONS } from './helpers/skill-fixture';
|
||||
import { spawnSync } from 'child_process';
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
|
|
@ -49,9 +50,13 @@ describeIfSelected('Base branch detection', ['retro-base-branch'], () => {
|
|||
run('git', ['add', 'test.ts'], dir);
|
||||
run('git', ['commit', '-m', 'test: add tests', '--date', '2026-03-16T11:00:00'], dir);
|
||||
|
||||
// Copy retro skill
|
||||
// Retro skill — extract the repo-scoped retro flow only (drops the shared
|
||||
// preamble + global/compare modes; CLAUDE.md: "extract, don't copy").
|
||||
fs.mkdirSync(path.join(dir, 'retro'), { recursive: true });
|
||||
fs.copyFileSync(path.join(ROOT, 'retro', 'SKILL.md'), path.join(dir, 'retro', 'SKILL.md'));
|
||||
fs.writeFileSync(
|
||||
path.join(dir, 'retro', 'SKILL.md'),
|
||||
extractSkillSections(path.join(ROOT, 'retro'), RETRO_E2E_SECTIONS),
|
||||
);
|
||||
|
||||
const result = await runSkillTest({
|
||||
prompt: `Read retro/SKILL.md for instructions on how to run a retrospective.
|
||||
|
|
@ -131,11 +136,11 @@ describeIfSelected('Retro E2E', ['retro'], () => {
|
|||
run('git', ['add', 'README.md']);
|
||||
run('git', ['commit', '-m', 'docs: add README', '--date', '2026-03-12T16:00:00']);
|
||||
|
||||
// Copy retro skill
|
||||
// Retro skill — extracted repo-scoped flow, not the full 1820-line file.
|
||||
fs.mkdirSync(path.join(retroDir, 'retro'), { recursive: true });
|
||||
fs.copyFileSync(
|
||||
path.join(ROOT, 'retro', 'SKILL.md'),
|
||||
fs.writeFileSync(
|
||||
path.join(retroDir, 'retro', 'SKILL.md'),
|
||||
extractSkillSections(path.join(ROOT, 'retro'), RETRO_E2E_SECTIONS),
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue