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-9205] Add MetricsPusherTest to validates runner tests and fix spark module VR tests configuration #10669

Merged
merged 2 commits into from
Jan 29, 2020

Conversation

echauchot
Copy link
Contributor

@echauchot echauchot commented Jan 23, 2020

I figured out that this test is no more run, So added it
I also cleaned another uneeded test that was incorrectly copy-pasted from the current spark runner (that uses a dedicated streaming test mechanism) to the new one

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.

@echauchot
Copy link
Contributor Author

Run Spark ValidatesRunner

@echauchot
Copy link
Contributor Author

Run Spark StructuredStreaming ValidatesRunner

@iemejia
Copy link
Member

iemejia commented Jan 23, 2020

Run Flink ValidatesRunner

@iemejia
Copy link
Member

iemejia commented Jan 23, 2020

Run Java Spark PortableValidatesRunner Batch

@iemejia
Copy link
Member

iemejia commented Jan 23, 2020

Run Java Flink PortableValidatesRunner Batch

@iemejia
Copy link
Member

iemejia commented Jan 23, 2020

Run Java Flink PortableValidatesRunner Streaming

@echauchot
Copy link
Contributor Author

Run Java PreCommit

Copy link
Member

@iemejia iemejia left a comment

Choose a reason for hiding this comment

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

* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.beam.runners.spark.structuredstreaming.metrics;
Copy link
Member

Choose a reason for hiding this comment

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

👏 removing useless code always good

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:)

@echauchot
Copy link
Contributor Author

echauchot commented Jan 24, 2020

thanks @iemejia I'll take a look but I have an idea why. I think VR tests conf has changed, and as this MetricsPusherTest is the only one in runner-core package....
This is because it tests a runner feature (ability to push mertrics) not the compliance of the runner to the sdk specs.

@echauchot
Copy link
Contributor Author

echauchot commented Jan 24, 2020

I think the VR conf of both spark runners is messed up, I will sync with other runners

@echauchot
Copy link
Contributor Author

Run Spark StructuredStreaming ValidatesRunner

@echauchot
Copy link
Contributor Author

Run Java Spark PortableValidatesRunner Batch

@echauchot
Copy link
Contributor Author

Run Spark ValidatesRunner

@echauchot
Copy link
Contributor Author

Run Java PreCommit

@echauchot
Copy link
Contributor Author

echauchot commented Jan 24, 2020

@iemejia now validates runner tests are ok and MetricsPusher is run and passes for all spark the runners that support metrics (current and structured streaming ones).
PTAL.

Also the build seems flaky I opened a ticket: https://jira.apache.org/jira/browse/BEAM-9187 and relaunched the build

@iemejia
Copy link
Member

iemejia commented Jan 24, 2020

Looks like the test is not run yet in the Portable Spark runner, but the Portable Flink runner did run it.

@echauchot
Copy link
Contributor Author

Looks like the test is not run yet in the Portable Spark runner, but the Portable Flink runner did run it.

Yes, portable spark runner currently excludes all the metrics related tests that is why this test is not run. I guess the portable runner is not ready for metrics yet

@iemejia
Copy link
Member

iemejia commented Jan 27, 2020

Interesting this was supposed to be working already. I will look at that with Kyle. I just looked for UsesMetricsPusher and did not see the exclusion that's why I expected the tests to run.

Copy link
Member

@iemejia iemejia left a comment

Choose a reason for hiding this comment

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

LGTM Please self-merge / squash commits as you consider correct. Maybe worth to add A JIRA ticket and associate it with the previous ticket BEAM-3310.

@iemejia
Copy link
Member

iemejia commented Jan 27, 2020

Just for ref I addressed the missing MetricsPusherTest on Portable Spark Runner on #10693

@echauchot echauchot force-pushed the metricsPusher_validates_runner branch from 5170bd1 to 36c6b3a Compare January 28, 2020 10:33
…lass (not only on the methods) and remove unneeded MetricsPusherTest inside spark structured streaming runner (because this runner uses the VR common test)
@echauchot echauchot force-pushed the metricsPusher_validates_runner branch from 36c6b3a to bc9243a Compare January 28, 2020 10:40
@echauchot
Copy link
Contributor Author

Thanks @iemejia ! I have squashed and I'm merging on green light. I also have created and linked the ticket. And nice for https://github.com/apache/beam/pull/10693 !

@echauchot
Copy link
Contributor Author

Run Portable_Python PreCommit

@echauchot echauchot changed the title Add MetricsPusherTest to validates runner tests [BEAM-9205] Add MetricsPusherTest to validates runner tests and fix spark module VR tests configuration Jan 29, 2020
@echauchot echauchot merged commit 5257ed3 into apache:master Jan 29, 2020
@echauchot echauchot deleted the metricsPusher_validates_runner branch February 3, 2020 13:50
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