Repository navigation
feat(action): add failure-only report uploads and size warnings - #1433
BenSheridanEdwards wants to merge 1 commit into
Conversation
|
Note Synthetic action dogfood receipt. This report is the final deliberately failing fixture in the action contract suite. It proves that unproven evidence is rejected; it does not certify this pull request. 🗺️ StyleProof report📊 View the side-by-side visual report →Coverage, determinism, report/diff consistency, or Change Reach ( |
|
Note Live StyleProof-on-StyleProof (advisory). This report is captured from the surfaces declared in 🗺️ StyleProof reportReport publication was skipped by the upload policy. The verdict is in the run summary. Advisory-only mode: no reviewable changes detected — the StyleProof dogfood check remains green. |
Why
Teams need predictable CI artifact storage without losing the evidence required for review. The existing single-bundle, changed-only default needs explicit compression, a failure-only publication option, and visible guidance for large reports.
Closes #1418.
What changed
report-uploadacceptson-failure: publish evidence failures and failing certify diffs; skip successful advisory/content-only reports. Untrusted captures retain their evidence. Approval configurations reject this option.Reviewer view
Proof
The fixture explicitly states that it does not certify a CSS comparison. It retains a synthetic 1.1 MB JSON receipt to exercise the real current-branch renderer. Reproduce after building with
node docs/proof/artifact-storage/generate.mjs.Before implementation, the new scenarios produced 14 failures and one passing compatibility case (the existing single-workflow shape). All 250 affected Action/init/HTML tests then passed with one Node test worker. Astra found a P2 mismatch with GitHub’s case-insensitive boolean comparisons; normalized flags/modes fix it. Five added regressions failed before that fix, and all 32 targeted publication checks pass afterward.
Proof Law: this PR is false if failure-only publication suppresses untrusted review evidence, permits approval workflows without a report, drops a failing certify diff, uploads every raw capture by default, omits the large-estimate warning, or relaxes the existing byte budget/receipt rules.
Behaviour changes
The existing
on-changedefault and its clean-run skip remain. Custom callers may opt intoon-failure; the documentation defines failure by the StyleProof verdict rather than promising an artifact when report generation itself fails. A skipped-publication comment now describes the upload policy without falsely claiming that nothing changed. Large artifact reports gain an HTML size notice.Not asked for
Deleting existing artifacts, changing CI permissions or approval rules, removing map evidence from the trusted split stage, changing capture coverage, releasing the package, or touching held report/release PRs.
Review guide
Start with the
deliveryandreport-artifactsteps inaction.yml, thenrenderArtifactHtmlinsrc/report/html.ts. Large estimates render a second time to fit the notice under the same budget. The new Action cases execute the actual inline program; the scaffold tests inspect real generated workflows. The proof generator retains no large fixture files in the repository.Verification summary
Current security hold — not merge-ready. A fresh bounded
pnpm audit --audit-level=highfails for locked picomatch 4.0.5 (GHSA-fc5q-39xc-vjpf). No validated compatible remedy is currently available. No dependency, audit-threshold, release-age or other security control was changed. Earlier passing implementation/hosted checks below do not establish current security readiness.Focused Action/init/HTML suites: 250 passed, zero failures, one Node worker.
Demo freshness: passed (
node scripts/demo-report.mjs --check).Final
pnpm run verify: passed, including 7092 unit tests, zero failures.Independent Astra review found one P2 boolean-comparison mismatch; it is fixed and covered by five red-then-green cases.
The earlier full run had one workflow-example mismatch (7,091 passing); the checked-in example now contains the intended compression setting and its unchanged comparison test passes.
The committed PNG was inspected at reviewer size; its synthetic-fixture and uncompressed-estimate qualifications are fully visible.
Effective hook path was checked in this worktree:
.husky/_, with no config.worktree override. The preceding Route state recipe's one-shot mock is never removed and can answer a later crawl surface #1417 commit/push logs show all intended hooks executing.Normal pre-commit hooks passed (lint, formatting, gitleaks, Fallow, commitlint). Normal pre-push hooks passed: 1552 unit tests; 1267 Chromium tests passed, one existing non-Chromium-only case skipped. The hosted Firefox project selects that case.
Hosted
requiredand latest PR-body validation passed on25352db5f9606204bc6f5e569cf545f0788610c2.Final independent Astra review: APPROVE recommendation on that exact head. The reviewer also inspected the committed PNG and independently checked boolean compatibility and failure-policy cases. No GitHub approval, human signoff or merge was submitted.