Skip to content
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

[BEAM-6619] [BEAM-6593] fix autocomplete it test python 3 #8070

Merged
merged 1 commit into from Mar 19, 2019

Conversation

Juta
Copy link
Contributor

@Juta Juta commented Mar 15, 2019

The autocomplete test uses hash() to check the result of the test. I verified that the result is the same in py3 as in py2 and computed the hash in py3 with PYTHONHASHSEED set to 0 to assure deterministic results

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Python Build Status
Build Status
--- Build Status
Build Status
Build Status --- --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@Juta
Copy link
Contributor Author

Juta commented Mar 15, 2019

Run Python PostCommit

@Juta
Copy link
Contributor Author

Juta commented Mar 18, 2019

Run Python PostCommit

@Juta
Copy link
Contributor Author

Juta commented Mar 19, 2019

Run Python PostCommit

result = result | beam.Map(lambda k_vs: [k_vs[0],
k_vs[1][0][0], k_vs[1][0][1]])
checksum = (result
| beam.Map(lambda x: int(compute_hash(x)[:8], 16))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for other reviewers: this makes hash computation deterministic on Py3.

@tvalentyn
Copy link
Contributor

Thanks, @Juta ! I have a small process suggestion - please @ mention me or other committers when a PR is ready for review.

@tvalentyn
Copy link
Contributor

CCing a few committers who could merge: @aaltay , @markflyhigh , @charlesccychen .

@aaltay aaltay merged commit 13c1452 into apache:master Mar 19, 2019
@Juta
Copy link
Contributor Author

Juta commented Mar 20, 2019

@tvalentyn ok will do. Thanks for the reminder

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.

None yet

3 participants