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-5980] Remove redundant combine tests #9286

Merged
merged 2 commits into from
Aug 19, 2019

Conversation

lgajowy
Copy link
Contributor

@lgajowy lgajowy commented Aug 7, 2019

Size of input records is irrelevant for the combine operation because the byte[] value gets mapped to a Long before the Combine actually happens. This makes the tests redundant as size is the only thing that changes in the synthetic source options given to the input.


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.

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
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status --- --- Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable 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.

@lgajowy
Copy link
Contributor Author

lgajowy commented Aug 7, 2019

Run seed job

@lgajowy
Copy link
Contributor Author

lgajowy commented Aug 7, 2019

@pabloem @kkucharc could you take a look?

Copy link
Contributor

@kkucharc kkucharc left a comment

Choose a reason for hiding this comment

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

Looks OK, but there is also Flink test which requires changing. I know there are works started in Flink tests refactor, but I am afraid it will be forgotten.

@lgajowy
Copy link
Contributor Author

lgajowy commented Aug 7, 2019

You are right - I will remove there too.

@lgajowy
Copy link
Contributor Author

lgajowy commented Aug 7, 2019

Run seed job

@lgajowy
Copy link
Contributor Author

lgajowy commented Aug 7, 2019

It seems that I didn't mess up the jobs. Could you take a look again @kkucharc ?

Copy link
Contributor

@kkucharc kkucharc left a comment

Choose a reason for hiding this comment

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

It looks OK 👍 I left one more comment to be checked.

}

infra.scaleCluster(scope, jenkinsJobName, scaledNumberOfWorkers)
def numberOfWorkers = 16
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about making it global again and put in parallelism param in each test configuration?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@lgajowy lgajowy force-pushed the remove-redundant-combine-tests branch from ce8be07 to c02a05a Compare August 7, 2019 13:54
@lgajowy
Copy link
Contributor Author

lgajowy commented Aug 7, 2019

Run seed job

Copy link
Contributor

@kkucharc kkucharc left a comment

Choose a reason for hiding this comment

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

Everything looks Ok :) Maybe let's run Flink test from PR, this one had 'more advanced' changes, WDYT?

@lgajowy
Copy link
Contributor Author

lgajowy commented Aug 8, 2019

Let's wait unitl monday with this PR. There's ongoing discussion in the proposal whether all of them should be deleted or not

@pabloem
Copy link
Member

pabloem commented Aug 15, 2019

LGTM. Feel free to self-merge if necessary.

@lgajowy lgajowy force-pushed the remove-redundant-combine-tests branch from c02a05a to bb839a6 Compare August 19, 2019 14:14
@lgajowy
Copy link
Contributor Author

lgajowy commented Aug 19, 2019

Run seed job

@lgajowy
Copy link
Contributor Author

lgajowy commented Aug 19, 2019

I left #1 test not deleted as @angoenka suggested. Removing only #2 and #3 test now. See the discussion: https://docs.google.com/a/polidea.com/document/d/1PuIQv4v06eosKKwT76u7S6IP88AnXhTf870Rcj1AHt4/edit?disco=AAAADZUGzAI

@lgajowy
Copy link
Contributor Author

lgajowy commented Aug 19, 2019

@mwalenia could you take a quick look as well?

@@ -32,7 +33,7 @@ String pythonHarnessImageTag = "${dockerRegistryRoot}/python:${dockerTag}"
String flinkVersion = '1.7'
String flinkDownloadUrl = 'https://archive.apache.org/dist/flink/flink-1.7.0/flink-1.7.0-bin-hadoop28-scala_2.11.tgz'

def loadTestConfigurationsFiveWorkers = { datasetName -> [
def scenarios = { datasetName -> [
Copy link
Member

Choose a reason for hiding this comment

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

It seems that datasetName is not used. Is that intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is used to fill metrics_dataset according to triggering context (pr/not a pr).

@mwalenia
Copy link
Member

LGTM, thanks, @lgajowy !

@lgajowy lgajowy force-pushed the remove-redundant-combine-tests branch from bb839a6 to 819c61f Compare August 19, 2019 15:07
It turned out we tested nothing relevant with the additional 2 tests
that are deleted. The Combine test maps values of different sizes to
Long value. The deleted tests had only different initial size so, in
practice, they were testing the same thing as test #1.
@lgajowy lgajowy force-pushed the remove-redundant-combine-tests branch from 819c61f to 830e99b Compare August 19, 2019 15:09
@lgajowy
Copy link
Contributor Author

lgajowy commented Aug 19, 2019

Run seed job

@lgajowy
Copy link
Contributor Author

lgajowy commented Aug 19, 2019

I squashed some commits...

@lgajowy lgajowy merged commit d1f99ce into apache:master Aug 19, 2019
@lgajowy lgajowy deleted the remove-redundant-combine-tests branch August 19, 2019 15:28
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.

4 participants