payload: {"action":"created","comment":{"url":"https://api.github.com/repos/SUSE/scf/pulls/comments/312610320","pull_request_review_id":273309868,"id":312610320,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxMjYxMDMyMA==","diff_hunk":"@@ -0,0 +1,160 @@\n+#!/usr/bin/env bash\n+set -o errexit -o nounset\n+\n+CF_NAMESPACE=\"${1}\"\t; shift\n+engine=\"${1}\"\t\t; shift\n+enginev=\"${1}\"\t\t; shift\n+chartv=\"${1}\"\t\t; shift\n+chartlocation=\"${1}\"\t; shift\n+CAP=\"${1}\"\t\t; shift\n+\n+# General operation - Testing a single chart for a specific engine.\n+# a. Make a copy of the node-env application in the brain test resources.\n+# b. Place the chart index into the app, as `index.yaml`.\n+# c. For all but postgres further:\n+#    1. Pull the stable chart archive from the indicated location\n+#    2. Unpack, patch and repack the archive\n+#    3. Place the modified archive into the app\n+#    4. Edit the index.yaml to refer to new location of the archive.\n+# d. Target the cluster, and push the node-env application\n+# e. Run the brain test customized to run only a single test case,\n+#    specific to the minibroker engine, and configured to use the\n+#    node-env app as its helm chart repository.\n+# f. Capture test result\n+# g. Delete node-env application serving as helm repository\n+\n+# Location .............................................................\n+\n+: \"${GIT_ROOT:=$(git rev-parse --show-toplevel)}\"\n+cd \"${GIT_ROOT}\"\n+\n+# Configuration ........................................................\n+\n+TOP=$(pwd)\n+bin=\"${TOP}/tooling/mb-chart-assessment\"\n+wrk=\"${TOP}/_work\"\n+stem=kube-chart-index\n+rstem=dbe\n+master=\"${wrk}/${rstem}-charts-master-index.yaml\"\n+\n+stable=https://kubernetes-charts.storage.googleapis.com\n+index=\"${stable}/index.yaml\"\n+\n+# Setup ................................................................\n+\n+source \"${TOP}/make/include/colors\"\n+\n+LOG=\"${wrk}/${rstem}-${engine}/${enginev}-${chartv}.log\"\n+\n+sep() {\n+    >> \"${LOG}\" echo -e \"\\n....................................... $1\\n\"\n+}\n+\n+rm -f \"${LOG}\"\n+\n+echo -n '  -' $(blue \"${engine}\") $(blue \"${enginev}\"), chart $(blue \"${chartv}\") ...\n+\n+case $engine in\n+    mariadb)\ttestcase=014_minibroker_mariadb_test\t;;\n+    mongodb)\ttestcase=016_minibroker_mongodb_test\t;;\n+    postgresql)\ttestcase=015_minibroker_postgres_test\t;;\n+    redis)\ttestcase=012_minibroker_redis_test\t;;\n+    *)\t\techo \" $(magenta Skipping), $(red \"no testcase known\")\"\n+\t\texit\n+\t\t;;\n+esac\n+\n+# ______________________________________________________________________\n+# 3.a, 3.b, 3.c\n+#\n+# sep 'cluster starting ...'\n+# echo -n ' cluster setup ...'\n+# (\n+#     make/uaa/run;\n+#     make/wait uaa;\n+#     make/run --set \"env.SCF_LOG_HOST=log-fake.cf.svc.cluster.local\" \"$@\";\n+#     make/wait cf;\n+\n+# ) >> \"${LOG}\" 2>&1\n+# echo -n \"$(left 12)$(eeol)$(green up),\"\n+\n+# ______________________________________________________________________\n+# 3.d, 3.e\n+#\n+sep 'helm repo setup ...'\n+echo -n ' helm repo starting ...'\n+HREPOS=\"$(\"${bin}/local-chart-repository\" start \\\n+\t\t\"${LOG}\" \"${TOP}\" \"${wrk}\" \"${CF_NAMESPACE}\" \\\n+\t\t\"${wrk}/${rstem}-${engine}/${enginev}-${chartv}.yaml\" \\\n+\t\t\"${engine}\" \"${chartlocation}\" \"${CAP}\" || true)\"\n+\n+if [ \"${HREPOS}\" == \"\" ]\n+then\n+    echo \"$(left 12)$(eeol)$(red \"start failed\"), likely a patch failure\"\n+    echo FAIL \"${engine}\" \"${enginev}\" \"${chartv}\" >> \"${wrk}/${rstem}-chart-results.csv\"\n+    exit 1","path":"tooling/mb-chart-assessment/assess-single-chart","position":95,"original_position":95,"commit_id":"975cac4c0e66bdbad24e8ef4202a51ab1c8ee541","original_commit_id":"975cac4c0e66bdbad24e8ef4202a51ab1c8ee541","user":{"login":"andreas-kupries","id":577247,"node_id":"MDQ6VXNlcjU3NzI0Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/577247?v=4","gravatar_id":"","url":"https://api.github.com/users/andreas-kupries","html_url":"https://github.com/andreas-kupries","followers_url":"https://api.github.com/users/andreas-kupries/followers","following_url":"https://api.github.com/users/andreas-kupries/following{/other_user}","gists_url":"https://api.github.com/users/andreas-kupries/gists{/gist_id}","starred_url":"https://api.github.com/users/andreas-kupries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreas-kupries/subscriptions","organizations_url":"https://api.github.com/users/andreas-kupries/orgs","repos_url":"https://api.github.com/users/andreas-kupries/repos","events_url":"https://api.github.com/users/andreas-kupries/events{/privacy}","received_events_url":"https://api.github.com/users/andreas-kupries/received_events","type":"User","site_admin":false},"body":"Checking ... Right. Ok.","created_at":"2019-08-09T18:58:02Z","updated_at":"2019-08-09T18:58:02Z","html_url":"https://github.com/SUSE/scf/pull/2654#discussion_r312610320","pull_request_url":"https://api.github.com/repos/SUSE/scf/pulls/2654","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SUSE/scf/pulls/comments/312610320"},"html":{"href":"https://github.com/SUSE/scf/pull/2654#discussion_r312610320"},"pull_request":{"href":"https://api.github.com/repos/SUSE/scf/pulls/2654"}},"in_reply_to_id":312588114},"pull_request":{"url":"https://api.github.com/repos/SUSE/scf/pulls/2654","id":305293717,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA1MjkzNzE3","html_url":"https://github.com/SUSE/scf/pull/2654","diff_url":"https://github.com/SUSE/scf/pull/2654.diff","patch_url":"https://github.com/SUSE/scf/pull/2654.patch","issue_url":"https://api.github.com/repos/SUSE/scf/issues/2654","number":2654,"state":"open","locked":false,"title":"Added tooling to assess minibroker charts for usability with CAP","user":{"login":"andreas-kupries","id":577247,"node_id":"MDQ6VXNlcjU3NzI0Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/577247?v=4","gravatar_id":"","url":"https://api.github.com/users/andreas-kupries","html_url":"https://github.com/andreas-kupries","followers_url":"https://api.github.com/users/andreas-kupries/followers","following_url":"https://api.github.com/users/andreas-kupries/following{/other_user}","gists_url":"https://api.github.com/users/andreas-kupries/gists{/gist_id}","starred_url":"https://api.github.com/users/andreas-kupries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreas-kupries/subscriptions","organizations_url":"https://api.github.com/users/andreas-kupries/orgs","repos_url":"https://api.github.com/users/andreas-kupries/repos","events_url":"https://api.github.com/users/andreas-kupries/events{/privacy}","received_events_url":"https://api.github.com/users/andreas-kupries/received_events","type":"User","site_admin":false},"body":"## Description\r\n\r\nhttps://jira.suse.com/browse/CAP-566\r\n\r\nMain script `assess-minibroker-charts` to perform assessment based on\r\ncurrent state of master index of all stable helm chart.\r\n\r\nSecondary script to convert base results into the yaml format expected\r\nby other tooling.\r\n\r\nHelper scripts for various sub-tasks.\r\n\r\nPatch files required by charts to work with CAP/minibroker.\r\n\r\nDocumentation (Requisites, usage).\r\n\r\n## Test plan\r\n\r\n  - Create CAP cluster, point `kubectl` at it.\r\n  - Run main script as per its documentation. \r\n  - Wait two days (for completion), or just long enough to see a single working chart.\r\n  - Generate yaml from main results, using the secondary script, as per its documentation.\r\n  - :warning: The referenced ticket has a `dbe-chart-results.csv` attached, my results. This enables testing in/of incremental mode as well, which is much faster. Just removing specific entries in the file can be used to trigger testing of known (non-)working charts.\r\n\r\n:warning: At this point the tooling is not integrated into any type of pipeline.\r\n","created_at":"2019-08-07T19:45:08Z","updated_at":"2019-08-09T18:58:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85e4849c969c128bc836de198d97ade8520c79e7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SUSE/scf/pulls/2654/commits","review_comments_url":"https://api.github.com/repos/SUSE/scf/pulls/2654/comments","review_comment_url":"https://api.github.com/repos/SUSE/scf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SUSE/scf/issues/2654/comments","statuses_url":"https://api.github.com/repos/SUSE/scf/statuses/975cac4c0e66bdbad24e8ef4202a51ab1c8ee541","head":{"label":"SUSE:ak-cap-566-charting-minibroker","ref":"ak-cap-566-charting-minibroker","sha":"975cac4c0e66bdbad24e8ef4202a51ab1c8ee541","user":{"login":"SUSE","id":1067733,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjc3MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1067733?v=4","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":43776718,"node_id":"MDEwOlJlcG9zaXRvcnk0Mzc3NjcxOA==","name":"scf","full_name":"SUSE/scf","private":false,"owner":{"login":"SUSE","id":1067733,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjc3MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1067733?v=4","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SUSE/scf","description":"SUSE Cloud Foundry","fork":false,"url":"https://api.github.com/repos/SUSE/scf","forks_url":"https://api.github.com/repos/SUSE/scf/forks","keys_url":"https://api.github.com/repos/SUSE/scf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SUSE/scf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SUSE/scf/teams","hooks_url":"https://api.github.com/repos/SUSE/scf/hooks","issue_events_url":"https://api.github.com/repos/SUSE/scf/issues/events{/number}","events_url":"https://api.github.com/repos/SUSE/scf/events","assignees_url":"https://api.github.com/repos/SUSE/scf/assignees{/user}","branches_url":"https://api.github.com/repos/SUSE/scf/branches{/branch}","tags_url":"https://api.github.com/repos/SUSE/scf/tags","blobs_url":"https://api.github.com/repos/SUSE/scf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SUSE/scf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SUSE/scf/git/refs{/sha}","trees_url":"https://api.github.com/repos/SUSE/scf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SUSE/scf/statuses/{sha}","languages_url":"https://api.github.com/repos/SUSE/scf/languages","stargazers_url":"https://api.github.com/repos/SUSE/scf/stargazers","contributors_url":"https://api.github.com/repos/SUSE/scf/contributors","subscribers_url":"https://api.github.com/repos/SUSE/scf/subscribers","subscription_url":"https://api.github.com/repos/SUSE/scf/subscription","commits_url":"https://api.github.com/repos/SUSE/scf/commits{/sha}","git_commits_url":"https://api.github.com/repos/SUSE/scf/git/commits{/sha}","comments_url":"https://api.github.com/repos/SUSE/scf/comments{/number}","issue_comment_url":"https://api.github.com/repos/SUSE/scf/issues/comments{/number}","contents_url":"https://api.github.com/repos/SUSE/scf/contents/{+path}","compare_url":"https://api.github.com/repos/SUSE/scf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SUSE/scf/merges","archive_url":"https://api.github.com/repos/SUSE/scf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SUSE/scf/downloads","issues_url":"https://api.github.com/repos/SUSE/scf/issues{/number}","pulls_url":"https://api.github.com/repos/SUSE/scf/pulls{/number}","milestones_url":"https://api.github.com/repos/SUSE/scf/milestones{/number}","notifications_url":"https://api.github.com/repos/SUSE/scf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SUSE/scf/labels{/name}","releases_url":"https://api.github.com/repos/SUSE/scf/releases{/id}","deployments_url":"https://api.github.com/repos/SUSE/scf/deployments","created_at":"2015-10-06T20:30:32Z","updated_at":"2019-08-08T12:51:42Z","pushed_at":"2019-08-09T18:46:59Z","git_url":"git://github.com/SUSE/scf.git","ssh_url":"git@github.com:SUSE/scf.git","clone_url":"https://github.com/SUSE/scf.git","svn_url":"https://github.com/SUSE/scf","homepage":"","size":34974,"stargazers_count":53,"watchers_count":53,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":27,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":38,"open_issues":27,"watchers":53,"default_branch":"develop"}},"base":{"label":"SUSE:develop","ref":"develop","sha":"97f195e84cf1959612fa7e8160bc2d169e958574","user":{"login":"SUSE","id":1067733,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjc3MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1067733?v=4","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":43776718,"node_id":"MDEwOlJlcG9zaXRvcnk0Mzc3NjcxOA==","name":"scf","full_name":"SUSE/scf","private":false,"owner":{"login":"SUSE","id":1067733,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjc3MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1067733?v=4","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SUSE/scf","description":"SUSE Cloud Foundry","fork":false,"url":"https://api.github.com/repos/SUSE/scf","forks_url":"https://api.github.com/repos/SUSE/scf/forks","keys_url":"https://api.github.com/repos/SUSE/scf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SUSE/scf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SUSE/scf/teams","hooks_url":"https://api.github.com/repos/SUSE/scf/hooks","issue_events_url":"https://api.github.com/repos/SUSE/scf/issues/events{/number}","events_url":"https://api.github.com/repos/SUSE/scf/events","assignees_url":"https://api.github.com/repos/SUSE/scf/assignees{/user}","branches_url":"https://api.github.com/repos/SUSE/scf/branches{/branch}","tags_url":"https://api.github.com/repos/SUSE/scf/tags","blobs_url":"https://api.github.com/repos/SUSE/scf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SUSE/scf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SUSE/scf/git/refs{/sha}","trees_url":"https://api.github.com/repos/SUSE/scf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SUSE/scf/statuses/{sha}","languages_url":"https://api.github.com/repos/SUSE/scf/languages","stargazers_url":"https://api.github.com/repos/SUSE/scf/stargazers","contributors_url":"https://api.github.com/repos/SUSE/scf/contributors","subscribers_url":"https://api.github.com/repos/SUSE/scf/subscribers","subscription_url":"https://api.github.com/repos/SUSE/scf/subscription","commits_url":"https://api.github.com/repos/SUSE/scf/commits{/sha}","git_commits_url":"https://api.github.com/repos/SUSE/scf/git/commits{/sha}","comments_url":"https://api.github.com/repos/SUSE/scf/comments{/number}","issue_comment_url":"https://api.github.com/repos/SUSE/scf/issues/comments{/number}","contents_url":"https://api.github.com/repos/SUSE/scf/contents/{+path}","compare_url":"https://api.github.com/repos/SUSE/scf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SUSE/scf/merges","archive_url":"https://api.github.com/repos/SUSE/scf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SUSE/scf/downloads","issues_url":"https://api.github.com/repos/SUSE/scf/issues{/number}","pulls_url":"https://api.github.com/repos/SUSE/scf/pulls{/number}","milestones_url":"https://api.github.com/repos/SUSE/scf/milestones{/number}","notifications_url":"https://api.github.com/repos/SUSE/scf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SUSE/scf/labels{/name}","releases_url":"https://api.github.com/repos/SUSE/scf/releases{/id}","deployments_url":"https://api.github.com/repos/SUSE/scf/deployments","created_at":"2015-10-06T20:30:32Z","updated_at":"2019-08-08T12:51:42Z","pushed_at":"2019-08-09T18:46:59Z","git_url":"git://github.com/SUSE/scf.git","ssh_url":"git@github.com:SUSE/scf.git","clone_url":"https://github.com/SUSE/scf.git","svn_url":"https://github.com/SUSE/scf","homepage":"","size":34974,"stargazers_count":53,"watchers_count":53,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":27,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":38,"open_issues":27,"watchers":53,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/SUSE/scf/pulls/2654"},"html":{"href":"https://github.com/SUSE/scf/pull/2654"},"issue":{"href":"https://api.github.com/repos/SUSE/scf/issues/2654"},"comments":{"href":"https://api.github.com/repos/SUSE/scf/issues/2654/comments"},"review_comments":{"href":"https://api.github.com/repos/SUSE/scf/pulls/2654/comments"},"review_comment":{"href":"https://api.github.com/repos/SUSE/scf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SUSE/scf/pulls/2654/commits"},"statuses":{"href":"https://api.github.com/repos/SUSE/scf/statuses/975cac4c0e66bdbad24e8ef4202a51ab1c8ee541"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"andreas-kupries"}}