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-7510] Fixing fileio tests checking JSON serialization (flaky) #8795

Merged
merged 2 commits into from Jun 12, 2019

Conversation

pabloem
Copy link
Member

@pabloem pabloem commented Jun 7, 2019

The test was performing checking of file.read() == json.dumps(someobject) - which would be flaky due to different ordering of keys in a dictionary when serializing to JSON.

What it does now is json.loads(file.read()) == someobject

@pabloem pabloem changed the title Fixing fileio tests with likelihood for flakiness [BEAM-7510] Fixing fileio tests with likelihood for flakiness Jun 7, 2019
@pabloem
Copy link
Member Author

pabloem commented Jun 7, 2019

@tvalentyn it was a silly issue with non-deterministic json serialization.

Copy link
Contributor

@tvalentyn tvalentyn left a comment

Choose a reason for hiding this comment

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

Thanks! Please explain the issue with non-deterministic json serialization in the PR description and how this PR fixes it.

@pabloem pabloem changed the title [BEAM-7510] Fixing fileio tests with likelihood for flakiness [BEAM-7510] Fixing fileio tests checking JSON serialization (flaky) Jun 12, 2019
@pabloem pabloem merged commit 2798d62 into apache:master Jun 12, 2019
@pabloem pabloem deleted the ff branch June 12, 2019 18:11
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

2 participants