-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[ci] Add GitHub Actions bot to merge PRs on demand #10833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
|
|
||
| name: Merge | ||
| on: | ||
| status: | ||
| pull_request_review: | ||
| types: | ||
| - submitted | ||
| issue_comment: | ||
|
|
||
| concurrency: | ||
| group: merge-${{ github.event.pull_request.number }}-${{ github.event.issue.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| maybe-merge: | ||
| if: github.repository == 'apache/tvm' | ||
| runs-on: ubuntu-20.04 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Merge if requested and possible | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| PR_NUMBER: ${{ github.event.issue.number }} | ||
| RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
| run: | | ||
| set -eux | ||
| python tests/scripts/github_mergebot.py --pr "$PR_NUMBER" --run-url "$RUN_URL" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| { | ||
driazati marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "title": "[Hexagon] 2-d allocation cleanup", | ||
| "body": "- Added device validity check in allocation. HexagonDeviceAPI should only be called for CPU/Hexagon types.\r\n\r\n- Check for \"global.vtcm\" scope instead of \"vtcm\". The ccope of N-d allocations produced by `LowerVtcmAlloc` should be `\"global.vtcm\"`. The previous check allowed unsupported scope such as `\"local.vtcm\"`.\r\n\r\n- Remove `vtcmallocs` entry after calling free. Previously, the vtcm allocation map kept dangling pointers to `HexagonBuffer` objects after they had been freed.\r\n\r\n- Rename N-d alloc and free packed functions. Since most of the similar device functions use snake case, renaming `*.AllocND` to `*.alloc_nd` and `*.FreeND` to `*.free_nd`.\r\n\r\nCo-authored-by: Adam Straw <astraw@octoml.ai>", | ||
| "state": "OPEN", | ||
| "author": { | ||
| "login": "Lunderberg" | ||
| }, | ||
| "comments": { | ||
| "pageInfo": { | ||
| "hasPreviousPage": false | ||
| }, | ||
| "nodes": [] | ||
| }, | ||
| "authorCommits": { | ||
| "nodes": [ | ||
| { | ||
| "commit": { | ||
| "authors": { | ||
| "nodes": [ | ||
| { | ||
| "name": "Eric Lunderberg", | ||
| "email": "elunderberg@octoml.ai" | ||
| }, | ||
| { | ||
| "name": "Adam Straw", | ||
| "email": "astraw@octoml.ai" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| "commits": { | ||
| "nodes": [ | ||
| { | ||
| "commit": { | ||
| "oid": "6f04bcf57d07f915a98fd91178f04d9e92a09fcd", | ||
| "statusCheckRollup": { | ||
| "contexts": { | ||
| "pageInfo": { | ||
| "hasNextPage": false | ||
| }, | ||
| "nodes": [ | ||
| { | ||
| "name": "MacOS", | ||
| "checkSuite": { | ||
| "workflowRun": { | ||
| "workflow": { | ||
| "name": "CI" | ||
| } | ||
| } | ||
| }, | ||
| "status": "COMPLETED", | ||
| "conclusion": "SUCCESS", | ||
| "url": "https://github.com/apache/tvm/runs/5694945392" | ||
| }, | ||
| { | ||
| "name": "cc-reviewers", | ||
| "checkSuite": { | ||
| "workflowRun": { | ||
| "workflow": { | ||
| "name": "PR" | ||
| } | ||
| } | ||
| }, | ||
| "status": "COMPLETED", | ||
| "conclusion": "SUCCESS", | ||
| "url": "https://github.com/apache/tvm/runs/5694945029" | ||
| }, | ||
| { | ||
| "name": "tag-teams", | ||
| "checkSuite": { | ||
| "workflowRun": { | ||
| "workflow": { | ||
| "name": "Teams" | ||
| } | ||
| } | ||
| }, | ||
| "status": "COMPLETED", | ||
| "conclusion": "SUCCESS", | ||
| "url": "https://github.com/apache/tvm/runs/5694945030" | ||
| }, | ||
| { | ||
| "name": "Windows", | ||
| "checkSuite": { | ||
| "workflowRun": { | ||
| "workflow": { | ||
| "name": "CI" | ||
| } | ||
| } | ||
| }, | ||
| "status": "COMPLETED", | ||
| "conclusion": "SUCCESS", | ||
| "url": "https://github.com/apache/tvm/runs/5694945524" | ||
| }, | ||
| { | ||
| "state": "FAILED", | ||
| "context": "tvm-ci/pr-head", | ||
| "targetUrl": "https://ci.tlcpack.ai/job/tvm/job/PR-10786/1/display/redirect" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| "reviewDecision": "APPROVED", | ||
| "reviews": { | ||
| "pageInfo": { | ||
| "hasPreviousPage": false | ||
| }, | ||
| "nodes": [ | ||
| { | ||
| "body": "@tvm-bot merge", | ||
| "updatedAt": "2022-03-25T22:13:50Z", | ||
| "authorCanPushToRepository": true, | ||
| "commit": { | ||
| "oid": "6f04bcf57d07f915a98fd91178f04d9e92a09fcd" | ||
| }, | ||
| "author": { | ||
| "login": "kparzysz-quic" | ||
| }, | ||
| "state": "APPROVED" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
130 changes: 130 additions & 0 deletions
130
tests/python/ci/sample_prs/pr10786-changes-requested.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,130 @@ | ||
| { | ||
| "title": "[Hexagon] 2-d allocation cleanup", | ||
| "body": "- Added device validity check in allocation. HexagonDeviceAPI should only be called for CPU/Hexagon types.\r\n\r\n- Check for \"global.vtcm\" scope instead of \"vtcm\". The ccope of N-d allocations produced by `LowerVtcmAlloc` should be `\"global.vtcm\"`. The previous check allowed unsupported scope such as `\"local.vtcm\"`.\r\n\r\n- Remove `vtcmallocs` entry after calling free. Previously, the vtcm allocation map kept dangling pointers to `HexagonBuffer` objects after they had been freed.\r\n\r\n- Rename N-d alloc and free packed functions. Since most of the similar device functions use snake case, renaming `*.AllocND` to `*.alloc_nd` and `*.FreeND` to `*.free_nd`.\r\n\r\nCo-authored-by: Adam Straw <astraw@octoml.ai>", | ||
| "state": "OPEN", | ||
| "author": { | ||
| "login": "Lunderberg" | ||
| }, | ||
| "comments": { | ||
| "pageInfo": { | ||
| "hasPreviousPage": false | ||
| }, | ||
| "nodes": [] | ||
| }, | ||
| "authorCommits": { | ||
| "nodes": [ | ||
| { | ||
| "commit": { | ||
| "authors": { | ||
| "nodes": [ | ||
| { | ||
| "name": "Eric Lunderberg", | ||
| "email": "elunderberg@octoml.ai" | ||
| }, | ||
| { | ||
| "name": "Adam Straw", | ||
| "email": "astraw@octoml.ai" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| "commits": { | ||
| "nodes": [ | ||
| { | ||
| "commit": { | ||
| "oid": "6f04bcf57d07f915a98fd91178f04d9e92a09fcd", | ||
| "statusCheckRollup": { | ||
| "contexts": { | ||
| "pageInfo": { | ||
| "hasNextPage": false | ||
| }, | ||
| "nodes": [ | ||
| { | ||
| "name": "MacOS", | ||
| "checkSuite": { | ||
| "workflowRun": { | ||
| "workflow": { | ||
| "name": "CI" | ||
| } | ||
| } | ||
| }, | ||
| "status": "COMPLETED", | ||
| "conclusion": "SUCCESS", | ||
| "url": "https://github.com/apache/tvm/runs/5694945392" | ||
| }, | ||
| { | ||
| "name": "cc-reviewers", | ||
| "checkSuite": { | ||
| "workflowRun": { | ||
| "workflow": { | ||
| "name": "PR" | ||
| } | ||
| } | ||
| }, | ||
| "status": "COMPLETED", | ||
| "conclusion": "SUCCESS", | ||
| "url": "https://github.com/apache/tvm/runs/5694945029" | ||
| }, | ||
| { | ||
| "name": "tag-teams", | ||
| "checkSuite": { | ||
| "workflowRun": { | ||
| "workflow": { | ||
| "name": "Teams" | ||
| } | ||
| } | ||
| }, | ||
| "status": "COMPLETED", | ||
| "conclusion": "SUCCESS", | ||
| "url": "https://github.com/apache/tvm/runs/5694945030" | ||
| }, | ||
| { | ||
| "name": "Windows", | ||
| "checkSuite": { | ||
| "workflowRun": { | ||
| "workflow": { | ||
| "name": "CI" | ||
| } | ||
| } | ||
| }, | ||
| "status": "COMPLETED", | ||
| "conclusion": "SUCCESS", | ||
| "url": "https://github.com/apache/tvm/runs/5694945524" | ||
| }, | ||
| { | ||
| "state": "SUCCESS", | ||
| "context": "tvm-ci/pr-head", | ||
| "targetUrl": "https://ci.tlcpack.ai/job/tvm/job/PR-10786/1/display/redirect" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| "reviewDecision": "CHANGES_REQUESTED", | ||
| "reviews": { | ||
| "pageInfo": { | ||
| "hasPreviousPage": false | ||
| }, | ||
| "nodes": [ | ||
| { | ||
| "body": "@tvm-bot merge", | ||
| "updatedAt": "2022-03-25T22:13:50Z", | ||
| "url": "https://github.com/apache/tvm/pull/10786#pullrequestreview-922186273", | ||
| "authorCanPushToRepository": true, | ||
| "commit": { | ||
| "oid": "6f04bcf57d07f915a98fd91178f04d9e92a09fcd" | ||
| }, | ||
| "author": { | ||
| "login": "kparzysz-quic" | ||
| }, | ||
| "state": "CHANGES_REQUESTED" | ||
| } | ||
| ] | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.