mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-03 09:56:57 +02:00
fix(qa-evidence): accept a single limits string; test(qa-callers): read the handoff first when a probe snapshot changes
CI late-input spent a turn rewriting limits as an array after materialize refused a string, and a ten-read sweep hunting for the changed input before it read reports/HANDOFF.md, then timed out at 300 s.
This commit is contained in:
1 parent
73e3bae953
commit
86191bbc23
3 files changed
+11
-2
No files matched your search
@@ -342,3 +342,12 @@ test('captures list declared-but-unrun required probes without judging them', ()
|
||||
expect(result.status, result.stderr).toBe(0);
|
||||
expect(receipt(result.stdout).requiredRemaining).toEqual(['bun run probe -- reject']);
|
||||
});
|
||||
|
||||
test('materialize accepts a single limits string as a one-item list', () => {
|
||||
const f = fixture();
|
||||
expect(f.capture('001', 'console.log(JSON.stringify({ step: 1 }))').status).toBe(0);
|
||||
f.json('annotations.json', { revision: 'fixture-revision', limits: 'One probe only.', evidence: [{ capture: '001', command: 'probe', contract: 'README.md', expected: 'step 1', classification: 'pass' }] });
|
||||
const report = f.run('materialize', f.root, 'annotations.json');
|
||||
expect(report.status, report.stderr).toBe(0);
|
||||
expect(JSON.parse(fs.readFileSync(path.join(f.root, 'evidence.json'), 'utf8')).limits).toEqual(['One probe only.']);
|
||||
});
|
||||
Reference in new issue
Block a user