Skip to content

ci: run the golden-image check in cargo xtask ci (lavapipe on the runner) - #136

Merged
samitbasu merged 1 commit into
mainfrom
ci-snapshots
Nov 12, 2026
Merged

samitbasu merged 1 commit into
mainfrom
ci-snapshots

Conversation

@samitbasu

Copy link
Copy Markdown
Owner

cargo xtask ci now ends with the golden-image check, run with Mesa lavapipe. The CI runner installs mesa-vulkan-drivers before running it. This follows the rule that anything to run on every commit or push lives in cargo xtask ci, rather than in a rule to remember.

  • xtask/src/steps.rs: adds a snapshots step. The step-order test is updated.
  • xtask/src/snapshots.rs: a check now deletes stray .new.png/.diff.png files from an earlier failed run before it starts. They used to make a passing run fail.
  • .github/workflows/ci.yml: an apt step installs lavapipe.
  • README.md: the description of ci is updated, and lavapipe is now needed for ci.

Watch this run: the goldens were made with Mesa 24.1 locally. Ubuntu's lavapipe may be a different version. If the ci job fails on pixel differences only, the options are to pin the Mesa version, to give the comparison a small tolerance, or to make the runner the reference. That needs a decision.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PWiKKe8zfqGfVMCSC5L3up

Anything that should run on every commit or push belongs in cargo xtask ci,
not in a rule to remember: two batches this week reported 'no goldens
changed' without running cargo xtask snapshots. The CI runner installs Mesa
lavapipe (mesa-vulkan-drivers) for it.

A check now deletes stray .new.png/.diff.png files from an earlier failed run
first; they used to make a passing run fail.

Behaviour change: cargo xtask ci needs lavapipe locally, as the snapshots
command already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PWiKKe8zfqGfVMCSC5L3up
@samitbasu
samitbasu merged commit bbed2ec into main Nov 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant