Skip to content

chore: fix When_ShapeVisual_ViewBox_Shape_Combinations flakiness - #18890

Merged
ramezgerges merged 2 commits into
unoplatform:masterfrom
ramezgerges:shapevisual_viewbox_test_flaky
Nov 27, 2024
Merged

ramezgerges merged 2 commits into
unoplatform:masterfrom
ramezgerges:shapevisual_viewbox_test_flaky

Conversation

@ramezgerges

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): closes #18752

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 148147 has failed on Uno.UI - CI.

@ramezgerges

Copy link
Copy Markdown
Contributor Author

The test looks stable on windows and linux. It seems to be failing (not even flaky) on macOS for some reason. We can either ignore it for macos only or spend some time to figure out the discrepency.

@MartinZikmund

MartinZikmund commented Nov 25, 2024 •

Copy link
Copy Markdown
Member

@spouliot would you have a chance to see why the test is failing here please?

@spouliot

Copy link
Copy Markdown
Contributor

@MartinZikmund this is similar to previous issues where the metal rendering can differ a little bit. IOW visually it's identical but the data can vary by a bit.

If we allow a diff of 1 (it's a byte-per-byte comparison) then the test runs successfully. I can submit a patch (later, tonight) where this is done only on macOS.

Notes

  • Locally the first images failed because they are twice at large as the reference images when executed on a 2x (retina) screen. Running the tests on a normal 1x screen is fine.
  • There are many MTLPixelFormat* that are not really supported (process would abort) or cause other issues with what 3rd party code assumes. Using MTLPixelFormatRGBA8Unorm has been the less problematic so far.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@ramezgerges
ramezgerges merged commit d12128a into unoplatform:master Nov 27, 2024
@ramezgerges
ramezgerges deleted the shapevisual_viewbox_test_flaky branch November 27, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When_ShapeVisual_ViewBox_Shape_Combinations is unstable

6 participants