how to configure webhook triggered auto scaling #1142
Unanswered
shichengripple001
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to configure a webhook triggered HorizontalRunnerAutoscaler for my runnerSet, below is the yaml for my scaler. I am getting error from github-webhook-server, saying "Scale target not found. If this is unexpected, ensure that there is exactly one repository-wide or organizational runner deployment that matches this webhook event",
I have pasted the json payload from the webhook call also. not sure what am i doing wrong..
2022-02-22T09:15:47.545Z DEBUG controllers.Runner Found 1 HRAs by key {"key": "xxxxxxxxxx/xxxxxx-clone-1"}
2022-02-22T09:15:47.545Z DEBUG controllers.Runner no repository runner found {"event": "push", "hookID": "344568695", "delivery": "05035358-93c0-11ec-9a9b-00270fb03643", "organization": "xxxxxxxxxx"}
2022-02-22T09:15:47.545Z INFO controllers.Runner Scale target not found. If this is unexpected, ensure that there is exactly one repository-wide or organizational runner deployment that matches this webhook event {"event": "push", "hookID": "344568695", "delivery": "05035358-93c0-11ec-9a9b-00270fb03643"}
Json Payload:
{
"ref": "refs/heads/github-ci",
"before": "38328f8effce1992536b9d1387dd2b0ab7d40cc1",
"after": "5b395279918b103be04e5723ba933d9d2c5e62d6",
"repository": {
"id": 458971853,
"node_id": "R_kgDOG1tazQ",
"name": "xxxxxxxxxd-clone-1",
"full_name": "xxxxxxxxx/xxxxxxxxxd-clone-1",
"private": true,
"owner": {
"name": "xxxxxxxxx",
"email": "[email protected]",
"login": "xxxxxxxxx",
"id": 97218929,
"node_id": "U_kgDOBctxcQ",
"avatar_url": "https://avatars.githubusercontent.com/u/97218929?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xxxxxxxxx",
"html_url": "https://github.com/xxxxxxxxx",
"followers_url": "https://api.github.com/users/xxxxxxxxx/followers",
"following_url": "https://api.github.com/users/xxxxxxxxx/following{/other_user}",
"gists_url": "https://api.github.com/users/xxxxxxxxx/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xxxxxxxxx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xxxxxxxxx/subscriptions",
"organizations_url": "https://api.github.com/users/xxxxxxxxx/orgs",
"repos_url": "https://api.github.com/users/xxxxxxxxx/repos",
"events_url": "https://api.github.com/users/xxxxxxxxx/events{/privacy}",
"received_events_url": "https://api.github.com/users/xxxxxxxxx/received_events",
"type": "User",
"site_admin": false
},
"html_url": "https://github.com/xxxxxxxxx/xxxxxxxxxd-clone-1",
"description": null,
"fork": false,
"url": "https://github.com/xxxxxxxxx/xxxxxxxxxd-clone-1",
"forks_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/forks",
"keys_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/teams",
"hooks_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/hooks",
"issue_events_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/issues/events{/number}",
"events_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/events",
"assignees_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/assignees{/user}",
"branches_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/branches{/branch}",
"tags_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/tags",
"blobs_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/statuses/{sha}",
"languages_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/languages",
"stargazers_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/stargazers",
"contributors_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/contributors",
"subscribers_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/subscribers",
"subscription_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/subscription",
"commits_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/contents/{+path}",
"compare_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/merges",
"archive_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/downloads",
"issues_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/issues{/number}",
"pulls_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/pulls{/number}",
"milestones_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/milestones{/number}",
"notifications_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/labels{/name}",
"releases_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/releases{/id}",
"deployments_url": "https://api.github.com/repos/xxxxxxxxx/xxxxxxxxxd-clone-1/deployments",
"created_at": 1644799943,
"updated_at": "2022-02-14T01:04:36Z",
"pushed_at": 1645521346,
"git_url": "git://github.com/xxxxxxxxx/xxxxxxxxxd-clone-1.git",
"ssh_url": "[email protected]:xxxxxxxxx/xxxxxxxxxd-clone-1.git",
"clone_url": "https://github.com/xxxxxxxxx/xxxxxxxxxd-clone-1.git",
"svn_url": "https://github.com/xxxxxxxxx/xxxxxxxxxd-clone-1",
"homepage": null,
"size": 103190,
"stargazers_count": 0,
"watchers_count": 0,
"language": "C++",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": {
"key": "isc",
"name": "ISC License",
"spdx_id": "ISC",
"url": "https://api.github.com/licenses/isc",
"node_id": "sdfds"
},
"allow_forking": true,
"is_template": false,
"topics": [
},
"pusher": {
"name": "xxxxxxxxx",
"email": "[email protected]"
},
"sender": {
"login": "xxxxxxxxx",
"id": 97218929,
"node_id": "U_kgDOBctxcQ",
"avatar_url": "https://avatars.githubusercontent.com/u/97218929?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xxxxxxxxx",
"html_url": "https://github.com/xxxxxxxxx",
"followers_url": "https://api.github.com/users/xxxxxxxxx/followers",
"following_url": "https://api.github.com/users/xxxxxxxxx/following{/other_user}",
"gists_url": "https://api.github.com/users/xxxxxxxxx/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xxxxxxxxx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xxxxxxxxx/subscriptions",
"organizations_url": "https://api.github.com/users/xxxxxxxxx/orgs",
"repos_url": "https://api.github.com/users/xxxxxxxxx/repos",
"events_url": "https://api.github.com/users/xxxxxxxxx/events{/privacy}",
"received_events_url": "https://api.github.com/users/xxxxxxxxx/received_events",
"type": "User",
"site_admin": false
},
"created": false,
"deleted": false,
"forced": false,
"base_ref": null,
"compare": "https://github.com/xxxxxxxxx/xxxxxxxxxd-clone-1/compare/38328f8effce...5b395279918b",
"commits": [
{
"id": "5b395279918b103be04e5723ba933d9d2c5e62d6",
"tree_id": "d434a2c6c746b8c7dd2234b496ba8bc75116908c",
"distinct": true,
"message": "test scaling 9",
"timestamp": "2022-02-22T17:15:43+08:00",
"url": "https://github.com/xxxxxxxxx/xxxxxxxxxd-clone-1/commit/5b395279918b103be04e5723ba933d9d2c5e62d6",
"author": {
"name": "Shi Cheng",
"email": "[email protected]",
"username": "shicheng001sg"
},
"committer": {
"name": "Shi Cheng",
"email": "[email protected]",
"username": "shicheng001sg"
},
"added": [
],
"head_commit": {
"id": "5b395279918b103be04e5723ba933d9d2c5e62d6",
"tree_id": "d434a2c6c746b8c7dd2234b496ba8bc75116908c",
"distinct": true,
"message": "test scaling 9",
"timestamp": "2022-02-22T17:15:43+08:00",
"url": "https://github.com/xxxxxxxxx/xxxxxxxxxd-clone-1/commit/5b395279918b103be04e5723ba933d9d2c5e62d6",
"author": {
"name": "xxxxxx",
"email": "[email protected]",
"username": "shicheng001sg"
},
"committer": {
"name": "xxxxxxx",
"email": "[email protected]",
"username": "xxxxxx"
},
"added": [
}
}
it looks like HorizontalRunnerAutoscaler object created from my yaml is wrong..the githubEvent part is empty.. any idea?
Beta Was this translation helpful? Give feedback.
All reactions