question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Snapshots are different between different systems

See original GitHub issue

Hi, I tried to make a snapshot of a bigger part, about 300x200 pixels big. On both, the development system and CI systems (both Windows), the size differs. So I made a snapshot of a smaller part (about 44x36 pixels) and disabled scaling: compareSnapshotCommand({ scale: false });. Now the size is equal but the snapshot taken at our CI server shows some pixels (about 7%) that are not equal to the snapshot taken on my development machine.

an example: snapshot diff

Do you know if this is normal and forces us to use always a higher threshold than 0.0?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mjhea0commented, Oct 23, 2020

Yeah, that’s how I currently run tests to prevent this sort of thing. The tests run out of a docker container so you could mimic how I set up my tests / project: https://github.com/mjhea0/cypress-visual-regression/tree/master/docker.

Going forward, I wonder if I detail how to do this easier and warn people about snaptshot diffs being different on different systems in the README?

0reactions
mjhea0commented, Jun 22, 2021

Closing due to lack of activity… feel free to reopen

Read more comments on GitHub >

github_iconTop Results From Across the Web

Backups vs Snapshots: Differences and Examples
The main difference between a Backup and a Snapshot is that Backups are isolated copies of data. They aren't connected to your virtual...
Read more >
Difference between Backup and Snapshot - GeeksforGeeks
Backup comprises only the file system. Snapshots comprise of different types of systems like the files, software, and settings of that type.
Read more >
Snapshots are different between different systems #52 - GitHub
Hi, I tried to make a snapshot of a bigger part, about 300x200 pixels big. On both, the development system and CI systems...
Read more >
Storage 101: Snapshots vs backup - Computer Weekly
We go over the basics of snapshots. They are a quick and accessible way of protecting data, but they are not a substitute...
Read more >
Snapshots vs. Backups vs. Replication: What's the Difference? |
Backups, snapshots, and replication are often confused but are slightly different things with the same ultimate goal of protecting your data ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found