mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-20 19:29:58 +08:00
chore: refresh suite count evidence (#2000)
This commit is contained in:
@@ -68,7 +68,7 @@ function seedRepo(rootDir, overrides = {}) {
|
||||
'Operator dashboard',
|
||||
'GitGuardian',
|
||||
'macOS/Ubuntu/Windows test matrix',
|
||||
'2545 passed'
|
||||
'2547 passed'
|
||||
].join('\n'),
|
||||
'docs/releases/2.0.0-rc.1/operator-readiness-dashboard-2026-05-19.md': [
|
||||
'This dashboard is generated by `npm run operator:dashboard`',
|
||||
@@ -220,12 +220,38 @@ function runTests() {
|
||||
assert.ok(parsed.checks.some(check => check.id === 'supply-chain-runbook' && check.status === 'pass'));
|
||||
assert.ok(parsed.checks.some(check => check.id === 'operator-dashboard-command' && check.status === 'pass'));
|
||||
assert.ok(parsed.checks.some(check => check.id === 'operator-readiness-dashboard' && check.status === 'pass'));
|
||||
assert.ok(parsed.checks.some(check => check.id === 'release-evidence-current' && check.status === 'pass'));
|
||||
assert.deepStrictEqual(parsed.top_actions, []);
|
||||
} finally {
|
||||
cleanup(projectRoot);
|
||||
}
|
||||
})) passed++; else failed++;
|
||||
|
||||
if (test('release evidence gate rejects stale root suite counts', () => {
|
||||
const projectRoot = createTempDir('platform-audit-stale-release-evidence-');
|
||||
|
||||
try {
|
||||
seedRepo(projectRoot, {
|
||||
'docs/releases/2.0.0-rc.1/publication-evidence-2026-05-19.md': [
|
||||
'Release video suite',
|
||||
'growth outreach',
|
||||
'Operator dashboard',
|
||||
'GitGuardian',
|
||||
'macOS/Ubuntu/Windows test matrix',
|
||||
'2546 passed'
|
||||
].join('\n')
|
||||
});
|
||||
|
||||
const parsed = JSON.parse(run(['--format=json', `--root=${projectRoot}`, '--skip-github'], { cwd: projectRoot }));
|
||||
const releaseEvidence = parsed.checks.find(check => check.id === 'release-evidence-current');
|
||||
|
||||
assert.strictEqual(releaseEvidence.status, 'fail');
|
||||
assert.ok(parsed.top_actions.some(action => action.id === 'release-evidence-current'));
|
||||
} finally {
|
||||
cleanup(projectRoot);
|
||||
}
|
||||
})) passed++; else failed++;
|
||||
|
||||
if (test('markdown output can be written as an operator artifact', () => {
|
||||
const projectRoot = createTempDir('platform-audit-markdown-');
|
||||
const outputPath = path.join(projectRoot, 'artifacts', 'platform-audit.md');
|
||||
|
||||
Reference in New Issue
Block a user