chore: refresh suite count evidence (#2000)

This commit is contained in:
Affaan Mustafa
2026-05-19 09:58:53 -04:00
committed by GitHub
parent 3304848beb
commit e7a7b2aaa3
9 changed files with 56 additions and 26 deletions

View File

@@ -178,7 +178,7 @@ function seedRepo(rootDir, overrides = {}) {
'Operator dashboard',
'GitGuardian',
'macOS/Ubuntu/Windows test matrix',
'2545 passed',
'2547 passed',
'Business baseline',
'$1,728/mo',
'$8,272/mo'
@@ -424,7 +424,7 @@ function runTests() {
'Operator dashboard',
'GitGuardian',
'macOS/Ubuntu/Windows test matrix',
'2545 passed',
'2547 passed',
'Business baseline',
'$1,728/mo',
'$8,272/mo',

View File

@@ -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');

View File

@@ -54,7 +54,7 @@ function seedRepo(rootDir, overrides = {}) {
].join('\n'),
'docs/releases/2.0.0/ecc-2-hypergrowth-release-command-center.md': [
'Keep raw absolute paths out of public docs',
'Validate `video-suite-production.md`',
'Pick final video cuts, upload after approval, and attach public URLs',
].join('\n'),
'docs/releases/2.0.0-rc.1/preview-pack-manifest.md': 'video-suite-production.md',
'docs/releases/2.0.0-rc.1/launch-checklist.md': 'release video suite',