{"action":"created","issue":{"url":"https://api.github.com/repos/JiangLiNSCC/eHPC/issues/18","repository_url":"https://api.github.com/repos/JiangLiNSCC/eHPC","labels_url":"https://api.github.com/repos/JiangLiNSCC/eHPC/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/JiangLiNSCC/eHPC/issues/18/comments","events_url":"https://api.github.com/repos/JiangLiNSCC/eHPC/issues/18/events","html_url":"https://github.com/JiangLiNSCC/eHPC/issues/18","id":197118843,"number":18,"title":"API NOTPASS JOB 0 ","user":{"login":"lijiang2014","id":6398936,"avatar_url":"https://avatars.githubusercontent.com/u/6398936?v=3","gravatar_id":"","url":"https://api.github.com/users/lijiang2014","html_url":"https://github.com/lijiang2014","followers_url":"https://api.github.com/users/lijiang2014/followers","following_url":"https://api.github.com/users/lijiang2014/following{/other_user}","gists_url":"https://api.github.com/users/lijiang2014/gists{/gist_id}","starred_url":"https://api.github.com/users/lijiang2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijiang2014/subscriptions","organizations_url":"https://api.github.com/users/lijiang2014/orgs","repos_url":"https://api.github.com/users/lijiang2014/repos","events_url":"https://api.github.com/users/lijiang2014/events{/privacy}","received_events_url":"https://api.github.com/users/lijiang2014/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-22T08:21:02Z","updated_at":"2016-12-22T09:30:24Z","closed_at":"2016-12-22T08:44:20Z","body":"JOB 0 的最后一个测试，一般情况下会通过，但有时会出现： \r\n```\r\nPASS\r\n\r\njump to async\r\nB2\r\n{\"status\": \"STARTED\", \"status_code\": 100, \"error\": \"Command running on task worker : {'hostname': 'celery@ln2', 'pid': 41430} \", \"output\": \"ac7d4b4e-d1bb-4548-a990-295a290ec0ee\"}\r\n0\r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"main-test-sysu.py\", line 330, in <module>\r\n    eachtest()\r\n  File \"main-test-sysu.py\", line 227, in test_post_command_machine\r\n    if mc.ret200() and mc.data[\"output\"][\"retcode\"] !=0  : print_PASS()\r\nTypeError: string indices must be integers, not str\r\n[tonge@tongeUbKy%tests]$python main-test-sysu.py job 0 \r\n```"},"comment":{"url":"https://api.github.com/repos/JiangLiNSCC/eHPC/issues/comments/268757129","html_url":"https://github.com/JiangLiNSCC/eHPC/issues/18#issuecomment-268757129","issue_url":"https://api.github.com/repos/JiangLiNSCC/eHPC/issues/18","id":268757129,"user":{"login":"lijiang2014","id":6398936,"avatar_url":"https://avatars.githubusercontent.com/u/6398936?v=3","gravatar_id":"","url":"https://api.github.com/users/lijiang2014","html_url":"https://github.com/lijiang2014","followers_url":"https://api.github.com/users/lijiang2014/followers","following_url":"https://api.github.com/users/lijiang2014/following{/other_user}","gists_url":"https://api.github.com/users/lijiang2014/gists{/gist_id}","starred_url":"https://api.github.com/users/lijiang2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijiang2014/subscriptions","organizations_url":"https://api.github.com/users/lijiang2014/orgs","repos_url":"https://api.github.com/users/lijiang2014/repos","events_url":"https://api.github.com/users/lijiang2014/events{/privacy}","received_events_url":"https://api.github.com/users/lijiang2014/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T09:30:24Z","updated_at":"2016-12-22T09:30:24Z","body":"跟踪发现，内部有些数据获取有额外的字符 ： \r\n```\r\n('exe : ', TypeError('string indices must be integers, not str',))\r\n('rdata : ', 'B2\\r\\n{\"status\": \"STARTED\", \"status_code\": 100, \"error\": \"Command running on task worker : {\\'hostname\\': \\'celery@ln2\\', \\'pid\\': 41444} \", \"output\": \"31d64d12-cd12-4e31-b3ea-cfbcaeeae545\"}\\r\\n0\\r\\n\\r\\n')\r\nTraceback (most recent call last):\r\n  File \"main-test-sysu.py\", line 341, in <module>\r\n    eachtest()\r\n  File \"main-test-sysu.py\", line 267, in test_get_job_machine\r\n    rep = mc.open(\"/job/\" + machine_name + '/' , data = {\"jobscript\" : test_batchstr_long })\r\n  File \"main-test-sysu.py\", line 95, in open\r\n    return self.open( async_url + '/' + self.output )\r\n  File \"main-test-sysu.py\", line 83, in open\r\n    self.status_code = rdata[\"status_code\"]\r\nTypeError: string indices must be integers, not str\r\n[tonge@tongeUbKy%tests]$\r\n\r\n```"}}
{"actor":{"display_login":"lijiang2014"}}