From b548da9f9bae51f58caa7fded9cff03c3f0e9cba Mon Sep 17 00:00:00 2001 From: DanilBaibak Date: Tue, 28 Mar 2023 14:47:37 +0200 Subject: [PATCH 1/4] Use a separate list of allowed workflows per repo --- torchci/lib/bot/retryBot.ts | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/torchci/lib/bot/retryBot.ts b/torchci/lib/bot/retryBot.ts index 1627aa1e49..4115537829 100644 --- a/torchci/lib/bot/retryBot.ts +++ b/torchci/lib/bot/retryBot.ts @@ -7,13 +7,14 @@ function retryBot(app: Probot): void { const workflowName = ctx.payload.workflow_run.name; const attemptNumber = ctx.payload.workflow_run.run_attempt; const defaultBranch = ctx.payload.repository.default_branch; - const allowedWorkflowPrefixes = [ - "lint", - "pull", - "trunk", - "linux-binary", - "windows-binary" - ] + const owner = ctx.payload.repository.owner.login; + const repo = ctx.payload.repository.name; + const runId = ctx.payload.workflow_run.id; + + const allowedWorkflowPrefixes = { + "pytorch": ["lint", "pull", "trunk", "linux-binary", "windows-binary"], + "vision": ["lint", "Build Linux", "Build Macos", "Build M1", "Tests on Linux", "Tests on macOS"] + } if ( ctx.payload.workflow_run.conclusion === "success" || @@ -22,15 +23,12 @@ function retryBot(app: Probot): void { ctx.payload.workflow_run.head_branch !== defaultBranch ) || attemptNumber > 1 || - allowedWorkflowPrefixes.every( - allowedWorkflow => !workflowName.toLowerCase().includes(allowedWorkflow) + allowedWorkflowPrefixes[repo].every( + allowedWorkflow => !workflowName.toLowerCase().includes(allowedWorkflow.toLowerCase()) ) ) { return; } - const owner = ctx.payload.repository.owner.login; - const repo = ctx.payload.repository.name; - const runId = ctx.payload.workflow_run.id; let workflowJobs = []; let total_count = 1; From 8f63c259db4a7872e0148033420dcd6886e5c731 Mon Sep 17 00:00:00 2001 From: DanilBaibak Date: Tue, 28 Mar 2023 15:09:29 +0200 Subject: [PATCH 2/4] Added type --- torchci/lib/bot/retryBot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchci/lib/bot/retryBot.ts b/torchci/lib/bot/retryBot.ts index 4115537829..d248075810 100644 --- a/torchci/lib/bot/retryBot.ts +++ b/torchci/lib/bot/retryBot.ts @@ -11,7 +11,7 @@ function retryBot(app: Probot): void { const repo = ctx.payload.repository.name; const runId = ctx.payload.workflow_run.id; - const allowedWorkflowPrefixes = { + const allowedWorkflowPrefixes: { [key: string]: string[] } = { "pytorch": ["lint", "pull", "trunk", "linux-binary", "windows-binary"], "vision": ["lint", "Build Linux", "Build Macos", "Build M1", "Tests on Linux", "Tests on macOS"] } From 74f048cf0acffee183f12e0b6bf4396e0e181fc3 Mon Sep 17 00:00:00 2001 From: DanilBaibak Date: Tue, 28 Mar 2023 15:18:23 +0200 Subject: [PATCH 3/4] Fixed test --- .../test/fixtures/workflow_run.completed.json | 272 +++++++++--------- torchci/test/retryBot.test.ts | 1 - 2 files changed, 136 insertions(+), 137 deletions(-) diff --git a/torchci/test/fixtures/workflow_run.completed.json b/torchci/test/fixtures/workflow_run.completed.json index 6d5ccbedb6..f9d4e1f40f 100644 --- a/torchci/test/fixtures/workflow_run.completed.json +++ b/torchci/test/fixtures/workflow_run.completed.json @@ -18,8 +18,8 @@ "workflow_id": 27224012, "check_suite_id": 8671138250, "check_suite_node_id": "CS_kwDOHXT3Fc8AAAACBNcRyg", - "url": "https://api.github.com/repos/clee2000/random-testing/actions/runs/3206737417", - "html_url": "https://github.com/clee2000/random-testing/actions/runs/3206737417", + "url": "https://api.github.com/repos/clee2000/pytorch/actions/runs/3206737417", + "html_url": "https://github.com/clee2000/pytorch/actions/runs/3206737417", "pull_requests": [], "created_at": "2022-10-07T18:06:09Z", "updated_at": "2022-10-07T18:06:21Z", @@ -66,14 +66,14 @@ "type": "User", "site_admin": false }, - "jobs_url": "https://api.github.com/repos/clee2000/random-testing/actions/runs/3206737417/jobs", - "logs_url": "https://api.github.com/repos/clee2000/random-testing/actions/runs/3206737417/logs", - "check_suite_url": "https://api.github.com/repos/clee2000/random-testing/check-suites/8671138250", - "artifacts_url": "https://api.github.com/repos/clee2000/random-testing/actions/runs/3206737417/artifacts", - "cancel_url": "https://api.github.com/repos/clee2000/random-testing/actions/runs/3206737417/cancel", - "rerun_url": "https://api.github.com/repos/clee2000/random-testing/actions/runs/3206737417/rerun", + "jobs_url": "https://api.github.com/repos/clee2000/pytorch/actions/runs/3206737417/jobs", + "logs_url": "https://api.github.com/repos/clee2000/pytorch/actions/runs/3206737417/logs", + "check_suite_url": "https://api.github.com/repos/clee2000/pytorch/check-suites/8671138250", + "artifacts_url": "https://api.github.com/repos/clee2000/pytorch/actions/runs/3206737417/artifacts", + "cancel_url": "https://api.github.com/repos/clee2000/pytorch/actions/runs/3206737417/cancel", + "rerun_url": "https://api.github.com/repos/clee2000/pytorch/actions/runs/3206737417/rerun", "previous_attempt_url": null, - "workflow_url": "https://api.github.com/repos/clee2000/random-testing/actions/workflows/27224012", + "workflow_url": "https://api.github.com/repos/clee2000/pytorch/actions/workflows/27224012", "head_commit": { "id": "d74df09c45f5b338e2f67c1c73e8662ccf97561c", "tree_id": "8e91195ed6ff3808cc3bd427482319f92da3da37", @@ -91,8 +91,8 @@ "repository": { "id": 494204693, "node_id": "R_kgDOHXT3FQ", - "name": "random-testing", - "full_name": "clee2000/random-testing", + "name": "pytorch", + "full_name": "clee2000/pytorch", "private": false, "owner": { "login": "clee2000", @@ -114,52 +114,52 @@ "type": "User", "site_admin": false }, - "html_url": "https://github.com/clee2000/random-testing", + "html_url": "https://github.com/clee2000/pytorch", "description": "for random testing of anything, like gha", "fork": false, - "url": "https://api.github.com/repos/clee2000/random-testing", - "forks_url": "https://api.github.com/repos/clee2000/random-testing/forks", - "keys_url": "https://api.github.com/repos/clee2000/random-testing/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/clee2000/random-testing/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/clee2000/random-testing/teams", - "hooks_url": "https://api.github.com/repos/clee2000/random-testing/hooks", - "issue_events_url": "https://api.github.com/repos/clee2000/random-testing/issues/events{/number}", - "events_url": "https://api.github.com/repos/clee2000/random-testing/events", - "assignees_url": "https://api.github.com/repos/clee2000/random-testing/assignees{/user}", - "branches_url": "https://api.github.com/repos/clee2000/random-testing/branches{/branch}", - "tags_url": "https://api.github.com/repos/clee2000/random-testing/tags", - "blobs_url": "https://api.github.com/repos/clee2000/random-testing/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/clee2000/random-testing/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/clee2000/random-testing/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/clee2000/random-testing/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/clee2000/random-testing/statuses/{sha}", - "languages_url": "https://api.github.com/repos/clee2000/random-testing/languages", - "stargazers_url": "https://api.github.com/repos/clee2000/random-testing/stargazers", - "contributors_url": "https://api.github.com/repos/clee2000/random-testing/contributors", - "subscribers_url": "https://api.github.com/repos/clee2000/random-testing/subscribers", - "subscription_url": "https://api.github.com/repos/clee2000/random-testing/subscription", - "commits_url": "https://api.github.com/repos/clee2000/random-testing/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/clee2000/random-testing/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/clee2000/random-testing/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/clee2000/random-testing/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/clee2000/random-testing/contents/{+path}", - "compare_url": "https://api.github.com/repos/clee2000/random-testing/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/clee2000/random-testing/merges", - "archive_url": "https://api.github.com/repos/clee2000/random-testing/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/clee2000/random-testing/downloads", - "issues_url": "https://api.github.com/repos/clee2000/random-testing/issues{/number}", - "pulls_url": "https://api.github.com/repos/clee2000/random-testing/pulls{/number}", - "milestones_url": "https://api.github.com/repos/clee2000/random-testing/milestones{/number}", - "notifications_url": "https://api.github.com/repos/clee2000/random-testing/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/clee2000/random-testing/labels{/name}", - "releases_url": "https://api.github.com/repos/clee2000/random-testing/releases{/id}", - "deployments_url": "https://api.github.com/repos/clee2000/random-testing/deployments" + "url": "https://api.github.com/repos/clee2000/pytorch", + "forks_url": "https://api.github.com/repos/clee2000/pytorch/forks", + "keys_url": "https://api.github.com/repos/clee2000/pytorch/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/clee2000/pytorch/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/clee2000/pytorch/teams", + "hooks_url": "https://api.github.com/repos/clee2000/pytorch/hooks", + "issue_events_url": "https://api.github.com/repos/clee2000/pytorch/issues/events{/number}", + "events_url": "https://api.github.com/repos/clee2000/pytorch/events", + "assignees_url": "https://api.github.com/repos/clee2000/pytorch/assignees{/user}", + "branches_url": "https://api.github.com/repos/clee2000/pytorch/branches{/branch}", + "tags_url": "https://api.github.com/repos/clee2000/pytorch/tags", + "blobs_url": "https://api.github.com/repos/clee2000/pytorch/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/clee2000/pytorch/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/clee2000/pytorch/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/clee2000/pytorch/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/clee2000/pytorch/statuses/{sha}", + "languages_url": "https://api.github.com/repos/clee2000/pytorch/languages", + "stargazers_url": "https://api.github.com/repos/clee2000/pytorch/stargazers", + "contributors_url": "https://api.github.com/repos/clee2000/pytorch/contributors", + "subscribers_url": "https://api.github.com/repos/clee2000/pytorch/subscribers", + "subscription_url": "https://api.github.com/repos/clee2000/pytorch/subscription", + "commits_url": "https://api.github.com/repos/clee2000/pytorch/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/clee2000/pytorch/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/clee2000/pytorch/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/clee2000/pytorch/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/clee2000/pytorch/contents/{+path}", + "compare_url": "https://api.github.com/repos/clee2000/pytorch/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/clee2000/pytorch/merges", + "archive_url": "https://api.github.com/repos/clee2000/pytorch/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/clee2000/pytorch/downloads", + "issues_url": "https://api.github.com/repos/clee2000/pytorch/issues{/number}", + "pulls_url": "https://api.github.com/repos/clee2000/pytorch/pulls{/number}", + "milestones_url": "https://api.github.com/repos/clee2000/pytorch/milestones{/number}", + "notifications_url": "https://api.github.com/repos/clee2000/pytorch/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/clee2000/pytorch/labels{/name}", + "releases_url": "https://api.github.com/repos/clee2000/pytorch/releases{/id}", + "deployments_url": "https://api.github.com/repos/clee2000/pytorch/deployments" }, "head_repository": { "id": 494204693, "node_id": "R_kgDOHXT3FQ", - "name": "random-testing", - "full_name": "clee2000/random-testing", + "name": "pytorch", + "full_name": "clee2000/pytorch", "private": false, "owner": { "login": "clee2000", @@ -181,46 +181,46 @@ "type": "User", "site_admin": false }, - "html_url": "https://github.com/clee2000/random-testing", + "html_url": "https://github.com/clee2000/pytorch", "description": "for random testing of anything, like gha", "fork": false, - "url": "https://api.github.com/repos/clee2000/random-testing", - "forks_url": "https://api.github.com/repos/clee2000/random-testing/forks", - "keys_url": "https://api.github.com/repos/clee2000/random-testing/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/clee2000/random-testing/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/clee2000/random-testing/teams", - "hooks_url": "https://api.github.com/repos/clee2000/random-testing/hooks", - "issue_events_url": "https://api.github.com/repos/clee2000/random-testing/issues/events{/number}", - "events_url": "https://api.github.com/repos/clee2000/random-testing/events", - "assignees_url": "https://api.github.com/repos/clee2000/random-testing/assignees{/user}", - "branches_url": "https://api.github.com/repos/clee2000/random-testing/branches{/branch}", - "tags_url": "https://api.github.com/repos/clee2000/random-testing/tags", - "blobs_url": "https://api.github.com/repos/clee2000/random-testing/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/clee2000/random-testing/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/clee2000/random-testing/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/clee2000/random-testing/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/clee2000/random-testing/statuses/{sha}", - "languages_url": "https://api.github.com/repos/clee2000/random-testing/languages", - "stargazers_url": "https://api.github.com/repos/clee2000/random-testing/stargazers", - "contributors_url": "https://api.github.com/repos/clee2000/random-testing/contributors", - "subscribers_url": "https://api.github.com/repos/clee2000/random-testing/subscribers", - "subscription_url": "https://api.github.com/repos/clee2000/random-testing/subscription", - "commits_url": "https://api.github.com/repos/clee2000/random-testing/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/clee2000/random-testing/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/clee2000/random-testing/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/clee2000/random-testing/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/clee2000/random-testing/contents/{+path}", - "compare_url": "https://api.github.com/repos/clee2000/random-testing/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/clee2000/random-testing/merges", - "archive_url": "https://api.github.com/repos/clee2000/random-testing/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/clee2000/random-testing/downloads", - "issues_url": "https://api.github.com/repos/clee2000/random-testing/issues{/number}", - "pulls_url": "https://api.github.com/repos/clee2000/random-testing/pulls{/number}", - "milestones_url": "https://api.github.com/repos/clee2000/random-testing/milestones{/number}", - "notifications_url": "https://api.github.com/repos/clee2000/random-testing/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/clee2000/random-testing/labels{/name}", - "releases_url": "https://api.github.com/repos/clee2000/random-testing/releases{/id}", - "deployments_url": "https://api.github.com/repos/clee2000/random-testing/deployments" + "url": "https://api.github.com/repos/clee2000/pytorch", + "forks_url": "https://api.github.com/repos/clee2000/pytorch/forks", + "keys_url": "https://api.github.com/repos/clee2000/pytorch/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/clee2000/pytorch/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/clee2000/pytorch/teams", + "hooks_url": "https://api.github.com/repos/clee2000/pytorch/hooks", + "issue_events_url": "https://api.github.com/repos/clee2000/pytorch/issues/events{/number}", + "events_url": "https://api.github.com/repos/clee2000/pytorch/events", + "assignees_url": "https://api.github.com/repos/clee2000/pytorch/assignees{/user}", + "branches_url": "https://api.github.com/repos/clee2000/pytorch/branches{/branch}", + "tags_url": "https://api.github.com/repos/clee2000/pytorch/tags", + "blobs_url": "https://api.github.com/repos/clee2000/pytorch/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/clee2000/pytorch/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/clee2000/pytorch/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/clee2000/pytorch/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/clee2000/pytorch/statuses/{sha}", + "languages_url": "https://api.github.com/repos/clee2000/pytorch/languages", + "stargazers_url": "https://api.github.com/repos/clee2000/pytorch/stargazers", + "contributors_url": "https://api.github.com/repos/clee2000/pytorch/contributors", + "subscribers_url": "https://api.github.com/repos/clee2000/pytorch/subscribers", + "subscription_url": "https://api.github.com/repos/clee2000/pytorch/subscription", + "commits_url": "https://api.github.com/repos/clee2000/pytorch/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/clee2000/pytorch/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/clee2000/pytorch/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/clee2000/pytorch/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/clee2000/pytorch/contents/{+path}", + "compare_url": "https://api.github.com/repos/clee2000/pytorch/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/clee2000/pytorch/merges", + "archive_url": "https://api.github.com/repos/clee2000/pytorch/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/clee2000/pytorch/downloads", + "issues_url": "https://api.github.com/repos/clee2000/pytorch/issues{/number}", + "pulls_url": "https://api.github.com/repos/clee2000/pytorch/pulls{/number}", + "milestones_url": "https://api.github.com/repos/clee2000/pytorch/milestones{/number}", + "notifications_url": "https://api.github.com/repos/clee2000/pytorch/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/clee2000/pytorch/labels{/name}", + "releases_url": "https://api.github.com/repos/clee2000/pytorch/releases{/id}", + "deployments_url": "https://api.github.com/repos/clee2000/pytorch/deployments" } }, "workflow": { @@ -231,15 +231,15 @@ "state": "active", "created_at": "2022-05-31T17:54:50.000Z", "updated_at": "2022-07-22T01:43:25.000Z", - "url": "https://api.github.com/repos/clee2000/random-testing/actions/workflows/27224012", - "html_url": "https://github.com/clee2000/random-testing/blob/master/.github/workflows/tryrebase.yml", - "badge_url": "https://github.com/clee2000/random-testing/workflows/rebase/badge.svg" + "url": "https://api.github.com/repos/clee2000/pytorch/actions/workflows/27224012", + "html_url": "https://github.com/clee2000/pytorch/blob/master/.github/workflows/tryrebase.yml", + "badge_url": "https://github.com/clee2000/pytorch/workflows/rebase/badge.svg" }, "repository": { "id": 494204693, "node_id": "R_kgDOHXT3FQ", - "name": "random-testing", - "full_name": "clee2000/random-testing", + "name": "pytorch", + "full_name": "clee2000/pytorch", "private": false, "owner": { "login": "clee2000", @@ -261,53 +261,53 @@ "type": "User", "site_admin": false }, - "html_url": "https://github.com/clee2000/random-testing", + "html_url": "https://github.com/clee2000/pytorch", "description": "for random testing of anything, like gha", "fork": false, - "url": "https://api.github.com/repos/clee2000/random-testing", - "forks_url": "https://api.github.com/repos/clee2000/random-testing/forks", - "keys_url": "https://api.github.com/repos/clee2000/random-testing/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/clee2000/random-testing/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/clee2000/random-testing/teams", - "hooks_url": "https://api.github.com/repos/clee2000/random-testing/hooks", - "issue_events_url": "https://api.github.com/repos/clee2000/random-testing/issues/events{/number}", - "events_url": "https://api.github.com/repos/clee2000/random-testing/events", - "assignees_url": "https://api.github.com/repos/clee2000/random-testing/assignees{/user}", - "branches_url": "https://api.github.com/repos/clee2000/random-testing/branches{/branch}", - "tags_url": "https://api.github.com/repos/clee2000/random-testing/tags", - "blobs_url": "https://api.github.com/repos/clee2000/random-testing/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/clee2000/random-testing/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/clee2000/random-testing/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/clee2000/random-testing/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/clee2000/random-testing/statuses/{sha}", - "languages_url": "https://api.github.com/repos/clee2000/random-testing/languages", - "stargazers_url": "https://api.github.com/repos/clee2000/random-testing/stargazers", - "contributors_url": "https://api.github.com/repos/clee2000/random-testing/contributors", - "subscribers_url": "https://api.github.com/repos/clee2000/random-testing/subscribers", - "subscription_url": "https://api.github.com/repos/clee2000/random-testing/subscription", - "commits_url": "https://api.github.com/repos/clee2000/random-testing/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/clee2000/random-testing/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/clee2000/random-testing/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/clee2000/random-testing/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/clee2000/random-testing/contents/{+path}", - "compare_url": "https://api.github.com/repos/clee2000/random-testing/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/clee2000/random-testing/merges", - "archive_url": "https://api.github.com/repos/clee2000/random-testing/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/clee2000/random-testing/downloads", - "issues_url": "https://api.github.com/repos/clee2000/random-testing/issues{/number}", - "pulls_url": "https://api.github.com/repos/clee2000/random-testing/pulls{/number}", - "milestones_url": "https://api.github.com/repos/clee2000/random-testing/milestones{/number}", - "notifications_url": "https://api.github.com/repos/clee2000/random-testing/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/clee2000/random-testing/labels{/name}", - "releases_url": "https://api.github.com/repos/clee2000/random-testing/releases{/id}", - "deployments_url": "https://api.github.com/repos/clee2000/random-testing/deployments", + "url": "https://api.github.com/repos/clee2000/pytorch", + "forks_url": "https://api.github.com/repos/clee2000/pytorch/forks", + "keys_url": "https://api.github.com/repos/clee2000/pytorch/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/clee2000/pytorch/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/clee2000/pytorch/teams", + "hooks_url": "https://api.github.com/repos/clee2000/pytorch/hooks", + "issue_events_url": "https://api.github.com/repos/clee2000/pytorch/issues/events{/number}", + "events_url": "https://api.github.com/repos/clee2000/pytorch/events", + "assignees_url": "https://api.github.com/repos/clee2000/pytorch/assignees{/user}", + "branches_url": "https://api.github.com/repos/clee2000/pytorch/branches{/branch}", + "tags_url": "https://api.github.com/repos/clee2000/pytorch/tags", + "blobs_url": "https://api.github.com/repos/clee2000/pytorch/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/clee2000/pytorch/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/clee2000/pytorch/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/clee2000/pytorch/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/clee2000/pytorch/statuses/{sha}", + "languages_url": "https://api.github.com/repos/clee2000/pytorch/languages", + "stargazers_url": "https://api.github.com/repos/clee2000/pytorch/stargazers", + "contributors_url": "https://api.github.com/repos/clee2000/pytorch/contributors", + "subscribers_url": "https://api.github.com/repos/clee2000/pytorch/subscribers", + "subscription_url": "https://api.github.com/repos/clee2000/pytorch/subscription", + "commits_url": "https://api.github.com/repos/clee2000/pytorch/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/clee2000/pytorch/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/clee2000/pytorch/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/clee2000/pytorch/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/clee2000/pytorch/contents/{+path}", + "compare_url": "https://api.github.com/repos/clee2000/pytorch/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/clee2000/pytorch/merges", + "archive_url": "https://api.github.com/repos/clee2000/pytorch/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/clee2000/pytorch/downloads", + "issues_url": "https://api.github.com/repos/clee2000/pytorch/issues{/number}", + "pulls_url": "https://api.github.com/repos/clee2000/pytorch/pulls{/number}", + "milestones_url": "https://api.github.com/repos/clee2000/pytorch/milestones{/number}", + "notifications_url": "https://api.github.com/repos/clee2000/pytorch/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/clee2000/pytorch/labels{/name}", + "releases_url": "https://api.github.com/repos/clee2000/pytorch/releases{/id}", + "deployments_url": "https://api.github.com/repos/clee2000/pytorch/deployments", "created_at": "2022-05-19T19:31:21Z", "updated_at": "2022-05-19T21:28:10Z", "pushed_at": "2022-10-07T18:06:07Z", - "git_url": "git://github.com/clee2000/random-testing.git", - "ssh_url": "git@github.com:clee2000/random-testing.git", - "clone_url": "https://github.com/clee2000/random-testing.git", - "svn_url": "https://github.com/clee2000/random-testing", + "git_url": "git://github.com/clee2000/pytorch.git", + "ssh_url": "git@github.com:clee2000/pytorch.git", + "clone_url": "https://github.com/clee2000/pytorch.git", + "svn_url": "https://github.com/clee2000/pytorch", "homepage": null, "size": 79, "stargazers_count": 0, diff --git a/torchci/test/retryBot.test.ts b/torchci/test/retryBot.test.ts index dfb96e6bcf..6df682dd66 100644 --- a/torchci/test/retryBot.test.ts +++ b/torchci/test/retryBot.test.ts @@ -152,7 +152,6 @@ describe("retry-bot", () => { handleScope(scope); }); - test("get more pages of workflow_jobs", async () => { const event = requireDeepCopy("./fixtures/workflow_run.completed.json"); event.payload.workflow_run.name = "Lint"; From 88c33dffa7e6a22c1f866937d92ac7f49b4dda6a Mon Sep 17 00:00:00 2001 From: DanilBaibak Date: Wed, 29 Mar 2023 08:46:05 +0200 Subject: [PATCH 4/4] Use 'pytorch' as a fallback for repos not covered by the map --- torchci/lib/bot/retryBot.ts | 3 +- .../test/fixtures/workflow_run.completed.json | 272 +++++++++--------- torchci/test/retryBot.test.ts | 1 + 3 files changed, 139 insertions(+), 137 deletions(-) diff --git a/torchci/lib/bot/retryBot.ts b/torchci/lib/bot/retryBot.ts index d248075810..ebdf3e1a73 100644 --- a/torchci/lib/bot/retryBot.ts +++ b/torchci/lib/bot/retryBot.ts @@ -15,6 +15,7 @@ function retryBot(app: Probot): void { "pytorch": ["lint", "pull", "trunk", "linux-binary", "windows-binary"], "vision": ["lint", "Build Linux", "Build Macos", "Build M1", "Tests on Linux", "Tests on macOS"] } + const allowedRepoPrefixes = allowedWorkflowPrefixes[repo] ? allowedWorkflowPrefixes[repo] : allowedWorkflowPrefixes["pytorch"]; if ( ctx.payload.workflow_run.conclusion === "success" || @@ -23,7 +24,7 @@ function retryBot(app: Probot): void { ctx.payload.workflow_run.head_branch !== defaultBranch ) || attemptNumber > 1 || - allowedWorkflowPrefixes[repo].every( + allowedRepoPrefixes.every( allowedWorkflow => !workflowName.toLowerCase().includes(allowedWorkflow.toLowerCase()) ) ) { diff --git a/torchci/test/fixtures/workflow_run.completed.json b/torchci/test/fixtures/workflow_run.completed.json index f9d4e1f40f..6d5ccbedb6 100644 --- a/torchci/test/fixtures/workflow_run.completed.json +++ b/torchci/test/fixtures/workflow_run.completed.json @@ -18,8 +18,8 @@ "workflow_id": 27224012, "check_suite_id": 8671138250, "check_suite_node_id": "CS_kwDOHXT3Fc8AAAACBNcRyg", - "url": "https://api.github.com/repos/clee2000/pytorch/actions/runs/3206737417", - "html_url": "https://github.com/clee2000/pytorch/actions/runs/3206737417", + "url": "https://api.github.com/repos/clee2000/random-testing/actions/runs/3206737417", + "html_url": "https://github.com/clee2000/random-testing/actions/runs/3206737417", "pull_requests": [], "created_at": "2022-10-07T18:06:09Z", "updated_at": "2022-10-07T18:06:21Z", @@ -66,14 +66,14 @@ "type": "User", "site_admin": false }, - "jobs_url": "https://api.github.com/repos/clee2000/pytorch/actions/runs/3206737417/jobs", - "logs_url": "https://api.github.com/repos/clee2000/pytorch/actions/runs/3206737417/logs", - "check_suite_url": "https://api.github.com/repos/clee2000/pytorch/check-suites/8671138250", - "artifacts_url": "https://api.github.com/repos/clee2000/pytorch/actions/runs/3206737417/artifacts", - "cancel_url": "https://api.github.com/repos/clee2000/pytorch/actions/runs/3206737417/cancel", - "rerun_url": "https://api.github.com/repos/clee2000/pytorch/actions/runs/3206737417/rerun", + "jobs_url": "https://api.github.com/repos/clee2000/random-testing/actions/runs/3206737417/jobs", + "logs_url": "https://api.github.com/repos/clee2000/random-testing/actions/runs/3206737417/logs", + "check_suite_url": "https://api.github.com/repos/clee2000/random-testing/check-suites/8671138250", + "artifacts_url": "https://api.github.com/repos/clee2000/random-testing/actions/runs/3206737417/artifacts", + "cancel_url": "https://api.github.com/repos/clee2000/random-testing/actions/runs/3206737417/cancel", + "rerun_url": "https://api.github.com/repos/clee2000/random-testing/actions/runs/3206737417/rerun", "previous_attempt_url": null, - "workflow_url": "https://api.github.com/repos/clee2000/pytorch/actions/workflows/27224012", + "workflow_url": "https://api.github.com/repos/clee2000/random-testing/actions/workflows/27224012", "head_commit": { "id": "d74df09c45f5b338e2f67c1c73e8662ccf97561c", "tree_id": "8e91195ed6ff3808cc3bd427482319f92da3da37", @@ -91,8 +91,8 @@ "repository": { "id": 494204693, "node_id": "R_kgDOHXT3FQ", - "name": "pytorch", - "full_name": "clee2000/pytorch", + "name": "random-testing", + "full_name": "clee2000/random-testing", "private": false, "owner": { "login": "clee2000", @@ -114,52 +114,52 @@ "type": "User", "site_admin": false }, - "html_url": "https://github.com/clee2000/pytorch", + "html_url": "https://github.com/clee2000/random-testing", "description": "for random testing of anything, like gha", "fork": false, - "url": "https://api.github.com/repos/clee2000/pytorch", - "forks_url": "https://api.github.com/repos/clee2000/pytorch/forks", - "keys_url": "https://api.github.com/repos/clee2000/pytorch/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/clee2000/pytorch/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/clee2000/pytorch/teams", - "hooks_url": "https://api.github.com/repos/clee2000/pytorch/hooks", - "issue_events_url": "https://api.github.com/repos/clee2000/pytorch/issues/events{/number}", - "events_url": "https://api.github.com/repos/clee2000/pytorch/events", - "assignees_url": "https://api.github.com/repos/clee2000/pytorch/assignees{/user}", - "branches_url": "https://api.github.com/repos/clee2000/pytorch/branches{/branch}", - "tags_url": "https://api.github.com/repos/clee2000/pytorch/tags", - "blobs_url": "https://api.github.com/repos/clee2000/pytorch/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/clee2000/pytorch/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/clee2000/pytorch/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/clee2000/pytorch/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/clee2000/pytorch/statuses/{sha}", - "languages_url": "https://api.github.com/repos/clee2000/pytorch/languages", - "stargazers_url": "https://api.github.com/repos/clee2000/pytorch/stargazers", - "contributors_url": "https://api.github.com/repos/clee2000/pytorch/contributors", - "subscribers_url": "https://api.github.com/repos/clee2000/pytorch/subscribers", - "subscription_url": "https://api.github.com/repos/clee2000/pytorch/subscription", - "commits_url": "https://api.github.com/repos/clee2000/pytorch/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/clee2000/pytorch/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/clee2000/pytorch/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/clee2000/pytorch/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/clee2000/pytorch/contents/{+path}", - "compare_url": "https://api.github.com/repos/clee2000/pytorch/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/clee2000/pytorch/merges", - "archive_url": "https://api.github.com/repos/clee2000/pytorch/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/clee2000/pytorch/downloads", - "issues_url": "https://api.github.com/repos/clee2000/pytorch/issues{/number}", - "pulls_url": "https://api.github.com/repos/clee2000/pytorch/pulls{/number}", - "milestones_url": "https://api.github.com/repos/clee2000/pytorch/milestones{/number}", - "notifications_url": "https://api.github.com/repos/clee2000/pytorch/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/clee2000/pytorch/labels{/name}", - "releases_url": "https://api.github.com/repos/clee2000/pytorch/releases{/id}", - "deployments_url": "https://api.github.com/repos/clee2000/pytorch/deployments" + "url": "https://api.github.com/repos/clee2000/random-testing", + "forks_url": "https://api.github.com/repos/clee2000/random-testing/forks", + "keys_url": "https://api.github.com/repos/clee2000/random-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/clee2000/random-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/clee2000/random-testing/teams", + "hooks_url": "https://api.github.com/repos/clee2000/random-testing/hooks", + "issue_events_url": "https://api.github.com/repos/clee2000/random-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/clee2000/random-testing/events", + "assignees_url": "https://api.github.com/repos/clee2000/random-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/clee2000/random-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/clee2000/random-testing/tags", + "blobs_url": "https://api.github.com/repos/clee2000/random-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/clee2000/random-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/clee2000/random-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/clee2000/random-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/clee2000/random-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/clee2000/random-testing/languages", + "stargazers_url": "https://api.github.com/repos/clee2000/random-testing/stargazers", + "contributors_url": "https://api.github.com/repos/clee2000/random-testing/contributors", + "subscribers_url": "https://api.github.com/repos/clee2000/random-testing/subscribers", + "subscription_url": "https://api.github.com/repos/clee2000/random-testing/subscription", + "commits_url": "https://api.github.com/repos/clee2000/random-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/clee2000/random-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/clee2000/random-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/clee2000/random-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/clee2000/random-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/clee2000/random-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/clee2000/random-testing/merges", + "archive_url": "https://api.github.com/repos/clee2000/random-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/clee2000/random-testing/downloads", + "issues_url": "https://api.github.com/repos/clee2000/random-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/clee2000/random-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/clee2000/random-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/clee2000/random-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/clee2000/random-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/clee2000/random-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/clee2000/random-testing/deployments" }, "head_repository": { "id": 494204693, "node_id": "R_kgDOHXT3FQ", - "name": "pytorch", - "full_name": "clee2000/pytorch", + "name": "random-testing", + "full_name": "clee2000/random-testing", "private": false, "owner": { "login": "clee2000", @@ -181,46 +181,46 @@ "type": "User", "site_admin": false }, - "html_url": "https://github.com/clee2000/pytorch", + "html_url": "https://github.com/clee2000/random-testing", "description": "for random testing of anything, like gha", "fork": false, - "url": "https://api.github.com/repos/clee2000/pytorch", - "forks_url": "https://api.github.com/repos/clee2000/pytorch/forks", - "keys_url": "https://api.github.com/repos/clee2000/pytorch/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/clee2000/pytorch/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/clee2000/pytorch/teams", - "hooks_url": "https://api.github.com/repos/clee2000/pytorch/hooks", - "issue_events_url": "https://api.github.com/repos/clee2000/pytorch/issues/events{/number}", - "events_url": "https://api.github.com/repos/clee2000/pytorch/events", - "assignees_url": "https://api.github.com/repos/clee2000/pytorch/assignees{/user}", - "branches_url": "https://api.github.com/repos/clee2000/pytorch/branches{/branch}", - "tags_url": "https://api.github.com/repos/clee2000/pytorch/tags", - "blobs_url": "https://api.github.com/repos/clee2000/pytorch/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/clee2000/pytorch/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/clee2000/pytorch/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/clee2000/pytorch/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/clee2000/pytorch/statuses/{sha}", - "languages_url": "https://api.github.com/repos/clee2000/pytorch/languages", - "stargazers_url": "https://api.github.com/repos/clee2000/pytorch/stargazers", - "contributors_url": "https://api.github.com/repos/clee2000/pytorch/contributors", - "subscribers_url": "https://api.github.com/repos/clee2000/pytorch/subscribers", - "subscription_url": "https://api.github.com/repos/clee2000/pytorch/subscription", - "commits_url": "https://api.github.com/repos/clee2000/pytorch/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/clee2000/pytorch/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/clee2000/pytorch/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/clee2000/pytorch/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/clee2000/pytorch/contents/{+path}", - "compare_url": "https://api.github.com/repos/clee2000/pytorch/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/clee2000/pytorch/merges", - "archive_url": "https://api.github.com/repos/clee2000/pytorch/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/clee2000/pytorch/downloads", - "issues_url": "https://api.github.com/repos/clee2000/pytorch/issues{/number}", - "pulls_url": "https://api.github.com/repos/clee2000/pytorch/pulls{/number}", - "milestones_url": "https://api.github.com/repos/clee2000/pytorch/milestones{/number}", - "notifications_url": "https://api.github.com/repos/clee2000/pytorch/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/clee2000/pytorch/labels{/name}", - "releases_url": "https://api.github.com/repos/clee2000/pytorch/releases{/id}", - "deployments_url": "https://api.github.com/repos/clee2000/pytorch/deployments" + "url": "https://api.github.com/repos/clee2000/random-testing", + "forks_url": "https://api.github.com/repos/clee2000/random-testing/forks", + "keys_url": "https://api.github.com/repos/clee2000/random-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/clee2000/random-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/clee2000/random-testing/teams", + "hooks_url": "https://api.github.com/repos/clee2000/random-testing/hooks", + "issue_events_url": "https://api.github.com/repos/clee2000/random-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/clee2000/random-testing/events", + "assignees_url": "https://api.github.com/repos/clee2000/random-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/clee2000/random-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/clee2000/random-testing/tags", + "blobs_url": "https://api.github.com/repos/clee2000/random-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/clee2000/random-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/clee2000/random-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/clee2000/random-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/clee2000/random-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/clee2000/random-testing/languages", + "stargazers_url": "https://api.github.com/repos/clee2000/random-testing/stargazers", + "contributors_url": "https://api.github.com/repos/clee2000/random-testing/contributors", + "subscribers_url": "https://api.github.com/repos/clee2000/random-testing/subscribers", + "subscription_url": "https://api.github.com/repos/clee2000/random-testing/subscription", + "commits_url": "https://api.github.com/repos/clee2000/random-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/clee2000/random-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/clee2000/random-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/clee2000/random-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/clee2000/random-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/clee2000/random-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/clee2000/random-testing/merges", + "archive_url": "https://api.github.com/repos/clee2000/random-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/clee2000/random-testing/downloads", + "issues_url": "https://api.github.com/repos/clee2000/random-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/clee2000/random-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/clee2000/random-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/clee2000/random-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/clee2000/random-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/clee2000/random-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/clee2000/random-testing/deployments" } }, "workflow": { @@ -231,15 +231,15 @@ "state": "active", "created_at": "2022-05-31T17:54:50.000Z", "updated_at": "2022-07-22T01:43:25.000Z", - "url": "https://api.github.com/repos/clee2000/pytorch/actions/workflows/27224012", - "html_url": "https://github.com/clee2000/pytorch/blob/master/.github/workflows/tryrebase.yml", - "badge_url": "https://github.com/clee2000/pytorch/workflows/rebase/badge.svg" + "url": "https://api.github.com/repos/clee2000/random-testing/actions/workflows/27224012", + "html_url": "https://github.com/clee2000/random-testing/blob/master/.github/workflows/tryrebase.yml", + "badge_url": "https://github.com/clee2000/random-testing/workflows/rebase/badge.svg" }, "repository": { "id": 494204693, "node_id": "R_kgDOHXT3FQ", - "name": "pytorch", - "full_name": "clee2000/pytorch", + "name": "random-testing", + "full_name": "clee2000/random-testing", "private": false, "owner": { "login": "clee2000", @@ -261,53 +261,53 @@ "type": "User", "site_admin": false }, - "html_url": "https://github.com/clee2000/pytorch", + "html_url": "https://github.com/clee2000/random-testing", "description": "for random testing of anything, like gha", "fork": false, - "url": "https://api.github.com/repos/clee2000/pytorch", - "forks_url": "https://api.github.com/repos/clee2000/pytorch/forks", - "keys_url": "https://api.github.com/repos/clee2000/pytorch/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/clee2000/pytorch/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/clee2000/pytorch/teams", - "hooks_url": "https://api.github.com/repos/clee2000/pytorch/hooks", - "issue_events_url": "https://api.github.com/repos/clee2000/pytorch/issues/events{/number}", - "events_url": "https://api.github.com/repos/clee2000/pytorch/events", - "assignees_url": "https://api.github.com/repos/clee2000/pytorch/assignees{/user}", - "branches_url": "https://api.github.com/repos/clee2000/pytorch/branches{/branch}", - "tags_url": "https://api.github.com/repos/clee2000/pytorch/tags", - "blobs_url": "https://api.github.com/repos/clee2000/pytorch/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/clee2000/pytorch/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/clee2000/pytorch/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/clee2000/pytorch/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/clee2000/pytorch/statuses/{sha}", - "languages_url": "https://api.github.com/repos/clee2000/pytorch/languages", - "stargazers_url": "https://api.github.com/repos/clee2000/pytorch/stargazers", - "contributors_url": "https://api.github.com/repos/clee2000/pytorch/contributors", - "subscribers_url": "https://api.github.com/repos/clee2000/pytorch/subscribers", - "subscription_url": "https://api.github.com/repos/clee2000/pytorch/subscription", - "commits_url": "https://api.github.com/repos/clee2000/pytorch/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/clee2000/pytorch/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/clee2000/pytorch/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/clee2000/pytorch/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/clee2000/pytorch/contents/{+path}", - "compare_url": "https://api.github.com/repos/clee2000/pytorch/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/clee2000/pytorch/merges", - "archive_url": "https://api.github.com/repos/clee2000/pytorch/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/clee2000/pytorch/downloads", - "issues_url": "https://api.github.com/repos/clee2000/pytorch/issues{/number}", - "pulls_url": "https://api.github.com/repos/clee2000/pytorch/pulls{/number}", - "milestones_url": "https://api.github.com/repos/clee2000/pytorch/milestones{/number}", - "notifications_url": "https://api.github.com/repos/clee2000/pytorch/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/clee2000/pytorch/labels{/name}", - "releases_url": "https://api.github.com/repos/clee2000/pytorch/releases{/id}", - "deployments_url": "https://api.github.com/repos/clee2000/pytorch/deployments", + "url": "https://api.github.com/repos/clee2000/random-testing", + "forks_url": "https://api.github.com/repos/clee2000/random-testing/forks", + "keys_url": "https://api.github.com/repos/clee2000/random-testing/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/clee2000/random-testing/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/clee2000/random-testing/teams", + "hooks_url": "https://api.github.com/repos/clee2000/random-testing/hooks", + "issue_events_url": "https://api.github.com/repos/clee2000/random-testing/issues/events{/number}", + "events_url": "https://api.github.com/repos/clee2000/random-testing/events", + "assignees_url": "https://api.github.com/repos/clee2000/random-testing/assignees{/user}", + "branches_url": "https://api.github.com/repos/clee2000/random-testing/branches{/branch}", + "tags_url": "https://api.github.com/repos/clee2000/random-testing/tags", + "blobs_url": "https://api.github.com/repos/clee2000/random-testing/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/clee2000/random-testing/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/clee2000/random-testing/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/clee2000/random-testing/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/clee2000/random-testing/statuses/{sha}", + "languages_url": "https://api.github.com/repos/clee2000/random-testing/languages", + "stargazers_url": "https://api.github.com/repos/clee2000/random-testing/stargazers", + "contributors_url": "https://api.github.com/repos/clee2000/random-testing/contributors", + "subscribers_url": "https://api.github.com/repos/clee2000/random-testing/subscribers", + "subscription_url": "https://api.github.com/repos/clee2000/random-testing/subscription", + "commits_url": "https://api.github.com/repos/clee2000/random-testing/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/clee2000/random-testing/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/clee2000/random-testing/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/clee2000/random-testing/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/clee2000/random-testing/contents/{+path}", + "compare_url": "https://api.github.com/repos/clee2000/random-testing/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/clee2000/random-testing/merges", + "archive_url": "https://api.github.com/repos/clee2000/random-testing/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/clee2000/random-testing/downloads", + "issues_url": "https://api.github.com/repos/clee2000/random-testing/issues{/number}", + "pulls_url": "https://api.github.com/repos/clee2000/random-testing/pulls{/number}", + "milestones_url": "https://api.github.com/repos/clee2000/random-testing/milestones{/number}", + "notifications_url": "https://api.github.com/repos/clee2000/random-testing/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/clee2000/random-testing/labels{/name}", + "releases_url": "https://api.github.com/repos/clee2000/random-testing/releases{/id}", + "deployments_url": "https://api.github.com/repos/clee2000/random-testing/deployments", "created_at": "2022-05-19T19:31:21Z", "updated_at": "2022-05-19T21:28:10Z", "pushed_at": "2022-10-07T18:06:07Z", - "git_url": "git://github.com/clee2000/pytorch.git", - "ssh_url": "git@github.com:clee2000/pytorch.git", - "clone_url": "https://github.com/clee2000/pytorch.git", - "svn_url": "https://github.com/clee2000/pytorch", + "git_url": "git://github.com/clee2000/random-testing.git", + "ssh_url": "git@github.com:clee2000/random-testing.git", + "clone_url": "https://github.com/clee2000/random-testing.git", + "svn_url": "https://github.com/clee2000/random-testing", "homepage": null, "size": 79, "stargazers_count": 0, diff --git a/torchci/test/retryBot.test.ts b/torchci/test/retryBot.test.ts index 6df682dd66..dfb96e6bcf 100644 --- a/torchci/test/retryBot.test.ts +++ b/torchci/test/retryBot.test.ts @@ -152,6 +152,7 @@ describe("retry-bot", () => { handleScope(scope); }); + test("get more pages of workflow_jobs", async () => { const event = requireDeepCopy("./fixtures/workflow_run.completed.json"); event.payload.workflow_run.name = "Lint";