{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15279","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15279/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15279/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15279/events","html_url":"https://github.com/apache/spark/pull/15279","id":179766372,"number":15279,"title":"SPARK-12347 [ML][WIP] Add a script to test Spark ML examples.","user":{"login":"ethanluoyc","id":6040760,"avatar_url":"https://avatars.githubusercontent.com/u/6040760?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanluoyc","html_url":"https://github.com/ethanluoyc","followers_url":"https://api.github.com/users/ethanluoyc/followers","following_url":"https://api.github.com/users/ethanluoyc/following{/other_user}","gists_url":"https://api.github.com/users/ethanluoyc/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanluoyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanluoyc/subscriptions","organizations_url":"https://api.github.com/users/ethanluoyc/orgs","repos_url":"https://api.github.com/users/ethanluoyc/repos","events_url":"https://api.github.com/users/ethanluoyc/events{/privacy}","received_events_url":"https://api.github.com/users/ethanluoyc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-28T13:02:35Z","updated_at":"2016-11-15T01:27:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15279","html_url":"https://github.com/apache/spark/pull/15279","diff_url":"https://github.com/apache/spark/pull/15279.diff","patch_url":"https://github.com/apache/spark/pull/15279.patch"},"body":"This PR addresses [SPARK-12347](https://issues.apache.org/jira/browse/SPARK-12347?jql=project%20%3D%20SPARK%20AND%20resolution%20%3D%20Unresolved%20AND%20component%20%3D%20ML%20ORDER%20BY%20priority%20DESC) and may also be helpful for [SPARK-15571](https://issues.apache.org/jira/browse/SPARK-15571).\n## What changes were proposed in this pull request?\n\nThis PR adds a python script to drive all the examples located in the `examples` subdirectory. It should be able to streamline the testing of the examples in R, Python, Scala and Java to see if any of them has incompatible behavior with the codebase.\n## How was this patch tested?\n\nThis PR is not yet fully ready for merging. I would like to have some reviews for how it works best for those who will indeed be using this script. For now, it introduces the following features:\n- [x] select examples of a specific language to run (R, Python, Scala or Java)\n- [x] running in parallem (like that in run-test.py)\n- [ ] Configuring according to environment variables.\n- [ ] **Run those examples requiring arguments to be passed in.**\n\nNote that the last TODO is really important, for that I would like to hear suggestions from the reviewers for how it should should be best implemented. For now, I think one good way will be to have comments as directives in the example code. Like how `# $example on$` are introduced to facilitate doc generation. We can do something similar to hint what arguments should be passed in for testing. Otherwise, we can always fall back to the way we discussed in the JIRA [SPARK-12347](https://issues.apache.org/jira/browse/SPARK-12347)\n\nAlso, some of the functionality replicates that in run-tests.py. Perhaps we can find a way to integrate both?\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/260519179","html_url":"https://github.com/apache/spark/pull/15279#issuecomment-260519179","issue_url":"https://api.github.com/repos/apache/spark/issues/15279","id":260519179,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T01:27:33Z","updated_at":"2016-11-15T01:27:33Z","body":"**[Test build #68646 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68646/consoleFull)** for PR 15279 at commit [`c566a5b`](https://github.com/apache/spark/commit/c566a5bfe72aa9be10d9b3f90ea18ec0d0382f93)."}}
{"actor":{"display_login":"SparkQA"}}