Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/_ascend_npu_benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:
--output ascend_npu_benchmark.json

- name: Upload the benchmark report file
id: upload-output
id: upload-report
uses: actions/upload-artifact@v4
with:
name: ascend_npu_benchmark.json
Expand All @@ -179,7 +179,7 @@ jobs:
python .ci/benchmark.py --write-gh-job-summary --path benchmark/ascend_npu_benchmark.json

- name: Update README.md
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
if: ${{ contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
id: update-readme
run: |
python .ci/benchmark.py --update-readme --path benchmark/ascend_npu_benchmark.json
Expand Down Expand Up @@ -207,5 +207,13 @@ jobs:
body: |
The torchbenchmark results running on Ascend NPU have changed, I'm updating the report in README.md.

Please check out the following resources for more information:

- [Workflow run][1]
- [Torchbenchmark report (click to download)][2]

[1]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
[2]: ${{ steps.upload-report.outputs.artifact-url }}

cc: @Yikun @hipudding @FFFrog @Zhenbin-8 @zeshengzong @wjunLu @MengqingCao @shink
reviewers: shink
1 change: 0 additions & 1 deletion .github/workflows/_ascend_npu_build_torch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ jobs:

- name: Upload distribution artifact
id: upload-dist
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ steps.list-dist.outputs.dist-name }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/_ascend_npu_build_torch_npu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ jobs:

- name: Upload distribution artifact
id: upload-dist
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ steps.list-dist.outputs.dist-name }}
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/ascend_npu_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ on:
description: 'The device selected to run on'

# Only cancel the previous runs when triggered by a pull_request event
#
# TODO: As the doc says, there can be at most one running and one pending job
# in a concurrency group at any time. But we want all workflows to be
# queued, not cancelled. This is a shortcomings of GitHub Actions.
#
# Doc: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
# Discussion: https://github.com/orgs/community/discussions/5435
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
Expand Down Expand Up @@ -130,7 +137,9 @@ jobs:
- prepare
- build-torch
- build
if: ${{ !cancelled() && (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success')) }}
if: |
!cancelled() && github.event_name != 'repository_dispatch' &&
(success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
uses: ./.github/workflows/_ascend_npu_ut.yml
with:
runner: ${{ needs.prepare.outputs.runner }}
Expand All @@ -146,7 +155,9 @@ jobs:
- build-torch
- build
- test
if: ${{ !cancelled() && (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success')) }}
if: |
!cancelled() && github.event_name != 'repository_dispatch' &&
(success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
uses: ./.github/workflows/_ascend_npu_benchmark.yml
with:
runner: ${{ needs.prepare.outputs.runner }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dispatch-event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ jobs:
fail-fast: false
max-parallel: 1
matrix:
data: ${{ fromJson(needs.list-pr.outputs.prs) }}
data: ${{ fromJSON(needs.list-pr.outputs.prs) }}
steps:
- name: Dispatch PR events to be out-of-tree test infra
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.COSDT_BOT_TOKEN }}
repository: cosdt/pytorch-integration-tests
event-type: pytorch-pr-event
client-payload: ${{ toJson(matrix.data) }}
client-payload: ${{ toJSON(matrix.data) }}
8 changes: 3 additions & 5 deletions .github/workflows/redispatch-event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ jobs:
uses: actions/checkout@v4

- name: Print PR event payload
continue-on-error: true
run: |
echo "owner: ${{ github.event.client_payload.owner }}"
echo "repo: ${{ github.event.client_payload.repo }}"
echo "event_name: ${{ github.event.client_payload.event_name }}"
echo "pull_request: ${{ toJson(github.event.client_payload.pull_request) }}"
printf "payload: ${{ toJSON(github.event.client_payload) }}"

- name: Redispatch PyTorch event
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.COSDT_BOT_TOKEN }}
repository: ${{ github.repository }}
event-type: pytorch-pr-event-redispatch
client-payload: ${{ toJson(github.event.client_payload) }}
client-payload: ${{ toJSON(github.event.client_payload) }}
Loading