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-8977] Resolve test flakiness #10404

Merged
merged 1 commit into from Jan 3, 2020
Merged

Conversation

KevinGG
Copy link
Contributor

@KevinGG KevinGG commented Dec 17, 2019

  1. Removed test logic depending on execution of asynchronous tasks since
    there is no control of them in a testing environment.
  2. Replaced the dynamic plotting tests with tests directly/indirectly
    invoking underlying logic of the asynchronous task.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status 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
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

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

@KevinGG
Copy link
Contributor Author

KevinGG commented Dec 17, 2019

R: @tvalentyn
PTAL, thanks!

def test_dynamic_plotting_update_same_display(self,
mocked_display_facets):
mocked_display_dataframe,
Copy link
Contributor

@tvalentyn tvalentyn Dec 17, 2019

Choose a reason for hiding this comment

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

Are we verifying that the same display is being updated? If so consider s/update/updates in test_dynamic_plotting_update_same_display, if not consider a name that communicates the expected behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we are verifying that the same display is being updated.
Renaming the test to test_dynamic_plotting_updates_same_display.

Copy link
Contributor

Choose a reason for hiding this comment

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

SG - once you push the commit and tests pass we can merge this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

@tvalentyn
Copy link
Contributor

Is the precommit failure related to the PR? If not could you please help triage it (file a bug and see if there is an obvious owner).

@KevinGG
Copy link
Contributor Author

KevinGG commented Dec 18, 2019

Is the precommit failure related to the PR? If not could you please help triage it (file a bug and see if there is an obvious owner).

Filed BEAM-8991.

And:
Run Python PreCommit
to see if it's just flaky.

@KevinGG
Copy link
Contributor Author

KevinGG commented Dec 18, 2019

Run Python PreCommit

@tvalentyn
Copy link
Contributor

Looks like you hit BEAM-8974

@tvalentyn
Copy link
Contributor

Run Python PreCommit

@KevinGG
Copy link
Contributor Author

KevinGG commented Dec 18, 2019

Looks like you hit BEAM-8974

Thanks for the heads up!

@KevinGG
Copy link
Contributor Author

KevinGG commented Dec 19, 2019

Yes, it fails at the error described in BEAM-8974.
I'll mark BEAM-8991 as a duplicate.

@KevinGG
Copy link
Contributor Author

KevinGG commented Dec 19, 2019

I'll do a rebase against the upstream/master once the issue is resolved and ping you whenever it's ready!
Thank you very much, Valentyn! Merry Christmas!

@tvalentyn
Copy link
Contributor

Thanks! Since it's a flake, we can try running the tests again, and maybe it will not fail.
Happy holidays likewise :)

@tvalentyn
Copy link
Contributor

Run Python PreCommit

@tvalentyn tvalentyn closed this Dec 19, 2019
@tvalentyn tvalentyn reopened this Dec 19, 2019
@tvalentyn
Copy link
Contributor

Run Python PreCommit

1 similar comment
@KevinGG
Copy link
Contributor Author

KevinGG commented Dec 19, 2019

Run Python PreCommit

1. Removed test logic depending on execution of asynchronous tasks since
there is no control of them in a testing environment.
2. Replaced the dynamic plotting tests with tests directly/indirectly
invoking underlying logic of the asynchronous task.
@KevinGG
Copy link
Contributor Author

KevinGG commented Dec 20, 2019

Resolved merge conflicts and force pushed.

@tvalentyn
Copy link
Contributor

Thanks, @KevinGG . Looks like something is not right with precommit checks since they have not triggered yet...

@tvalentyn
Copy link
Contributor

Run Python Precommit

@KevinGG
Copy link
Contributor Author

KevinGG commented Dec 20, 2019

retest this please

@KevinGG
Copy link
Contributor Author

KevinGG commented Dec 20, 2019

Thanks, @KevinGG . Looks like something is not right with precommit checks since they have not triggered yet...

Thanks! Yeah, probably Jenkins is busy. If it's not executed by the EOD, I'll just close this PR and create a new one to see if it helps.

Tests triggered as soon as this comment is added, hah.

@KevinGG
Copy link
Contributor Author

KevinGG commented Dec 20, 2019

Run Python PreCommit

1 similar comment
@KevinGG
Copy link
Contributor Author

KevinGG commented Dec 23, 2019

Run Python PreCommit

@tvalentyn tvalentyn merged commit 0028b79 into apache:master Jan 3, 2020
@KevinGG KevinGG deleted the BEAM-8977 branch January 6, 2020 18:39
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