update-screenshots

작성자: microsoft

최신 CI 실행에서 스크린샷 기준선을 다운로드하여 커밋합니다. CI에서 컴포넌트 스크린샷 기준선을 업데이트, 수락 또는 새로고침하라는 요청을 받았을 때 사용합니다.

npx skills add https://github.com/microsoft/vscode --skill update-screenshots

Update Component Screenshots from CI

Screenshot baselines are no longer stored in the repository. They are managed by an external screenshot service (hediet-screenshots.azurewebsites.net). The CI workflow uploads screenshots to this service and diffs them automatically.

When the Checking Component Screenshots GitHub Action detects changes, it posts a PR comment with before/after comparisons. No manual baseline updates are needed — the screenshots on the main branch commit become the new baselines automatically after merge.

What Changed

  • Baseline images were removed from test/componentFixtures/.screenshots/baseline/.
  • Git LFS is no longer used for screenshot storage.
  • The screenshot service stores images keyed by commit SHA and handles diffing.

If Screenshots Need Investigation

  1. Check the PR comment posted by the CI workflow for visual diffs.
  2. Download the screenshots artifact from the CI run for the raw captured images:
gh run download <run-id> --name screenshots --dir .tmp/screenshots
  1. Compare locally if needed. The artifact contains the full set of captured screenshots.