-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Testing, CI] Increased threshold value to make Resizetizer unit tests pass on arm64 machines #27684
[Testing, CI] Increased threshold value to make Resizetizer unit tests pass on arm64 machines #27684
Conversation
Hey there @anandhan-rajagopal! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
@@ -14,7 +14,7 @@ public class BaseTest : IDisposable | |||
{ | |||
private const string TestFolderName = "Microsoft.Maui.Resizetizer.Tests"; | |||
private const string TestImagesFolderName = "imageresults"; | |||
private const double ImageErrorThreshold = 0.0027; | |||
private const double ImageErrorThreshold = 0.27; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we think about this diff @mattleibow @BretJohnson ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anandhan-rajagopal Could you share more details? Why required the change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsuarezruiz The issue has been reproduced on ARM-based operating systems, where the failures result from differences in image comparison, with a maximum threshold of 0.27 percent for each test. Each test fails due to image discrepancies at several values, so I selected the maximum difference observed, which appears to be related to edge pixel variations. Upon investigation, it seems that these differences are likely influenced by the screen resolution of the operating system.
Seems we have other tests failing now related with Skia cc @mattleibow
|
@rmarinho Identical pixel-level variations in the image were observed, so a maximum threshold value of 0.07 was added for these tests. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run MAUI-public |
Azure Pipelines successfully started running 1 pipeline(s). |
Description of Change
This pull request includes changes to update the architecture for macOS builds and adjust image error thresholds in unit tests. The most important changes are as follows:
Unit Test Adjustments:
src/SingleProject/Resizetizer/test/UnitTests/BaseTest.cs
: Increased theImageErrorThreshold
constant from0.0027
to0.27
to allow for greater variance in image similarity tests.src/SingleProject/Resizetizer/test/UnitTests/BaseTest.cs
: Modified theAssertFileMatchesReal
method to use theImageErrorThreshold
constant when callingImageAssert.Equivalent
.Issues Fixed
Fixes #26516