{"action":"created","comment":{"url":"https://api.github.com/repos/giantswarm/exporterkit/pulls/comments/227691759","pull_request_review_id":167789405,"id":227691759,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzY5MTc1OQ==","diff_hunk":"@@ -0,0 +1,104 @@\n+package collector\n+\n+import (\n+\t\"context\"\n+\t\"sync\"\n+\t\"testing\"\n+\n+\t\"github.com/giantswarm/microerror\"\n+\t\"github.com/giantswarm/micrologger/microloggertest\"\n+\t\"github.com/prometheus/client_golang/prometheus\"\n+)\n+\n+func Test_Collector_Set_Boot(t *testing.T) {\n+\tfor i := 0; i < 100; i++ {\n+\t\tc, s, err := newCollectorAndSet()\n+\t\tif err != nil {\n+\t\t\tt.Fatalf(err.Error())\n+\t\t}\n+\n+\t\tvar wg sync.WaitGroup\n+\n+\t\tfor g := 0; g < 100; g++ {\n+\t\t\twg.Add(1)\n+\n+\t\t\tgo func() {\n+\t\t\t\tdefer wg.Done()\n+\n+\t\t\t\terr := s.Boot(context.Background())\n+\t\t\t\tif err != nil {\n+\t\t\t\t\tt.Fatalf(err.Error())\n+\t\t\t\t}\n+\t\t\t}()\n+\t\t}\n+\n+\t\twg.Wait()\n+\n+\t\tif !c.gotBootedOnce() {\n+\t\t\tt.Fatalf(\"expected collector to be booted once\")\n+\t\t}\n+\t}\n+}\n+\n+//\n+//\n+//","path":"collector/set_test.go","position":45,"original_position":45,"commit_id":"3701b2ce80940df277cf1280b94a4676b48aa412","original_commit_id":"3701b2ce80940df277cf1280b94a4676b48aa412","user":{"login":"kopiczko","id":4608994,"node_id":"MDQ6VXNlcjQ2MDg5OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/4608994?v=4","gravatar_id":"","url":"https://api.github.com/users/kopiczko","html_url":"https://github.com/kopiczko","followers_url":"https://api.github.com/users/kopiczko/followers","following_url":"https://api.github.com/users/kopiczko/following{/other_user}","gists_url":"https://api.github.com/users/kopiczko/gists{/gist_id}","starred_url":"https://api.github.com/users/kopiczko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopiczko/subscriptions","organizations_url":"https://api.github.com/users/kopiczko/orgs","repos_url":"https://api.github.com/users/kopiczko/repos","events_url":"https://api.github.com/users/kopiczko/events{/privacy}","received_events_url":"https://api.github.com/users/kopiczko/received_events","type":"User","site_admin":false},"body":"What's that?","created_at":"2018-10-24T08:38:28Z","updated_at":"2018-10-24T08:40:17Z","html_url":"https://github.com/giantswarm/exporterkit/pull/12#discussion_r227691759","pull_request_url":"https://api.github.com/repos/giantswarm/exporterkit/pulls/12","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/giantswarm/exporterkit/pulls/comments/227691759"},"html":{"href":"https://github.com/giantswarm/exporterkit/pull/12#discussion_r227691759"},"pull_request":{"href":"https://api.github.com/repos/giantswarm/exporterkit/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/giantswarm/exporterkit/pulls/12","id":225115156,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MTE1MTU2","html_url":"https://github.com/giantswarm/exporterkit/pull/12","diff_url":"https://github.com/giantswarm/exporterkit/pull/12.diff","patch_url":"https://github.com/giantswarm/exporterkit/pull/12.patch","issue_url":"https://api.github.com/repos/giantswarm/exporterkit/issues/12","number":12,"state":"open","locked":false,"title":"adds suggestion for collector set","user":{"login":"xh3b4sd","id":552769,"node_id":"MDQ6VXNlcjU1Mjc2OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/552769?v=4","gravatar_id":"","url":"https://api.github.com/users/xh3b4sd","html_url":"https://github.com/xh3b4sd","followers_url":"https://api.github.com/users/xh3b4sd/followers","following_url":"https://api.github.com/users/xh3b4sd/following{/other_user}","gists_url":"https://api.github.com/users/xh3b4sd/gists{/gist_id}","starred_url":"https://api.github.com/users/xh3b4sd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xh3b4sd/subscriptions","organizations_url":"https://api.github.com/users/xh3b4sd/orgs","repos_url":"https://api.github.com/users/xh3b4sd/repos","events_url":"https://api.github.com/users/xh3b4sd/events{/privacy}","received_events_url":"https://api.github.com/users/xh3b4sd/received_events","type":"User","site_admin":false},"body":"Towards https://github.com/giantswarm/giantswarm/issues/4462. Successor of https://github.com/giantswarm/operatorkit/pull/241. ","created_at":"2018-10-23T16:58:37Z","updated_at":"2018-10-24T08:40:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a620d906e4e905c77cb48b11f9e72de8d3d5a77","assignee":{"login":"xh3b4sd","id":552769,"node_id":"MDQ6VXNlcjU1Mjc2OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/552769?v=4","gravatar_id":"","url":"https://api.github.com/users/xh3b4sd","html_url":"https://github.com/xh3b4sd","followers_url":"https://api.github.com/users/xh3b4sd/followers","following_url":"https://api.github.com/users/xh3b4sd/following{/other_user}","gists_url":"https://api.github.com/users/xh3b4sd/gists{/gist_id}","starred_url":"https://api.github.com/users/xh3b4sd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xh3b4sd/subscriptions","organizations_url":"https://api.github.com/users/xh3b4sd/orgs","repos_url":"https://api.github.com/users/xh3b4sd/repos","events_url":"https://api.github.com/users/xh3b4sd/events{/privacy}","received_events_url":"https://api.github.com/users/xh3b4sd/received_events","type":"User","site_admin":false},"assignees":[{"login":"xh3b4sd","id":552769,"node_id":"MDQ6VXNlcjU1Mjc2OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/552769?v=4","gravatar_id":"","url":"https://api.github.com/users/xh3b4sd","html_url":"https://github.com/xh3b4sd","followers_url":"https://api.github.com/users/xh3b4sd/followers","following_url":"https://api.github.com/users/xh3b4sd/following{/other_user}","gists_url":"https://api.github.com/users/xh3b4sd/gists{/gist_id}","starred_url":"https://api.github.com/users/xh3b4sd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xh3b4sd/subscriptions","organizations_url":"https://api.github.com/users/xh3b4sd/orgs","repos_url":"https://api.github.com/users/xh3b4sd/repos","events_url":"https://api.github.com/users/xh3b4sd/events{/privacy}","received_events_url":"https://api.github.com/users/xh3b4sd/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/giantswarm/exporterkit/pulls/12/commits","review_comments_url":"https://api.github.com/repos/giantswarm/exporterkit/pulls/12/comments","review_comment_url":"https://api.github.com/repos/giantswarm/exporterkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/giantswarm/exporterkit/issues/12/comments","statuses_url":"https://api.github.com/repos/giantswarm/exporterkit/statuses/3701b2ce80940df277cf1280b94a4676b48aa412","head":{"label":"giantswarm:collector","ref":"collector","sha":"3701b2ce80940df277cf1280b94a4676b48aa412","user":{"login":"giantswarm","id":7556340,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1NTYzNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/7556340?v=4","gravatar_id":"","url":"https://api.github.com/users/giantswarm","html_url":"https://github.com/giantswarm","followers_url":"https://api.github.com/users/giantswarm/followers","following_url":"https://api.github.com/users/giantswarm/following{/other_user}","gists_url":"https://api.github.com/users/giantswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/giantswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantswarm/subscriptions","organizations_url":"https://api.github.com/users/giantswarm/orgs","repos_url":"https://api.github.com/users/giantswarm/repos","events_url":"https://api.github.com/users/giantswarm/events{/privacy}","received_events_url":"https://api.github.com/users/giantswarm/received_events","type":"Organization","site_admin":false},"repo":{"id":85874199,"node_id":"MDEwOlJlcG9zaXRvcnk4NTg3NDE5OQ==","name":"exporterkit","full_name":"giantswarm/exporterkit","private":false,"owner":{"login":"giantswarm","id":7556340,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1NTYzNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/7556340?v=4","gravatar_id":"","url":"https://api.github.com/users/giantswarm","html_url":"https://github.com/giantswarm","followers_url":"https://api.github.com/users/giantswarm/followers","following_url":"https://api.github.com/users/giantswarm/following{/other_user}","gists_url":"https://api.github.com/users/giantswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/giantswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantswarm/subscriptions","organizations_url":"https://api.github.com/users/giantswarm/orgs","repos_url":"https://api.github.com/users/giantswarm/repos","events_url":"https://api.github.com/users/giantswarm/events{/privacy}","received_events_url":"https://api.github.com/users/giantswarm/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/giantswarm/exporterkit","description":"A high-level library for building Prometheus exporters","fork":false,"url":"https://api.github.com/repos/giantswarm/exporterkit","forks_url":"https://api.github.com/repos/giantswarm/exporterkit/forks","keys_url":"https://api.github.com/repos/giantswarm/exporterkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giantswarm/exporterkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giantswarm/exporterkit/teams","hooks_url":"https://api.github.com/repos/giantswarm/exporterkit/hooks","issue_events_url":"https://api.github.com/repos/giantswarm/exporterkit/issues/events{/number}","events_url":"https://api.github.com/repos/giantswarm/exporterkit/events","assignees_url":"https://api.github.com/repos/giantswarm/exporterkit/assignees{/user}","branches_url":"https://api.github.com/repos/giantswarm/exporterkit/branches{/branch}","tags_url":"https://api.github.com/repos/giantswarm/exporterkit/tags","blobs_url":"https://api.github.com/repos/giantswarm/exporterkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giantswarm/exporterkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giantswarm/exporterkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/giantswarm/exporterkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giantswarm/exporterkit/statuses/{sha}","languages_url":"https://api.github.com/repos/giantswarm/exporterkit/languages","stargazers_url":"https://api.github.com/repos/giantswarm/exporterkit/stargazers","contributors_url":"https://api.github.com/repos/giantswarm/exporterkit/contributors","subscribers_url":"https://api.github.com/repos/giantswarm/exporterkit/subscribers","subscription_url":"https://api.github.com/repos/giantswarm/exporterkit/subscription","commits_url":"https://api.github.com/repos/giantswarm/exporterkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/giantswarm/exporterkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/giantswarm/exporterkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/giantswarm/exporterkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/giantswarm/exporterkit/contents/{+path}","compare_url":"https://api.github.com/repos/giantswarm/exporterkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giantswarm/exporterkit/merges","archive_url":"https://api.github.com/repos/giantswarm/exporterkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giantswarm/exporterkit/downloads","issues_url":"https://api.github.com/repos/giantswarm/exporterkit/issues{/number}","pulls_url":"https://api.github.com/repos/giantswarm/exporterkit/pulls{/number}","milestones_url":"https://api.github.com/repos/giantswarm/exporterkit/milestones{/number}","notifications_url":"https://api.github.com/repos/giantswarm/exporterkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giantswarm/exporterkit/labels{/name}","releases_url":"https://api.github.com/repos/giantswarm/exporterkit/releases{/id}","deployments_url":"https://api.github.com/repos/giantswarm/exporterkit/deployments","created_at":"2017-03-22T20:43:35Z","updated_at":"2018-08-31T15:41:35Z","pushed_at":"2018-10-24T08:12:00Z","git_url":"git://github.com/giantswarm/exporterkit.git","ssh_url":"git@github.com:giantswarm/exporterkit.git","clone_url":"https://github.com/giantswarm/exporterkit.git","svn_url":"https://github.com/giantswarm/exporterkit","homepage":"https://giantswarm.io","size":9866,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"giantswarm:master","ref":"master","sha":"9f42c0281b485436c8076210eef61ca8a76acc32","user":{"login":"giantswarm","id":7556340,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1NTYzNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/7556340?v=4","gravatar_id":"","url":"https://api.github.com/users/giantswarm","html_url":"https://github.com/giantswarm","followers_url":"https://api.github.com/users/giantswarm/followers","following_url":"https://api.github.com/users/giantswarm/following{/other_user}","gists_url":"https://api.github.com/users/giantswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/giantswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantswarm/subscriptions","organizations_url":"https://api.github.com/users/giantswarm/orgs","repos_url":"https://api.github.com/users/giantswarm/repos","events_url":"https://api.github.com/users/giantswarm/events{/privacy}","received_events_url":"https://api.github.com/users/giantswarm/received_events","type":"Organization","site_admin":false},"repo":{"id":85874199,"node_id":"MDEwOlJlcG9zaXRvcnk4NTg3NDE5OQ==","name":"exporterkit","full_name":"giantswarm/exporterkit","private":false,"owner":{"login":"giantswarm","id":7556340,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1NTYzNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/7556340?v=4","gravatar_id":"","url":"https://api.github.com/users/giantswarm","html_url":"https://github.com/giantswarm","followers_url":"https://api.github.com/users/giantswarm/followers","following_url":"https://api.github.com/users/giantswarm/following{/other_user}","gists_url":"https://api.github.com/users/giantswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/giantswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantswarm/subscriptions","organizations_url":"https://api.github.com/users/giantswarm/orgs","repos_url":"https://api.github.com/users/giantswarm/repos","events_url":"https://api.github.com/users/giantswarm/events{/privacy}","received_events_url":"https://api.github.com/users/giantswarm/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/giantswarm/exporterkit","description":"A high-level library for building Prometheus exporters","fork":false,"url":"https://api.github.com/repos/giantswarm/exporterkit","forks_url":"https://api.github.com/repos/giantswarm/exporterkit/forks","keys_url":"https://api.github.com/repos/giantswarm/exporterkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giantswarm/exporterkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giantswarm/exporterkit/teams","hooks_url":"https://api.github.com/repos/giantswarm/exporterkit/hooks","issue_events_url":"https://api.github.com/repos/giantswarm/exporterkit/issues/events{/number}","events_url":"https://api.github.com/repos/giantswarm/exporterkit/events","assignees_url":"https://api.github.com/repos/giantswarm/exporterkit/assignees{/user}","branches_url":"https://api.github.com/repos/giantswarm/exporterkit/branches{/branch}","tags_url":"https://api.github.com/repos/giantswarm/exporterkit/tags","blobs_url":"https://api.github.com/repos/giantswarm/exporterkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giantswarm/exporterkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giantswarm/exporterkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/giantswarm/exporterkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giantswarm/exporterkit/statuses/{sha}","languages_url":"https://api.github.com/repos/giantswarm/exporterkit/languages","stargazers_url":"https://api.github.com/repos/giantswarm/exporterkit/stargazers","contributors_url":"https://api.github.com/repos/giantswarm/exporterkit/contributors","subscribers_url":"https://api.github.com/repos/giantswarm/exporterkit/subscribers","subscription_url":"https://api.github.com/repos/giantswarm/exporterkit/subscription","commits_url":"https://api.github.com/repos/giantswarm/exporterkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/giantswarm/exporterkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/giantswarm/exporterkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/giantswarm/exporterkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/giantswarm/exporterkit/contents/{+path}","compare_url":"https://api.github.com/repos/giantswarm/exporterkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giantswarm/exporterkit/merges","archive_url":"https://api.github.com/repos/giantswarm/exporterkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giantswarm/exporterkit/downloads","issues_url":"https://api.github.com/repos/giantswarm/exporterkit/issues{/number}","pulls_url":"https://api.github.com/repos/giantswarm/exporterkit/pulls{/number}","milestones_url":"https://api.github.com/repos/giantswarm/exporterkit/milestones{/number}","notifications_url":"https://api.github.com/repos/giantswarm/exporterkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giantswarm/exporterkit/labels{/name}","releases_url":"https://api.github.com/repos/giantswarm/exporterkit/releases{/id}","deployments_url":"https://api.github.com/repos/giantswarm/exporterkit/deployments","created_at":"2017-03-22T20:43:35Z","updated_at":"2018-08-31T15:41:35Z","pushed_at":"2018-10-24T08:12:00Z","git_url":"git://github.com/giantswarm/exporterkit.git","ssh_url":"git@github.com:giantswarm/exporterkit.git","clone_url":"https://github.com/giantswarm/exporterkit.git","svn_url":"https://github.com/giantswarm/exporterkit","homepage":"https://giantswarm.io","size":9866,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/giantswarm/exporterkit/pulls/12"},"html":{"href":"https://github.com/giantswarm/exporterkit/pull/12"},"issue":{"href":"https://api.github.com/repos/giantswarm/exporterkit/issues/12"},"comments":{"href":"https://api.github.com/repos/giantswarm/exporterkit/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/giantswarm/exporterkit/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/giantswarm/exporterkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/giantswarm/exporterkit/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/giantswarm/exporterkit/statuses/3701b2ce80940df277cf1280b94a4676b48aa412"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"kopiczko"}}