Skip to content

Commit 775ffc2

Browse files
committed
CLI 0.2.20 (after #128's 0.2.19); docs: images go by hash, PDFs keep the CLI's fingerprint; plugin 0.1.48
cli.md and screenshots.md say the CLI sends images by their SHA-256 and VisualCI fingerprints them; pdfs.md (and its skill) says why PDFs keep their fingerprint: their bytes change every run while what they draw doesn't.
1 parent ad0c161 commit 775ffc2

11 files changed

Lines changed: 19 additions & 14 deletions

File tree

‎.claude-plugin/marketplace.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"plugins": [
66
{
77
"name": "visualci",
8-
"version": "0.1.47",
8+
"version": "0.1.48",
99
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
1010
"author": { "name": "DocSpring", "url": "https://visualci.com" },
1111
"homepage": "https://visualci.com/docs/skills/",

‎.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "visualci",
3-
"version": "0.1.47",
3+
"version": "0.1.48",
44
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
55
"author": { "name": "DocSpring", "url": "https://visualci.com" },
66
"homepage": "https://visualci.com/docs/skills/",

‎.cursor-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visualci",
33
"displayName": "VisualCI",
4-
"version": "0.1.47",
4+
"version": "0.1.48",
55
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
66
"author": {
77
"name": "DocSpring"

‎Cargo.lock‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resolver = "3"
33
members = ["crates/*", "server", "server/migration"]
44

55
[workspace.package]
6-
version = "0.2.19"
6+
version = "0.2.20"
77
edition = "2024"
88
license = "Apache-2.0"
99
repository = "https://github.com/DocSpring/visualci"

‎app/Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎gemini-extension.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "visualci",
3-
"version": "0.1.47",
3+
"version": "0.1.48",
44
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
55
"mcpServers": {
66
"visualci": {

‎server/frontend/content/docs/pdfs.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Documents are compared exactly by default: any changed pixel is a change.
4141

4242
## Fingerprints
4343

44-
Before uploading, the CLI fingerprints each PDF by what it draws. The fingerprint leaves out creation dates, document IDs and producer strings, so a regenerated PDF that draws the same thing still matches, and nothing is uploaded, rendered or diffed.
44+
Before uploading, the CLI fingerprints each PDF by what it draws. The fingerprint leaves out creation dates, document IDs and producer strings, so a regenerated PDF that draws the same thing still matches, and nothing is uploaded, rendered or diffed. (Images are sent by their file's hash alone, but a PDF's bytes change on every run, so it keeps its fingerprint: without it, every PDF would be uploaded every run.)
4545

4646
Each page is fingerprinted too, so pages are matched by content instead of by position. A document that gains a page shows one inserted page, not every later page changed.
4747

‎server/frontend/content/docs/reference/cli.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ Adds files or directories of them to a build: PDFs, PNG, JPEG and WebP images, a
4141
| `--manifest <file>` | A JSON array or JSON Lines of `{"name", "path", "platform"?, "threshold"?, "engine"?, "format"?, "ignore"?}`, for test helpers that choose names themselves. `ignore` is `{"json_paths": [...], "text_patterns": [...]}` for that snapshot only. |
4242
| `--allow-empty` | Succeed when there's nothing to upload. Without it, an upload that finds no snapshot files is an error. |
4343

44+
`upload` sends each image by its file's SHA-256 alone, without decoding it: a file VisualCI already has isn't uploaded,
45+
and VisualCI fingerprints the new ones by their pixels itself. PDFs still carry the CLI's fingerprint of what they draw,
46+
because a PDF's bytes change on every run (its creation date and ID) while what it draws doesn't: without the
47+
fingerprint, every PDF would be uploaded on every run.
48+
4449
With 500 or more snapshots, `upload` first sends a hash of the run and one per group of names (`group_depth` in
4550
visualci.yml), and then only the snapshots of groups that differ from their baselines; the rest are carried forward on
4651
the server, at 1 credit per group (see [Large suites](/docs/reference/credits/#large-suites)). It says how many groups

‎server/frontend/content/docs/screenshots.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ VisualCI compares PNG, JPEG and WebP images. Send the screenshots your tests alr
99
visualci upload tmp/screenshots
1010
```
1111

12-
Each file's path, relative to the directory you upload, without the extension, is its snapshot name. The CLI fingerprints each image by its pixels first, so an image VisualCI has already seen isn't uploaded or diffed again.
12+
Each file's path, relative to the directory you upload, without the extension, is its snapshot name. The CLI sends each image's SHA-256 first, so a file VisualCI already has isn't uploaded again. VisualCI fingerprints new images by their pixels, so a re-encoded screenshot with the same pixels (after a browser upgrade, say) is uploaded once and compares unchanged, without a diff.
1313

1414
## Platforms
1515

0 commit comments

Comments
 (0)