-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[BUG] 1px height difference in screenshot dimensions when comparing locally generated to ci-generated screenshots #20366
Comments
This is probably a duplicate of #18827 |
Looks like your full page lays out to different fractions of the number between 1739 and 1740. This can be due to fonts or any other differences. Could you confirm that both local and remote scenarios are using the same docker image? Are you seeing this variability within the process architecture (within M1, depending on the test run)? Does it never happen when running on the same machine? |
I suspect some font rendering to two different heights as well. To answer your questions:
Interesting is that some views produce differences and some do not. |
@aslushnikov, is this a dupe, do we still have that M1 1px issue open? |
Okay, I hadn't considered that the OS made a difference even when running headless! We always run our tests in the official docker image now, so that screenshot comparisons don't fail. If it's expected, it's okay 😸 Thanks for your fast responses and the help! |
@pavelfeldman we observed color blending differences between M1 and intel, but screenshot sizes were not affected by architecture differences so far. I'll experiment with this separately. @thraizz oh yes, running OS does make difference even for headless! Looks like this is resolved, so I'll close this now. Feel free to file new issues if you think we can be helpful! |
Context:
envinfo output
Code Snippet
More importantly than the test: This snippet has to be run locally and then inside the docker image / some sort of CI for the bug to happen.
Describe the bug
Screenshot have flaky dimensions. Our locally generated, full-page, screenshots sometimes differ from those created inside docker by 1px, sometimes 2px height. If running the same test multiple times in the same environment (either docker or local), the screenshots match all the time. All tests are run with headless chromium. I've also experimented with any antialiasing and font rendering setup. This did not help either.
Result, for example:
The text was updated successfully, but these errors were encountered: