Skip to content

ci: retain actual and diff images from screenshot matcher failures #3663

Open

Description

@schlessera

Out of scope

No product UI change, baseline update, assertion or image-comparator relaxation, proof retry, browser population reduction, offline-guard change, retention-policy expansion or broad temporary-directory upload.

Context

Found while qualifying #3605 / PR #3662. This is a new concrete automatic-failure case after #1903's delivered consumer capture retention. That issue explicitly reported automatic failure images absent at its closure; its successful capture evidence does not cover this case.

Layout job 128418980795 failed two screenshot comparisons in conversation-controls.offline.tsx (toMatchScreenshot, packages/ui-react/tests/browser/conversation-controls.offline.tsx:70). Its log names actual and diff PNGs under packages/ui-kit/ui-react/tests/browser/conversation-controls.offline.tsx/, with suffixes -actual-chromium-linux.png and -diff-chromium-linux.png.

The downloaded layout-proof-2 artifact retains six full-page interruption captures but neither generated actual/diff image. The archive's SHA-256 matches the Actions digest 4960a5534571c623ad49320c92377ff04d438a13aab999508d2cd58cbe216197; ZIP CRCs and safe paths were checked. Actual checkout 7f1345b5212a74369ea15b9827e1a52af0948720 has parents 1619741f291f525d17cde4970a5ada40644117c1 and c66b347ba5c8e48872a8b012d2f6b75fc758233b, tree a9f829a544375903c03732a204a286b1eb0f2e9d. The same failure independently generates both images locally at the logged paths.

The selected upload patterns (Proof receipts and failure diagnostics, .github/workflows/ci.yml:480-483) require an __screenshots__ path and a numeric suffix. The unit-worker predicate (automaticScreenshot, scripts/unit-workers.ts:56) assumes the same shape. These do not describe this matcher output. Verify the installed matcher destination and every relevant collector before changing either; a YAML substring alone does not establish retention.

Scope

Retain bounded generated screenshot-matcher actual/diff diagnostics and their execution identity in the existing selected hosted proof artifacts, including private unit-worker handoff where applicable. Keep generated diagnostics distinct from unchanged tracked references and successful-state review captures.

Acceptance criteria

  • A deliberate, isolated matcher mismatch still fails its intended visual assertion and produces actual/diff PNGs; no guard, tolerance or baseline is weakened.
  • The corresponding downloaded hosted artifact contains those generated PNGs with nonzero dimensions and matching byte hashes, plus the exact job/worker checkout receipt. Verify ZIP digest, CRCs and bounded safe paths.
  • Audit regular CI, draft heavy feedback and unit-worker cleanup for this output class. Preserve all existing receipt/capture classes, hidden-file handling, always-on-failure upload, seven-day retention, offline guards, pins, deadlines and selected populations.
  • Unchanged tracked reference images remain excluded from generated-diagnostic claims. Document any intentionally local-only output; do not collect arbitrary temporary or workspace contents.

Verification

Keep the recorded failing run as the omission receipt. Use a named mismatch control that reaches the intended assertion, restore it, and verify the actual downloadable generated images against their source bytes and immutable execution identity. Run focused collector regressions and contribution preflight. No API key or paid inference is needed.

Contract impact

None. This is proof-diagnostic retention, with no supported package API or provider-history change. It does not repair or qualify the UI assertions that originally failed.

Activity

  1. added
    type: fixSomething is broken and must behave the way it is documented.
    area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.
    area: ciCI workflows, the gates they run, release scripts, packaging.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    on Nov 7, 2026
  2. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    2026-11-10 triage at main d79eeed0a: priority: p2. This is wanted proof-diagnostic retention with a recorded omission receipt, but it has no milestone and no ruling, and it blocks nothing. The cited upload patterns (.github/workflows/ci.yml:480-483) and automaticScreenshot (scripts/unit-workers.ts:56) still require the __screenshots__ numeric-suffix shape, so the gap is unchanged and agent-ready stays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: fixSomething is broken and must behave the way it is documented.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions