{"action":"created","comment":{"url":"https://api.github.com/repos/avocado-framework/avocado/pulls/comments/168801729","pull_request_review_id":97233045,"id":168801729,"diff_hunk":"@@ -0,0 +1,135 @@\n+# This program is free software; you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation; either version 2 of the License, or\n+# (at your option) any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n+#\n+# See LICENSE for more details.\n+#\n+# Copyright: Red Hat Inc. 2018\n+# Authors: Amador Pahim <apahim@redhat.com>\n+\n+import json\n+import sys\n+\n+from six import iteritems\n+\n+from avocado.core import exit_codes\n+from avocado.core import tree\n+from avocado.core import varianter\n+from avocado.core.output import LOG_UI\n+from avocado.core.plugin_interfaces import CLI\n+from avocado.core.plugin_interfaces import Varianter\n+\n+\n+class VarianterSerializedCLI(CLI):\n+\n+    \"\"\"\n+    Serialized based Varianter options\n+    \"\"\"\n+\n+    name = 'serialized'\n+    description = \"Serialized based Varianter options for the 'run' subcommand\"\n+\n+    def configure(self, parser):\n+\n+        for name in (\"run\", \"variants\"):  # intentionally omitting \"multiplex\"\n+            subparser = parser.subcommands.choices.get(name, None)\n+            if subparser is None:\n+                continue\n+            sparser = subparser.add_argument_group('json serialized varianter '\n+                                                   'options')\n+            sparser.add_argument('--load-variants', default=None,","path":"optional_plugins/varianter_serialized/avocado_varianter_serialized/__init__.py","position":45,"original_position":45,"commit_id":"37b590051cf0f07a5448ec4390c6350747dd2a97","original_commit_id":"37b590051cf0f07a5448ec4390c6350747dd2a97","user":{"login":"ldoktor","id":1074021,"avatar_url":"https://avatars3.githubusercontent.com/u/1074021?v=4","gravatar_id":"","url":"https://api.github.com/users/ldoktor","html_url":"https://github.com/ldoktor","followers_url":"https://api.github.com/users/ldoktor/followers","following_url":"https://api.github.com/users/ldoktor/following{/other_user}","gists_url":"https://api.github.com/users/ldoktor/gists{/gist_id}","starred_url":"https://api.github.com/users/ldoktor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldoktor/subscriptions","organizations_url":"https://api.github.com/users/ldoktor/orgs","repos_url":"https://api.github.com/users/ldoktor/repos","events_url":"https://api.github.com/users/ldoktor/events{/privacy}","received_events_url":"https://api.github.com/users/ldoktor/received_events","type":"User","site_admin":false},"body":"Also the `dump` and `load` arguments should go into the same `-h` section.","created_at":"2018-02-16T16:19:11Z","updated_at":"2018-02-16T16:19:11Z","html_url":"https://github.com/avocado-framework/avocado/pull/2459#discussion_r168801729","pull_request_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/2459","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/comments/168801729"},"html":{"href":"https://github.com/avocado-framework/avocado/pull/2459#discussion_r168801729"},"pull_request":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/2459"}},"in_reply_to_id":168800299},"pull_request":{"url":"https://api.github.com/repos/avocado-framework/avocado/pulls/2459","id":169617492,"html_url":"https://github.com/avocado-framework/avocado/pull/2459","diff_url":"https://github.com/avocado-framework/avocado/pull/2459.diff","patch_url":"https://github.com/avocado-framework/avocado/pull/2459.patch","issue_url":"https://api.github.com/repos/avocado-framework/avocado/issues/2459","number":2459,"state":"open","locked":false,"title":"Support variants dump/load [V2]","user":{"login":"apahim","id":4717757,"avatar_url":"https://avatars3.githubusercontent.com/u/4717757?v=4","gravatar_id":"","url":"https://api.github.com/users/apahim","html_url":"https://github.com/apahim","followers_url":"https://api.github.com/users/apahim/followers","following_url":"https://api.github.com/users/apahim/following{/other_user}","gists_url":"https://api.github.com/users/apahim/gists{/gist_id}","starred_url":"https://api.github.com/users/apahim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apahim/subscriptions","organizations_url":"https://api.github.com/users/apahim/orgs","repos_url":"https://api.github.com/users/apahim/repos","events_url":"https://api.github.com/users/apahim/events{/privacy}","received_events_url":"https://api.github.com/users/apahim/received_events","type":"User","site_admin":false},"body":"v2:\r\n- Turn the \"load\" part into a optional plugin\r\n\r\nv1: #2437 ","created_at":"2018-02-16T12:55:06Z","updated_at":"2018-02-16T16:19:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a2fac049a3a9da453eed8acfd43d08637031d62","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/2459/commits","review_comments_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/2459/comments","review_comment_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/comments{/number}","comments_url":"https://api.github.com/repos/avocado-framework/avocado/issues/2459/comments","statuses_url":"https://api.github.com/repos/avocado-framework/avocado/statuses/37b590051cf0f07a5448ec4390c6350747dd2a97","head":{"label":"apahim:dump_load_variants_2","ref":"dump_load_variants_2","sha":"37b590051cf0f07a5448ec4390c6350747dd2a97","user":{"login":"apahim","id":4717757,"avatar_url":"https://avatars3.githubusercontent.com/u/4717757?v=4","gravatar_id":"","url":"https://api.github.com/users/apahim","html_url":"https://github.com/apahim","followers_url":"https://api.github.com/users/apahim/followers","following_url":"https://api.github.com/users/apahim/following{/other_user}","gists_url":"https://api.github.com/users/apahim/gists{/gist_id}","starred_url":"https://api.github.com/users/apahim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apahim/subscriptions","organizations_url":"https://api.github.com/users/apahim/orgs","repos_url":"https://api.github.com/users/apahim/repos","events_url":"https://api.github.com/users/apahim/events{/privacy}","received_events_url":"https://api.github.com/users/apahim/received_events","type":"User","site_admin":false},"repo":{"id":44574830,"name":"avocado","full_name":"apahim/avocado","owner":{"login":"apahim","id":4717757,"avatar_url":"https://avatars3.githubusercontent.com/u/4717757?v=4","gravatar_id":"","url":"https://api.github.com/users/apahim","html_url":"https://github.com/apahim","followers_url":"https://api.github.com/users/apahim/followers","following_url":"https://api.github.com/users/apahim/following{/other_user}","gists_url":"https://api.github.com/users/apahim/gists{/gist_id}","starred_url":"https://api.github.com/users/apahim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apahim/subscriptions","organizations_url":"https://api.github.com/users/apahim/orgs","repos_url":"https://api.github.com/users/apahim/repos","events_url":"https://api.github.com/users/apahim/events{/privacy}","received_events_url":"https://api.github.com/users/apahim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apahim/avocado","description":"Avocado Test Framework","fork":true,"url":"https://api.github.com/repos/apahim/avocado","forks_url":"https://api.github.com/repos/apahim/avocado/forks","keys_url":"https://api.github.com/repos/apahim/avocado/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apahim/avocado/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apahim/avocado/teams","hooks_url":"https://api.github.com/repos/apahim/avocado/hooks","issue_events_url":"https://api.github.com/repos/apahim/avocado/issues/events{/number}","events_url":"https://api.github.com/repos/apahim/avocado/events","assignees_url":"https://api.github.com/repos/apahim/avocado/assignees{/user}","branches_url":"https://api.github.com/repos/apahim/avocado/branches{/branch}","tags_url":"https://api.github.com/repos/apahim/avocado/tags","blobs_url":"https://api.github.com/repos/apahim/avocado/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apahim/avocado/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apahim/avocado/git/refs{/sha}","trees_url":"https://api.github.com/repos/apahim/avocado/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apahim/avocado/statuses/{sha}","languages_url":"https://api.github.com/repos/apahim/avocado/languages","stargazers_url":"https://api.github.com/repos/apahim/avocado/stargazers","contributors_url":"https://api.github.com/repos/apahim/avocado/contributors","subscribers_url":"https://api.github.com/repos/apahim/avocado/subscribers","subscription_url":"https://api.github.com/repos/apahim/avocado/subscription","commits_url":"https://api.github.com/repos/apahim/avocado/commits{/sha}","git_commits_url":"https://api.github.com/repos/apahim/avocado/git/commits{/sha}","comments_url":"https://api.github.com/repos/apahim/avocado/comments{/number}","issue_comment_url":"https://api.github.com/repos/apahim/avocado/issues/comments{/number}","contents_url":"https://api.github.com/repos/apahim/avocado/contents/{+path}","compare_url":"https://api.github.com/repos/apahim/avocado/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apahim/avocado/merges","archive_url":"https://api.github.com/repos/apahim/avocado/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apahim/avocado/downloads","issues_url":"https://api.github.com/repos/apahim/avocado/issues{/number}","pulls_url":"https://api.github.com/repos/apahim/avocado/pulls{/number}","milestones_url":"https://api.github.com/repos/apahim/avocado/milestones{/number}","notifications_url":"https://api.github.com/repos/apahim/avocado/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apahim/avocado/labels{/name}","releases_url":"https://api.github.com/repos/apahim/avocado/releases{/id}","deployments_url":"https://api.github.com/repos/apahim/avocado/deployments","created_at":"2015-10-20T01:37:56Z","updated_at":"2016-01-12T16:29:34Z","pushed_at":"2018-02-16T12:53:49Z","git_url":"git://github.com/apahim/avocado.git","ssh_url":"git@github.com:apahim/avocado.git","clone_url":"https://github.com/apahim/avocado.git","svn_url":"https://github.com/apahim/avocado","homepage":"http://avocado-framework.github.io/","size":12043,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"avocado-framework:master","ref":"master","sha":"15d436d7f7717b9b7e868fa584ca67b68e7970ac","user":{"login":"avocado-framework","id":7245719,"avatar_url":"https://avatars3.githubusercontent.com/u/7245719?v=4","gravatar_id":"","url":"https://api.github.com/users/avocado-framework","html_url":"https://github.com/avocado-framework","followers_url":"https://api.github.com/users/avocado-framework/followers","following_url":"https://api.github.com/users/avocado-framework/following{/other_user}","gists_url":"https://api.github.com/users/avocado-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/avocado-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avocado-framework/subscriptions","organizations_url":"https://api.github.com/users/avocado-framework/orgs","repos_url":"https://api.github.com/users/avocado-framework/repos","events_url":"https://api.github.com/users/avocado-framework/events{/privacy}","received_events_url":"https://api.github.com/users/avocado-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":17449498,"name":"avocado","full_name":"avocado-framework/avocado","owner":{"login":"avocado-framework","id":7245719,"avatar_url":"https://avatars3.githubusercontent.com/u/7245719?v=4","gravatar_id":"","url":"https://api.github.com/users/avocado-framework","html_url":"https://github.com/avocado-framework","followers_url":"https://api.github.com/users/avocado-framework/followers","following_url":"https://api.github.com/users/avocado-framework/following{/other_user}","gists_url":"https://api.github.com/users/avocado-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/avocado-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avocado-framework/subscriptions","organizations_url":"https://api.github.com/users/avocado-framework/orgs","repos_url":"https://api.github.com/users/avocado-framework/repos","events_url":"https://api.github.com/users/avocado-framework/events{/privacy}","received_events_url":"https://api.github.com/users/avocado-framework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/avocado-framework/avocado","description":"Avocado Test Framework","fork":false,"url":"https://api.github.com/repos/avocado-framework/avocado","forks_url":"https://api.github.com/repos/avocado-framework/avocado/forks","keys_url":"https://api.github.com/repos/avocado-framework/avocado/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avocado-framework/avocado/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avocado-framework/avocado/teams","hooks_url":"https://api.github.com/repos/avocado-framework/avocado/hooks","issue_events_url":"https://api.github.com/repos/avocado-framework/avocado/issues/events{/number}","events_url":"https://api.github.com/repos/avocado-framework/avocado/events","assignees_url":"https://api.github.com/repos/avocado-framework/avocado/assignees{/user}","branches_url":"https://api.github.com/repos/avocado-framework/avocado/branches{/branch}","tags_url":"https://api.github.com/repos/avocado-framework/avocado/tags","blobs_url":"https://api.github.com/repos/avocado-framework/avocado/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avocado-framework/avocado/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avocado-framework/avocado/git/refs{/sha}","trees_url":"https://api.github.com/repos/avocado-framework/avocado/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avocado-framework/avocado/statuses/{sha}","languages_url":"https://api.github.com/repos/avocado-framework/avocado/languages","stargazers_url":"https://api.github.com/repos/avocado-framework/avocado/stargazers","contributors_url":"https://api.github.com/repos/avocado-framework/avocado/contributors","subscribers_url":"https://api.github.com/repos/avocado-framework/avocado/subscribers","subscription_url":"https://api.github.com/repos/avocado-framework/avocado/subscription","commits_url":"https://api.github.com/repos/avocado-framework/avocado/commits{/sha}","git_commits_url":"https://api.github.com/repos/avocado-framework/avocado/git/commits{/sha}","comments_url":"https://api.github.com/repos/avocado-framework/avocado/comments{/number}","issue_comment_url":"https://api.github.com/repos/avocado-framework/avocado/issues/comments{/number}","contents_url":"https://api.github.com/repos/avocado-framework/avocado/contents/{+path}","compare_url":"https://api.github.com/repos/avocado-framework/avocado/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avocado-framework/avocado/merges","archive_url":"https://api.github.com/repos/avocado-framework/avocado/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avocado-framework/avocado/downloads","issues_url":"https://api.github.com/repos/avocado-framework/avocado/issues{/number}","pulls_url":"https://api.github.com/repos/avocado-framework/avocado/pulls{/number}","milestones_url":"https://api.github.com/repos/avocado-framework/avocado/milestones{/number}","notifications_url":"https://api.github.com/repos/avocado-framework/avocado/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avocado-framework/avocado/labels{/name}","releases_url":"https://api.github.com/repos/avocado-framework/avocado/releases{/id}","deployments_url":"https://api.github.com/repos/avocado-framework/avocado/deployments","created_at":"2014-03-05T17:52:27Z","updated_at":"2018-02-12T09:23:03Z","pushed_at":"2018-02-16T12:55:06Z","git_url":"git://github.com/avocado-framework/avocado.git","ssh_url":"git@github.com:avocado-framework/avocado.git","clone_url":"https://github.com/avocado-framework/avocado.git","svn_url":"https://github.com/avocado-framework/avocado","homepage":"http://avocado-framework.github.io/","size":11847,"stargazers_count":139,"watchers_count":139,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":153,"mirror_url":null,"archived":false,"open_issues_count":36,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":153,"open_issues":36,"watchers":139,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/2459"},"html":{"href":"https://github.com/avocado-framework/avocado/pull/2459"},"issue":{"href":"https://api.github.com/repos/avocado-framework/avocado/issues/2459"},"comments":{"href":"https://api.github.com/repos/avocado-framework/avocado/issues/2459/comments"},"review_comments":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/2459/comments"},"review_comment":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/2459/commits"},"statuses":{"href":"https://api.github.com/repos/avocado-framework/avocado/statuses/37b590051cf0f07a5448ec4390c6350747dd2a97"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ldoktor"}}