Doctor: the performance rules are errors (owner's decision for 1.18.0); lowered or silenced per rule in iapl-doctor.json; growth stays warnings; audit reports them as errors; legacy:site lists perf-* errors an old site meets; docs, skills, changelog; reference skills refreshed

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 16:10:23 +01:00
co-authored by Claude Opus 5.5
parent f0127ac1b8
commit 8cf5a58045
19 changed files with 136 additions and 69 deletions
+6 -1
View File
@@ -104,7 +104,12 @@ const open = report.findings.filter((f) => !f.silenced)
const count = (severity) => open.filter((f) => f.severity === severity)
for (const f of open.filter((x) => x.severity !== 'info')) {console.log(` ${f.severity}: ${f.rule} — ${f.message}`)}
results.push(`ipal-doctor: ${count('error').length} error(s), ${count('warning').length} warning(s) [${[...new Set(count('warning').map((f) => f.rule))].join(', ')}], ${count('info').length} info [${[...new Set(count('info').map((f) => f.rule))].join(', ')}]`)
if (count('error').length) {
// The performance rules are errors since 1.18.0 (the owner's decision; the changelog tells existing sites that
// iapl-doctor can fail on them and how to lower or silence one). An old site may meet them — e.g. Playwright without a
// budget test (perf-budgets) — and still work: they are listed, not failed. Any other error still fails.
const expected = count('error').filter((f) => f.rule.startsWith('perf-'))
if (expected.length) {results.push(`ipal-doctor: performance rules an old site meets (errors since 1.18.0, expected): ${[...new Set(expected.map((f) => f.rule))].join(', ')}`)}
if (count('error').length > expected.length) {
console.error('[legacy:site] ✗ the doctor reports an error on a site that had none')
finish(1)
}