{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/13275","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/13275/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/13275/comments","events_url":"https://api.github.com/repos/apache/spark/issues/13275/events","html_url":"https://github.com/apache/spark/pull/13275","id":156436004,"number":13275,"title":"[SPARK-15499][PySpark][Tests] Add python testsuite with remote debug and single test parameter to help developer debug code easier","user":{"login":"WeichenXu123","id":19235986,"avatar_url":"https://avatars.githubusercontent.com/u/19235986?v=3","gravatar_id":"","url":"https://api.github.com/users/WeichenXu123","html_url":"https://github.com/WeichenXu123","followers_url":"https://api.github.com/users/WeichenXu123/followers","following_url":"https://api.github.com/users/WeichenXu123/following{/other_user}","gists_url":"https://api.github.com/users/WeichenXu123/gists{/gist_id}","starred_url":"https://api.github.com/users/WeichenXu123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WeichenXu123/subscriptions","organizations_url":"https://api.github.com/users/WeichenXu123/orgs","repos_url":"https://api.github.com/users/WeichenXu123/repos","events_url":"https://api.github.com/users/WeichenXu123/events{/privacy}","received_events_url":"https://api.github.com/users/WeichenXu123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-24T07:18:31Z","updated_at":"2016-05-24T09:10:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13275","html_url":"https://github.com/apache/spark/pull/13275","diff_url":"https://github.com/apache/spark/pull/13275.diff","patch_url":"https://github.com/apache/spark/pull/13275.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nTo python/run-tests.py script, I add the following parameters:\r\n\r\n`--single-test=SINGLE_TEST`\r\n`specify a python module to run single python test.`\r\n`--debug-server=DEBUG_SERVER`\r\n`debug server host, only used in single test.`\r\n`--debug-port=DEBUG_PORT`\r\n`debug server port, only used in single test.`\r\n\r\nNow, for example, I want to debug only pyspark.tests, I can use the following command:\r\n(first startup debug server in your python IDE such as pycharm or pydev, your IED on machine which has host MY_DEV_MACHINE and using debug port 5678, and make sure the machine running test can connect to MY_DEV_MACHINE, and python must install pydevd module first.)\r\n\r\n`python/run-tests --python-executables=python2.7 --single-test=pyspark.tests --debug-server=MY_DEV_MACHINE --debug-port=5678`\r\n\r\nthe parameter --single-test specify the single python testsuite you want to test, currently you can use the following value:\r\n\r\n`pyspark.tests`\r\n`pyspark.ml.tests`\r\n`pyspark.mllib.tests`\r\n`pyspark.sql.tests`\r\n`pyspark.streaming.tests`\r\n\r\nAdding parameters then develop and debug python script will be quite easier, I think.\r\n\r\n## How was this patch tested?\r\n\r\nExisting test.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/221210606","html_url":"https://github.com/apache/spark/pull/13275#issuecomment-221210606","issue_url":"https://api.github.com/repos/apache/spark/issues/13275","id":221210606,"user":{"login":"WeichenXu123","id":19235986,"avatar_url":"https://avatars.githubusercontent.com/u/19235986?v=3","gravatar_id":"","url":"https://api.github.com/users/WeichenXu123","html_url":"https://github.com/WeichenXu123","followers_url":"https://api.github.com/users/WeichenXu123/followers","following_url":"https://api.github.com/users/WeichenXu123/following{/other_user}","gists_url":"https://api.github.com/users/WeichenXu123/gists{/gist_id}","starred_url":"https://api.github.com/users/WeichenXu123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WeichenXu123/subscriptions","organizations_url":"https://api.github.com/users/WeichenXu123/orgs","repos_url":"https://api.github.com/users/WeichenXu123/repos","events_url":"https://api.github.com/users/WeichenXu123/events{/privacy}","received_events_url":"https://api.github.com/users/WeichenXu123/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T09:10:12Z","updated_at":"2016-05-24T09:10:12Z","body":"@davies  How do you think about it ?"}}
{"actor":{"display_login":"WeichenXu123"}}