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-8512] Add integration tests for flink_runner.py #9998

Merged
merged 1 commit into from
Nov 8, 2019

Conversation

ibzib
Copy link
Contributor

@ibzib ibzib commented Nov 5, 2019

This is just a very basic smoke test to ensure that FlinkRunner works as intended with the default settings. This does not test behavior with an actual Flink cluster.

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
--- --- 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.

@ibzib ibzib requested review from robertwb and mxm November 5, 2019 20:08
Copy link
Contributor

@mxm mxm left a comment

Choose a reason for hiding this comment

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

Thanks. Testing with an actual Flink cluster can be done as part of the load tests and the release testing.

@mxm
Copy link
Contributor

mxm commented Nov 6, 2019

CC @tweise

@ibzib
Copy link
Contributor Author

ibzib commented Nov 6, 2019

Run Seed Job

@ibzib
Copy link
Contributor Author

ibzib commented Nov 6, 2019

Run Python 2 PostCommit

@ibzib
Copy link
Contributor Author

ibzib commented Nov 6, 2019

Run Python 3.7 PostCommit

@@ -1953,8 +1953,10 @@ class BeamModulePlugin implements Plugin<Project> {
}
project.ext.addPortableWordCountTasks = {
->
addPortableWordCountTask(false)
addPortableWordCountTask(true)
addPortableWordCountTask(false, "PortableRunner")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there anything that we are testing with PortableRunner that isn't included in FlinkRunner? If not, perhaps just replace those?

Side question for follow-up: Since these tasks are Flink specific, should they be renamed and possibly moved out of BeamModulePlugin?

Copy link
Contributor

Choose a reason for hiding this comment

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

Testing PortableRunner independently is important. Theoretically, the PortableRunner is a subset of FlinkRunner, but there are still things that can go wrong with the PortableRunner when it runs without the orchestration support of the FlinkRunner.

Copy link
Contributor Author

@ibzib ibzib Nov 7, 2019

Choose a reason for hiding this comment

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

Theoretically, the PortableRunner is a subset of FlinkRunner, but there are still things that can go wrong

+1 As long as PortableRunner remains a publicly documented option (and it will probably have to for at least a little while longer) we should test it. Also, they are testing slightly different things -- PortableRunner starts a containerized job server, while FlinkRunner (when local) starts the job server in a Java subprocess.

Since these tasks are Flink specific, should they be renamed and possibly moved out of BeamModulePlugin?

I'm going to add these tasks to Spark (eventually).

@ibzib
Copy link
Contributor Author

ibzib commented Nov 7, 2019

Run Python 3.7 PostCommit

@ibzib
Copy link
Contributor Author

ibzib commented Nov 7, 2019

Run Portable_Python PreCommit

@ibzib
Copy link
Contributor Author

ibzib commented Nov 7, 2019

Run Python 3.7 PostCommit

1 similar comment
@ibzib
Copy link
Contributor Author

ibzib commented Nov 8, 2019

Run Python 3.7 PostCommit

@ibzib ibzib merged commit 40383d8 into apache:master Nov 8, 2019
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.

3 participants