New advertisers: 50% off your first month with code FIRSTMONTHSee slots
microsoft avatar

Update Screenshots

Downloads CI-generated screenshot baselines and commits the blocks-ci hash file after reviewing diffs.

skills.sh installs
3K
GitHub stars
195.7K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the blocks-ci screenshot hash workflow: fetching expected hashes from CI, verifying visual changes, and committing the updated baseline file
  • Includes gh commands for locating failed job logs and artifacts, plus a Pillow-based pixel diff to localize changes between old and new images
  • Enforces never regenerating hashes locally, since macOS and Windows rendering produces different bytes than the Linux CI runners
  • Designed for microsoft/vscode contributors handling a failed "Screenshots & Tests" check or a screenshot diff reported on a PR

Install

$ npx -y skills add microsoft/vscode --skill update-screenshots -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Update Component Screenshots from CI

Screenshot images are not stored in the repository — they live in an external service (hediet-screenshots.azurewebsites.net), keyed by commit SHA. But a subset of fixtures is pinned by hash in test/componentFixtures/blocks-ci-screenshots.md, and that file is committed. When those hashes change, CI fails and you must update the file.

Two different outcomes, only one of which blocks

The Screenshots & Tests job in .github/workflows/component-fixtures.yml produces two independent results:

ResultBlocking?Action
Screenshot diff report (PR comment with before/after images)No — informationalReview the visuals. Nothing to commit.
blocks-ci hash mismatchYes — fails the checkUpdate blocks-ci-screenshots.md and commit.

A fixture opts into the blocking gate with labels: { kind: 'screenshot', blocksCi: true }. Only those fixtures appear in blocks-ci-screenshots.md.

The failure looks like this:

Details

Repository
github.com/microsoft/vscode
Categories
Testing & QA, Git & Releases
First seen
May 16, 2026

More from microsoft/vscode

All 11

Similar to Update Screenshots

More Testing & QA