From 578d23a79fdd7483b0a1159a93dfcf62ba90c2ea Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Sat, 30 Nov 2024 16:40:50 +0800 Subject: [PATCH 1/6] dummy commit --- torch/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/torch/__init__.py b/torch/__init__.py index 83b35515e2d2d6..cf4ddc405d84d3 100644 --- a/torch/__init__.py +++ b/torch/__init__.py @@ -2758,3 +2758,8 @@ def _as_tensor_fullprec(t): return torch.as_tensor(t, dtype=torch.int64) else: return torch.as_tensor(t) + + +def dummpy_func(): + pass + From de45df55711363a559944ee87199083c286e3d51 Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Wed, 4 Dec 2024 17:04:43 +0800 Subject: [PATCH 2/6] update --- .github/workflows/out-of-tree-test-infra.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/out-of-tree-test-infra.yml b/.github/workflows/out-of-tree-test-infra.yml index 18a474f7e1ce60..b7b56bc36baf1c 100644 --- a/.github/workflows/out-of-tree-test-infra.yml +++ b/.github/workflows/out-of-tree-test-infra.yml @@ -5,13 +5,17 @@ on: jobs: dispatch-event: - if: github.repository_owner == 'pytorch' + if: github.repository_owner == 'cosdt' name: Dispatch events to the out-of-tree test infra repo runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 + - name: Print event info + run: | + echo "${{ toJson(github.event.pull_request) }}" + - name: Create a repository dispatch event uses: peter-evans/repository-dispatch@v3 with: From bbcf9b5cd77c35916208f0a5ee9267340dbaf1ab Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Wed, 4 Dec 2024 17:14:12 +0800 Subject: [PATCH 3/6] update --- .github/workflows/out-of-tree-test-infra.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/out-of-tree-test-infra.yml b/.github/workflows/out-of-tree-test-infra.yml index b7b56bc36baf1c..53812d99054c5b 100644 --- a/.github/workflows/out-of-tree-test-infra.yml +++ b/.github/workflows/out-of-tree-test-infra.yml @@ -14,7 +14,7 @@ jobs: - name: Print event info run: | - echo "${{ toJson(github.event.pull_request) }}" + echo '${{ toJson(github.event.pull_request) }}' - name: Create a repository dispatch event uses: peter-evans/repository-dispatch@v3 @@ -24,8 +24,8 @@ jobs: event-type: pytorch-event client-payload: |- { - "owner": "${{ github.repository_owner }}", - "repo": "${{ github.repository }}", - "event_name": "${{ github.event_name }}", - "pull_request": "${{ toJson(github.event.pull_request) }}" + "owner": '${{ github.repository_owner }}', + "repo": '${{ github.repository }}', + "event_name": '${{ github.event_name }}', + "pull_request": '${{ toJson(github.event.pull_request) }}' } From 001eff4e7fccb6be14efeeafc2d53af864d4ac2b Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Wed, 4 Dec 2024 17:15:31 +0800 Subject: [PATCH 4/6] update --- .github/workflows/out-of-tree-test-infra.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/out-of-tree-test-infra.yml b/.github/workflows/out-of-tree-test-infra.yml index 53812d99054c5b..61b0b3aaee6856 100644 --- a/.github/workflows/out-of-tree-test-infra.yml +++ b/.github/workflows/out-of-tree-test-infra.yml @@ -14,7 +14,7 @@ jobs: - name: Print event info run: | - echo '${{ toJson(github.event.pull_request) }}' + echo "${{ toJson(github.event.pull_request) }}" - name: Create a repository dispatch event uses: peter-evans/repository-dispatch@v3 @@ -24,8 +24,8 @@ jobs: event-type: pytorch-event client-payload: |- { - "owner": '${{ github.repository_owner }}', - "repo": '${{ github.repository }}', - "event_name": '${{ github.event_name }}', - "pull_request": '${{ toJson(github.event.pull_request) }}' + "owner": "${{ github.repository_owner }}", + "repo": "${{ github.repository }}", + "event_name": "${{ github.event_name }}", + "pull_request": "${{ toJson(github.event.pull_request) }}", } From df7dc0075b1b6c4d7d58bffbcfe23b17dd5e19bd Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Wed, 4 Dec 2024 17:34:13 +0800 Subject: [PATCH 5/6] update --- .github/workflows/out-of-tree-test-infra.yml | 24 +++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/out-of-tree-test-infra.yml b/.github/workflows/out-of-tree-test-infra.yml index 61b0b3aaee6856..e43bd04808384a 100644 --- a/.github/workflows/out-of-tree-test-infra.yml +++ b/.github/workflows/out-of-tree-test-infra.yml @@ -27,5 +27,27 @@ jobs: "owner": "${{ github.repository_owner }}", "repo": "${{ github.repository }}", "event_name": "${{ github.event_name }}", - "pull_request": "${{ toJson(github.event.pull_request) }}", + "pull_request": { + "title": "${{ github.event.pull_request.title }}", + "base": { + "ref": "${{ github.event.pull_request.base.ref }}", + "repo": { + "name": "${{ github.event.pull_request.base.repo.name }}", + "full_name": "${{ github.event.pull_request.base.repo.full_name }}" + "owner": { + "login": "${{ github.event.pull_request.base.repo.owner.login }}" + } + } + }, + "head": { + "ref": "${{ github.event.pull_request.head.ref }}", + "repo": { + "name": "${{ github.event.pull_request.head.repo.name }}", + "full_name": "${{ github.event.pull_request.head.repo.full_name }}" + "owner": { + "login": "${{ github.event.pull_request.head.repo.owner.login }}" + } + } + } + } } From 99ed48fb6dd62df43e65de6ea64e10fbfdecf6db Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Thu, 5 Dec 2024 17:24:20 +0800 Subject: [PATCH 6/6] update --- .github/workflows/out-of-tree-test-infra.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/out-of-tree-test-infra.yml b/.github/workflows/out-of-tree-test-infra.yml index e43bd04808384a..d52e17d6687045 100644 --- a/.github/workflows/out-of-tree-test-infra.yml +++ b/.github/workflows/out-of-tree-test-infra.yml @@ -21,7 +21,7 @@ jobs: with: token: ${{ secrets.COSDT_BOT_TOKEN }} repository: cosdt/pytorch-integration-tests - event-type: pytorch-event + event-type: pytorch-pr-event client-payload: |- { "owner": "${{ github.repository_owner }}", @@ -33,7 +33,7 @@ jobs: "ref": "${{ github.event.pull_request.base.ref }}", "repo": { "name": "${{ github.event.pull_request.base.repo.name }}", - "full_name": "${{ github.event.pull_request.base.repo.full_name }}" + "full_name": "${{ github.event.pull_request.base.repo.full_name }}", "owner": { "login": "${{ github.event.pull_request.base.repo.owner.login }}" } @@ -43,7 +43,7 @@ jobs: "ref": "${{ github.event.pull_request.head.ref }}", "repo": { "name": "${{ github.event.pull_request.head.repo.name }}", - "full_name": "${{ github.event.pull_request.head.repo.full_name }}" + "full_name": "${{ github.event.pull_request.head.repo.full_name }}", "owner": { "login": "${{ github.event.pull_request.head.repo.owner.login }}" }