-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[BEAM-7923] Support docker screendiff integration tests #11507
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
Conversation
1. Added 2 more chrome options so that the tests work within docker. 2. Updated the golden screenshot. Change-Id: I9973b53d4aefec94898b55ac3a3625b7b6dcc263
|
R: @aaltay PTAL, thx! |
|
retest this please |
Change-Id: I32202d7a959c0df8571621a75f9c564f641fc5b9
Change-Id: I8397eb0b9ada041a78c455d1afba83e5a9b696e4
|
retest this please |
sdks/python/setup.py
Outdated
| 'needle>=0.5.0,<1', | ||
| 'chromedriver-binary>=80,<81', | ||
| # use a fixed version of PIL for different python versions | ||
| 'pillow==7.1.1', |
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.
why?
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.
Python comes with PIL, but different versions of Python has different PIL versions.
To rule out the difference when taking screenshot, we use a fixed version of PIL explicitly for testing.
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.
Do we need to pin it? Pinning usually results in other issues. Maybe less so here because it is a test dependency.
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.
I've made it any version under a major version >=7,<8.
Change-Id: Iecd3800a0944501baa8b9cd4931b3afc4aeb41a0
|
retest this please |
2 similar comments
|
retest this please |
|
retest this please |
|
The error seems to be affecting multiple precommits. |
|
Run Python PreCommit |
5 similar comments
|
Run Python PreCommit |
|
Run Python PreCommit |
|
Run Python PreCommit |
|
Run Python PreCommit |
|
Run Python PreCommit |
|
retest this please |
[BEAM-7923] Support docker screendiff integration tests (apache#11507) 1. Added 2 more chrome options so that the tests work within docker. 2. Updated the golden screenshot. Change-Id: I9973b53d4aefec94898b55ac3a3625b7b6dcc263 * Added explicit wait for facets elements to be rendered and updated the golden image. * fix lint * Updated to use a fixed version of PIL and updated the golden image * Enforce a fixed color profile for chrome. * Updated golden screenshot once Roboto Mono font is installed. * Added a threshold for fuzzy match. Change-Id: I32202d7a959c0df8571621a75f9c564f641fc5b9 * Added support of MacOS(Darwin) and Linux screen diff. Change-Id: I8397eb0b9ada041a78c455d1afba83e5a9b696e4 * Update the golden for Linux platform. * Allow installing pillow in a range of versions. Change-Id: Iecd3800a0944501baa8b9cd4931b3afc4aeb41a0 Co-authored-by: Ning Kang <ningk@ningk-macbookpro.roam.corp.google.com>
Details:
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username).[BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replaceBEAM-XXXwith the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.