diff --git a/.github/workflows/out-of-tree-test-infra.yml b/.github/workflows/out-of-tree-test-infra.yml index 18a474f7e1ce60..d52e17d6687045 100644 --- a/.github/workflows/out-of-tree-test-infra.yml +++ b/.github/workflows/out-of-tree-test-infra.yml @@ -5,23 +5,49 @@ 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: 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 }}", "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 }}" + } + } + } + } } 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 +