Fix three intermittent test failures: large developer profiles, a docs-audit fixture and an error-review fixture (#4745)

`gstack-developer-profile --vibe` no longer fails once a profile grows
past 64 KB, and two paid test fixtures stop giving the model
contradictory instructions.

These were the repeat failures in this week's test runs; fixing them
keeps the release checks green without retries.

Nothing to do as a reader.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-23 17:44:40 +00:00
1 parent cb06a6dec1
commit b5eb401e45
6 files changed
+40 -19

No files matched your search

+14
View File
@@ -621,6 +621,20 @@ describe('gstack-developer-profile --vibe', () => {
// Default profile (all 0.5) is closest to Builder-Coach or Polymath
expect(lines[0].length).toBeGreaterThan(0);
});
test('a profile larger than a pipe buffer or one argument still returns its archetype', () => {
runDev('--read');
const file = path.join(tmpHome, 'developer-profile.json');
const base = readProfile() as any;
for (const [count, bytes] of [[450, 65_536], [900, 131_072]]) {
const sessions = Array.from({ length: count }, (_, i) => ({ ts: new Date(0).toISOString(), skill: 'office-hours', note: `session ${i} `.padEnd(120, 'x') }));
fs.writeFileSync(file, JSON.stringify({ ...base, sessions }));
expect(fs.statSync(file).size).toBeGreaterThan(bytes);
const r = runDev('--vibe');
expect(r.status).toBe(0);
expect(r.stdout.trim().split('\n').length).toBe(2);
}
});
});
// -----------------------------------------------------------------------