1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

kittest: Add UPDATE_SNAPSHOTS=force (#7508)

This adds a new mode, `UPDATE_SNAPSHOTS=force`, which will lower the
threshold to zero, overwriting every image that is not _exactly_ the
same.

Most comparisons has a threshold because different GPUs render slightly
differently. However, setting that threshold accurately can be hard.

Sometimes a test will pass locally, but fail on CI. In those cases you
want to force an update of the failing test. You can use
`UPDATE_SNAPSHOTS=force` for that.

And sometimes a small change _should_ update all images, but the change
is so tiny that it falls under the threshold. Still, you want to make a
point of showing that these images have changes. You can use
`UPDATE_SNAPSHOTS=force` for that.
This commit is contained in:
Emil Ernerfeldt
2025-09-05 16:45:36 +02:00
committed by GitHub
parent eceb0b11c9
commit aedd43c88f
75 changed files with 213 additions and 171 deletions

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:39a13fdac498d6f851a28ea3ca19d523235d5e0ab8e765ea980cf8fb2f64ba35
size 387619
oid sha256:a46aebd7c611b01885819c80a4622eea44681de7f4902cf4b5debccd4b8fc000
size 387626

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4a09e926d25e2b6f63dc6df00ab5e5b76745aae1f288231f1a602421b2bbb53b
size 384721
oid sha256:73423d2df441a5851d7fb8100455b1126d83ada4409b191865d42609cb8badde
size 384699

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:14a1dc826aeced98cab1413f915dcbbe904b5b1eadfc4d811232bc8ccbe7f550
size 299556
oid sha256:fd3f36929cd6ba4caf12eee5e366387c8fc30addabc0fb0e34188aa8c0c8f5ef
size 299564

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ccd7bdd86e587bcf0577c92e10ed7c3c35195e37df109a84554ceb30a434768d
size 315482
oid sha256:4caea23dd3b110412bb17aabfaeb99328c2f33c57426476e60ea96cedb58c1dd
size 315644

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:01309596ac9eb90b2dfc00074cfd39d26e3f6d1f83299f227cb4bbea9ccd3b66
size 339917
oid sha256:8659eefdffe496e06c4c46906f1821e8a481b2b5e58bc4a0589e26edbf97d3a9
size 339845

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d59882afca42e766dddc36450a3331ca247a130e3796f99d0335ac370a7c3610
size 425517
oid sha256:f4ceba068adcac969ddb20c3f249ab057e4f914a62b59fee0222b54b15ec8813
size 424828

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:996e02c1c10a0c76fa295160d117aceb764ef506608b151bafbdf263106dbe57
size 385129
oid sha256:af4d7c3b64ac66df76a10283a4762382a8afd5cb0872bf28c000d771dced583d
size 386444

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1d842f88b6a94f19aa59bdae9dbbf42f4662aaead1b8f73ac0194f183112e1b8
size 415066
oid sha256:bccccd5a51455ccb7f6963baf8c8ce36b2097458f7e85c77333736bab27288f3
size 416329

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:043be3ece0697ea7114b7bd743e5c958610ae38ac359b6f8120886edff8541d8
size 239522
oid sha256:cf56d809f8fbb63462c4112217a869820d32be906565c2122d4fd1938c2206c2
size 239539

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f7fbeeba8ae9e34c5400727690ac7941e2711f72f2dc23e3342cb06904e4a35
size 335775
oid sha256:4a943ef2ebd13bcf87fc7d480b0eb1e91243236eb4affa6e17a9fd2c3ce14c4d
size 336517

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:96ae7be40161b0b42959b44c8f72b62fd2cd4b3b463fc7d5bcd02ead445edca1
size 355550
oid sha256:591f5001e8c5a63d063929a7bb357658a1f07b2a1be93adac3790938de1fbbc4
size 356858

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4991fdf58542ca14162cbd7f59b6a30d6c3d752a1215cc1890359bc3a1eb23c9
size 388912
oid sha256:c3018bc027223a535541fa7e87d3654ab9604c5c4ca9db5751f9ff1f8e9f5e76
size 389206

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ac8cbcdeed098d52009be77c8815931553d979f5aaf0baf0a9296daf6373605
size 402699
oid sha256:fe816c0eff10c65f4634b0e795ac49d07ebfb064cba7199561028db8fa85c05c
size 402833

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:605091767a73a934981d10d0ed59ff561772ed61e7691303b75b35ae01163ecc
size 336722
oid sha256:ce99e4a0da54c6349e270b4fdf6572db95eb997df6221cdc21f4aba8e123c7a3
size 336775

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:465e34d94bf734a2a7a1e8e4a71ce64c908c737a7c4fa2a6f812351f2aaa6808
size 233018
oid sha256:7825ca0dac7c330c269f4469ecf35c02cc147ed9d966ace5576fb2f52599449c
size 233025

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:90cfa6e9be28ef538491ad94615e162ecc107df6a320084ec30840a75660ac35
size 8759
oid sha256:c2a324562613323b6c94eaab6b7975576eb85f6d095ff818d2d36e116d370a8e
size 8752

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:effb4a69a7a6af12614be59a0afb0be2d2ebad402da3d7ee99fa25ae350bf4a0
size 8761
oid sha256:73e61063bf68035aebc244236747dd3af13d1c80df2c4cbbdacda8f796342e62
size 8754

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cf5032b2a08f993ae023934715222fe8d35a3a2e5cc09026d9e7ea3c296a9dc7
size 11609
oid sha256:7bcc46a2cf63d6361b28cf7b730a3bf717dbe87065c24c3ead6fddf593ea3080
size 11606

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:84d0c37a198fb56d8608a201dbe7ad19e7de7802bd5110316b36228e14b5f330
size 12140
oid sha256:db71fdcc89ca9f058559a2c2cd6bd1f0b7df1a0875d1d57f89a9437f14dfe649
size 12136

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b7ceaa95512c67dcbf1c8ba5a8f33bf4833c2e863d09903fb71b5aa2822cc086
size 7889
oid sha256:c4866b8bbefe79275480578f5465ec7485a642253f7ef66423e0f0e84b33a8d8
size 7890

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c6a7555290f6121d6e48657e3ae810976b540ee9328909aca2d6c078b3d76ab4
size 8735
oid sha256:161522c5bc65a03f3a12615729788b0a13b24a8b0d4d42de7f2c8a8f0ff46687
size 8727

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ff776897760d300a4f26c10578be0d9afed7b4ae9f95f941914e641c2a10cb8
size 13798
oid sha256:7390b7a44bd0132d61f71598c3c8f13f0feba4f2e28b019dce9ab74ae17d9e14
size 13783

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9cd6a7f38c876cc345eae1a5e01f7668d4642b70181198fe0f09570815e47da8
size 13489
oid sha256:e3f62e86ef77c26dd2d54c5f94221506d8ad1517eeb26c107c6c321f9e94af6c
size 13474

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1cd5e9ad416c3a0b6824debc343f196e6db90509fd201c60c7c1f9b022f37c1d
size 12322
oid sha256:befff30cab57644f4e19e90d5d8a7d59093d57b8af3865c94ecffcb7ece9f2fb
size 12327

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ec75c3fccec8d6a72b808aba593f8c289618b6f95db08eb3cdb20a255b9d986e
size 13450
oid sha256:a5dffe081a596a17928e1fd53df04c4eac69c0bcebc75ecec7fbc9133a5380b0
size 13461

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:583fa78f79b39522a44c871642114ead9ed1d177bb8a3807d2c9e2cd89bf0b44
size 11076
oid sha256:297dda97ae7cc4415c6679ad914a5fbee96cad527e98f2afc797b665d9b7f48f
size 11070

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:895914fa37608ff68c5ae7fdd22d0363da26907c78d4980f6bf1ed19f7e5f388
size 11697
oid sha256:0bb35eac75aed7f0fcef4d467d894e4af459f0f3efe43c265384e25f31cde4c4
size 11744

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eed80e11dd3ba478217cf004654934214b522ea666074e023dda9a323473615a
size 12452
oid sha256:96057a478dd4242aa74fea9d11ff4f5181a0c414291dbabb536076af85b83542
size 12453

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e0c4277eebadb0c350b5110d5ea7ff9292ab2b0231d6b36e9ada3aeefc7c198
size 12510
oid sha256:b02284574a8b5959d473cdc786ac4b323e0d7c0ebeca2933688cf51ef62a391d
size 12513

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ec09e0e3432668c0d08bbba0aa8608c4eefba33d57f2335fdf105d144791406d
size 11036
oid sha256:c4f3597075a77afbde2ddb7513d3309eb60f78cea6e5d4c108bbc5faed3ec937
size 11035