mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-04 18:36:54 +02:00
v1.91.9.0 feat: test value bar in plan-eng-review, review, qa and ship, plus /test-audit (#2998)
This commit is contained in:
1 parent
943105f109
commit
96764e80a6
56 files changed
+2445
-216
No files matched your search
@@ -250,10 +250,11 @@ describe('SKILL.md size budget regression (gate, free)', () => {
|
||||
// estimate was a moving target: 4177 solo, 8356 and 8041 in two parallel
|
||||
// runs. A repo-budget ratchet measures the catalog that ships; CI always
|
||||
// checks the PR's committed tree anyway.
|
||||
const trackedPaths = execSync('git ls-files -- "*/SKILL.md"', { cwd: REPO_ROOT, encoding: 'utf-8', timeout: 30_000 })
|
||||
// List paths from HEAD too: a staged-but-uncommitted skill is in the index
|
||||
// but not yet in HEAD, so `git ls-files` + `git show HEAD:` disagree.
|
||||
const trackedPaths = execSync('git ls-tree -r --name-only HEAD', { cwd: REPO_ROOT, encoding: 'utf-8', timeout: 30_000, maxBuffer: 16 * 1024 * 1024 })
|
||||
.split('\n')
|
||||
.filter(Boolean)
|
||||
.filter((p) => p.split('/').length === 2);
|
||||
.filter((p) => p.endsWith('/SKILL.md') && p.split('/').length === 2);
|
||||
let descriptionBytes = 0;
|
||||
for (const rel of trackedPaths) {
|
||||
const committed = execSync(`git show HEAD:${JSON.stringify(rel)}`, {
|
||||
|
||||
Reference in new issue
Block a user