{"action":"created","comment":{"url":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls/comments/47378337","id":47378337,"diff_hunk":"@@ -319,12 +325,15 @@ def createReport(self):\n             # the backend.\n             'content': content\n         }\n+        # import values from the environment\n+        request.update([(k.lower(),v) for (k,v) in os.environ.iteritems()\n+                        if k.startswith('PROBE_')])","path":"ooni/reporter.py","position":48,"original_position":48,"commit_id":"6f437a0937884a597386c81ab5ca9c80122d8201","original_commit_id":"6f437a0937884a597386c81ab5ca9c80122d8201","user":{"login":"dantheta","id":398205,"avatar_url":"https://avatars.githubusercontent.com/u/398205?v=3","gravatar_id":"","url":"https://api.github.com/users/dantheta","html_url":"https://github.com/dantheta","followers_url":"https://api.github.com/users/dantheta/followers","following_url":"https://api.github.com/users/dantheta/following{/other_user}","gists_url":"https://api.github.com/users/dantheta/gists{/gist_id}","starred_url":"https://api.github.com/users/dantheta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantheta/subscriptions","organizations_url":"https://api.github.com/users/dantheta/orgs","repos_url":"https://api.github.com/users/dantheta/repos","events_url":"https://api.github.com/users/dantheta/events{/privacy}","received_events_url":"https://api.github.com/users/dantheta/received_events","type":"User","site_admin":false},"body":"That's right, it passes deployment-specific environment variables back to the server.","created_at":"2015-12-11T17:04:46Z","updated_at":"2015-12-11T17:04:46Z","html_url":"https://github.com/TheTorProject/ooni-probe/pull/406#discussion_r47378337","pull_request_url":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls/406","_links":{"self":{"href":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls/comments/47378337"},"html":{"href":"https://github.com/TheTorProject/ooni-probe/pull/406#discussion_r47378337"},"pull_request":{"href":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls/406"}}},"pull_request":{"url":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls/406","id":43817309,"html_url":"https://github.com/TheTorProject/ooni-probe/pull/406","diff_url":"https://github.com/TheTorProject/ooni-probe/pull/406.diff","patch_url":"https://github.com/TheTorProject/ooni-probe/pull/406.patch","issue_url":"https://api.github.com/repos/TheTorProject/ooni-probe/issues/406","number":406,"state":"open","locked":false,"title":"Add support for ORG's blocked.org.uk scheduler","user":{"login":"dantheta","id":398205,"avatar_url":"https://avatars.githubusercontent.com/u/398205?v=3","gravatar_id":"","url":"https://api.github.com/users/dantheta","html_url":"https://github.com/dantheta","followers_url":"https://api.github.com/users/dantheta/followers","following_url":"https://api.github.com/users/dantheta/following{/other_user}","gists_url":"https://api.github.com/users/dantheta/gists{/gist_id}","starred_url":"https://api.github.com/users/dantheta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantheta/subscriptions","organizations_url":"https://api.github.com/users/dantheta/orgs","repos_url":"https://api.github.com/users/dantheta/repos","events_url":"https://api.github.com/users/dantheta/events{/privacy}","received_events_url":"https://api.github.com/users/dantheta/received_events","type":"User","site_admin":false},"body":"    Add:\r\n    * ORG Queue integration\r\n    * Support for additional values to send to ORG backend\r\n\r\n    Refactor director startup\r\n    * Moved collector setup to shared scope\r\n    * Moved deck setup to shared scope\r\n    * Moved annotations setup to shared scope\r\n    * Moved global options to shared scope\r\n\r\n    * fix some naming convention errors\r\n\r\n    * move global counter to more sensible scope\r\n    * fixes from pull request code review\r\n    * remove another mobile browser\r\n    * remove iPhone useragent to prevent mobile versions being returned to client\r\n\r\n    * add HTTPS support for reporter\r\n    * add authentication info from environment\r\n    * import PROBE_ vars from environment into report\r\n    * allow https collector in regex\r\n    * AMQP connection details as cmdline parameter\r\n    * more queue state, looping listen call\r\n    * remove old bin script\r\n    * exit after bounded random number of test decks\r\n    * improve error handling\r\n    * use proper custom exception for queue timeout reason\r\n    * reduce duplicate serialization\r\n    * add flag to prevent response body being written to report\r\n    * add subargs to queue createdeck\r\n    * fix global args passing\r\n    * reuse cached geoip\r\n    * reuse existing TOR connection\r\n    * simplify for one-shot use\r\n    * extend and report lifetime\r\n    * probe exit on AMQP error\r\n    * remove ooniresource from setup script","created_at":"2015-08-31T22:19:50Z","updated_at":"2015-12-11T17:04:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8a42b8e98033efa70e5075ae1c1c07382ee4fd9","assignee":{"login":"bassosimone","id":337298,"avatar_url":"https://avatars.githubusercontent.com/u/337298?v=3","gravatar_id":"","url":"https://api.github.com/users/bassosimone","html_url":"https://github.com/bassosimone","followers_url":"https://api.github.com/users/bassosimone/followers","following_url":"https://api.github.com/users/bassosimone/following{/other_user}","gists_url":"https://api.github.com/users/bassosimone/gists{/gist_id}","starred_url":"https://api.github.com/users/bassosimone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bassosimone/subscriptions","organizations_url":"https://api.github.com/users/bassosimone/orgs","repos_url":"https://api.github.com/users/bassosimone/repos","events_url":"https://api.github.com/users/bassosimone/events{/privacy}","received_events_url":"https://api.github.com/users/bassosimone/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls/406/commits","review_comments_url":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls/406/comments","review_comment_url":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TheTorProject/ooni-probe/issues/406/comments","statuses_url":"https://api.github.com/repos/TheTorProject/ooni-probe/statuses/6f437a0937884a597386c81ab5ca9c80122d8201","head":{"label":"dantheta:org_queue_PR","ref":"org_queue_PR","sha":"6f437a0937884a597386c81ab5ca9c80122d8201","user":{"login":"dantheta","id":398205,"avatar_url":"https://avatars.githubusercontent.com/u/398205?v=3","gravatar_id":"","url":"https://api.github.com/users/dantheta","html_url":"https://github.com/dantheta","followers_url":"https://api.github.com/users/dantheta/followers","following_url":"https://api.github.com/users/dantheta/following{/other_user}","gists_url":"https://api.github.com/users/dantheta/gists{/gist_id}","starred_url":"https://api.github.com/users/dantheta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantheta/subscriptions","organizations_url":"https://api.github.com/users/dantheta/orgs","repos_url":"https://api.github.com/users/dantheta/repos","events_url":"https://api.github.com/users/dantheta/events{/privacy}","received_events_url":"https://api.github.com/users/dantheta/received_events","type":"User","site_admin":false},"repo":{"id":32045992,"name":"ooni-probe","full_name":"dantheta/ooni-probe","owner":{"login":"dantheta","id":398205,"avatar_url":"https://avatars.githubusercontent.com/u/398205?v=3","gravatar_id":"","url":"https://api.github.com/users/dantheta","html_url":"https://github.com/dantheta","followers_url":"https://api.github.com/users/dantheta/followers","following_url":"https://api.github.com/users/dantheta/following{/other_user}","gists_url":"https://api.github.com/users/dantheta/gists{/gist_id}","starred_url":"https://api.github.com/users/dantheta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantheta/subscriptions","organizations_url":"https://api.github.com/users/dantheta/orgs","repos_url":"https://api.github.com/users/dantheta/repos","events_url":"https://api.github.com/users/dantheta/events{/privacy}","received_events_url":"https://api.github.com/users/dantheta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dantheta/ooni-probe","description":"github copy of OONI-probe https://gitweb.torproject.org/ooni-probe.git","fork":true,"url":"https://api.github.com/repos/dantheta/ooni-probe","forks_url":"https://api.github.com/repos/dantheta/ooni-probe/forks","keys_url":"https://api.github.com/repos/dantheta/ooni-probe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dantheta/ooni-probe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dantheta/ooni-probe/teams","hooks_url":"https://api.github.com/repos/dantheta/ooni-probe/hooks","issue_events_url":"https://api.github.com/repos/dantheta/ooni-probe/issues/events{/number}","events_url":"https://api.github.com/repos/dantheta/ooni-probe/events","assignees_url":"https://api.github.com/repos/dantheta/ooni-probe/assignees{/user}","branches_url":"https://api.github.com/repos/dantheta/ooni-probe/branches{/branch}","tags_url":"https://api.github.com/repos/dantheta/ooni-probe/tags","blobs_url":"https://api.github.com/repos/dantheta/ooni-probe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dantheta/ooni-probe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dantheta/ooni-probe/git/refs{/sha}","trees_url":"https://api.github.com/repos/dantheta/ooni-probe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dantheta/ooni-probe/statuses/{sha}","languages_url":"https://api.github.com/repos/dantheta/ooni-probe/languages","stargazers_url":"https://api.github.com/repos/dantheta/ooni-probe/stargazers","contributors_url":"https://api.github.com/repos/dantheta/ooni-probe/contributors","subscribers_url":"https://api.github.com/repos/dantheta/ooni-probe/subscribers","subscription_url":"https://api.github.com/repos/dantheta/ooni-probe/subscription","commits_url":"https://api.github.com/repos/dantheta/ooni-probe/commits{/sha}","git_commits_url":"https://api.github.com/repos/dantheta/ooni-probe/git/commits{/sha}","comments_url":"https://api.github.com/repos/dantheta/ooni-probe/comments{/number}","issue_comment_url":"https://api.github.com/repos/dantheta/ooni-probe/issues/comments{/number}","contents_url":"https://api.github.com/repos/dantheta/ooni-probe/contents/{+path}","compare_url":"https://api.github.com/repos/dantheta/ooni-probe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dantheta/ooni-probe/merges","archive_url":"https://api.github.com/repos/dantheta/ooni-probe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dantheta/ooni-probe/downloads","issues_url":"https://api.github.com/repos/dantheta/ooni-probe/issues{/number}","pulls_url":"https://api.github.com/repos/dantheta/ooni-probe/pulls{/number}","milestones_url":"https://api.github.com/repos/dantheta/ooni-probe/milestones{/number}","notifications_url":"https://api.github.com/repos/dantheta/ooni-probe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dantheta/ooni-probe/labels{/name}","releases_url":"https://api.github.com/repos/dantheta/ooni-probe/releases{/id}","created_at":"2015-03-11T23:06:46Z","updated_at":"2015-03-11T23:06:49Z","pushed_at":"2015-11-03T09:09:59Z","git_url":"git://github.com/dantheta/ooni-probe.git","ssh_url":"git@github.com:dantheta/ooni-probe.git","clone_url":"https://github.com/dantheta/ooni-probe.git","svn_url":"https://github.com/dantheta/ooni-probe","homepage":"https://ooni.torproject.org","size":4106,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TheTorProject:master","ref":"master","sha":"f183629dbef887959290510f8164407b0b7bf0be","user":{"login":"TheTorProject","id":3301912,"avatar_url":"https://avatars.githubusercontent.com/u/3301912?v=3","gravatar_id":"","url":"https://api.github.com/users/TheTorProject","html_url":"https://github.com/TheTorProject","followers_url":"https://api.github.com/users/TheTorProject/followers","following_url":"https://api.github.com/users/TheTorProject/following{/other_user}","gists_url":"https://api.github.com/users/TheTorProject/gists{/gist_id}","starred_url":"https://api.github.com/users/TheTorProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheTorProject/subscriptions","organizations_url":"https://api.github.com/users/TheTorProject/orgs","repos_url":"https://api.github.com/users/TheTorProject/repos","events_url":"https://api.github.com/users/TheTorProject/events{/privacy}","received_events_url":"https://api.github.com/users/TheTorProject/received_events","type":"Organization","site_admin":false},"repo":{"id":3944100,"name":"ooni-probe","full_name":"TheTorProject/ooni-probe","owner":{"login":"TheTorProject","id":3301912,"avatar_url":"https://avatars.githubusercontent.com/u/3301912?v=3","gravatar_id":"","url":"https://api.github.com/users/TheTorProject","html_url":"https://github.com/TheTorProject","followers_url":"https://api.github.com/users/TheTorProject/followers","following_url":"https://api.github.com/users/TheTorProject/following{/other_user}","gists_url":"https://api.github.com/users/TheTorProject/gists{/gist_id}","starred_url":"https://api.github.com/users/TheTorProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheTorProject/subscriptions","organizations_url":"https://api.github.com/users/TheTorProject/orgs","repos_url":"https://api.github.com/users/TheTorProject/repos","events_url":"https://api.github.com/users/TheTorProject/events{/privacy}","received_events_url":"https://api.github.com/users/TheTorProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TheTorProject/ooni-probe","description":"ooni-probe: network measurement writing framework aimed at detecting network interference.","fork":false,"url":"https://api.github.com/repos/TheTorProject/ooni-probe","forks_url":"https://api.github.com/repos/TheTorProject/ooni-probe/forks","keys_url":"https://api.github.com/repos/TheTorProject/ooni-probe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheTorProject/ooni-probe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheTorProject/ooni-probe/teams","hooks_url":"https://api.github.com/repos/TheTorProject/ooni-probe/hooks","issue_events_url":"https://api.github.com/repos/TheTorProject/ooni-probe/issues/events{/number}","events_url":"https://api.github.com/repos/TheTorProject/ooni-probe/events","assignees_url":"https://api.github.com/repos/TheTorProject/ooni-probe/assignees{/user}","branches_url":"https://api.github.com/repos/TheTorProject/ooni-probe/branches{/branch}","tags_url":"https://api.github.com/repos/TheTorProject/ooni-probe/tags","blobs_url":"https://api.github.com/repos/TheTorProject/ooni-probe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheTorProject/ooni-probe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheTorProject/ooni-probe/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheTorProject/ooni-probe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheTorProject/ooni-probe/statuses/{sha}","languages_url":"https://api.github.com/repos/TheTorProject/ooni-probe/languages","stargazers_url":"https://api.github.com/repos/TheTorProject/ooni-probe/stargazers","contributors_url":"https://api.github.com/repos/TheTorProject/ooni-probe/contributors","subscribers_url":"https://api.github.com/repos/TheTorProject/ooni-probe/subscribers","subscription_url":"https://api.github.com/repos/TheTorProject/ooni-probe/subscription","commits_url":"https://api.github.com/repos/TheTorProject/ooni-probe/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheTorProject/ooni-probe/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheTorProject/ooni-probe/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheTorProject/ooni-probe/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheTorProject/ooni-probe/contents/{+path}","compare_url":"https://api.github.com/repos/TheTorProject/ooni-probe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheTorProject/ooni-probe/merges","archive_url":"https://api.github.com/repos/TheTorProject/ooni-probe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheTorProject/ooni-probe/downloads","issues_url":"https://api.github.com/repos/TheTorProject/ooni-probe/issues{/number}","pulls_url":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls{/number}","milestones_url":"https://api.github.com/repos/TheTorProject/ooni-probe/milestones{/number}","notifications_url":"https://api.github.com/repos/TheTorProject/ooni-probe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheTorProject/ooni-probe/labels{/name}","releases_url":"https://api.github.com/repos/TheTorProject/ooni-probe/releases{/id}","created_at":"2012-04-05T20:59:23Z","updated_at":"2015-12-07T02:19:15Z","pushed_at":"2015-12-11T12:42:06Z","git_url":"git://github.com/TheTorProject/ooni-probe.git","ssh_url":"git@github.com:TheTorProject/ooni-probe.git","clone_url":"https://github.com/TheTorProject/ooni-probe.git","svn_url":"https://github.com/TheTorProject/ooni-probe","homepage":"https://ooni.torproject.org","size":4329,"stargazers_count":196,"watchers_count":196,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":77,"mirror_url":null,"open_issues_count":17,"forks":77,"open_issues":17,"watchers":196,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls/406"},"html":{"href":"https://github.com/TheTorProject/ooni-probe/pull/406"},"issue":{"href":"https://api.github.com/repos/TheTorProject/ooni-probe/issues/406"},"comments":{"href":"https://api.github.com/repos/TheTorProject/ooni-probe/issues/406/comments"},"review_comments":{"href":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls/406/comments"},"review_comment":{"href":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TheTorProject/ooni-probe/pulls/406/commits"},"statuses":{"href":"https://api.github.com/repos/TheTorProject/ooni-probe/statuses/6f437a0937884a597386c81ab5ca9c80122d8201"}}}}