-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Experiment] Store snapshots in
git lfs
(#643)
This a living experiment to determine how much LFS bandwidth we would use if we stored our snapshot tests in Git LFS. The intention is once this is merged, we will then add some additional snapshot tests, which use this new folder, but which won't fail (at least not on CI?) if LFS downloading failed. That way, we have a graceful degradation if we do run out of bandwidth, but improving resilience if LFS is working.
- Loading branch information
Showing
23 changed files
with
329 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# LFS settings | ||
# If changing, also change in .github/workflows/ci.yml | ||
vello_tests/snapshots/*.png filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Vello Tests | ||
|
||
This folder contains the infrastructure used for testing Vello. | ||
The kinds of test currently used are: | ||
|
||
- Property tests | ||
- These tests are run on both the GPU and CPU. | ||
- These create scenes with | ||
- Snapshot tests | ||
- These tests use the GPU shaders as a source of truth, but the CPU shaders are also ran for these tests. | ||
- These have a non-exact comparison metric, because of small differences between rendering on different platforms. | ||
This includes differences from "fast math" on Apple platforms. | ||
- Comparison tests | ||
- These tests compare the results from running a scene through the CPU and GPU pathways. | ||
- This ensures that the GPU renderer matches the reference CPU renderer. | ||
- We hope to largely phase these out in favour of additional snapshot tests. | ||
|
||
## LFS | ||
|
||
We have two groups of snapshot tests. | ||
The first of these groups are the smoke snapshot tests. | ||
This is a small set of tests for which the reference files are included within this repository. | ||
These reference files can be found in `smoke_snapshots`. | ||
These are always required to pass. | ||
|
||
We use git Large File Storage for the rest of the snapshot tests. | ||
This is an experiment to determine how suitable git LFS is for our needs. | ||
These tests will detect whether the LFS files failed to download properly, and will pass on CI in that case. | ||
LFS downloads could fail if the Linebender organisation has run out of LFS bandwidth or storage. | ||
If this occurs, we will re-evaluate our LFS based snapshot testing solution. | ||
|
||
To run these tests locally, install [git lfs](https://git-lfs.com/), then run `git lfs pull`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.oversized.png | ||
*.new.png | ||
!.gitignore |
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
*.oversized.png | ||
*.new.png | ||
!.gitignore |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.