Skip to content

Commit

Permalink
notify on wheel failure for aarch, m1, windows (#1725)
Browse files Browse the repository at this point in the history
* notify on build_wheels_windows.yml failure

* notify on build_wheels_aarch64_linux.yml failure

* Update build-wheels_m1.yml

* testing change build_wheels_aarch64_linux.yml

* Update build_wheels_aarch64_linux.yml

* Update build-wheels_m1.yml

* Update build_wheels_aarch64_linux.yml
  • Loading branch information
HDCharles authored Feb 18, 2025
1 parent aa9b9c9 commit f2e8f56
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-wheels_m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,34 @@ jobs:
runner-type: macos-m1-stable
smoke-test-script: test/smoke_test.py
trigger-event: ${{ github.event_name }}
notify:
runs-on: ubuntu-latest
name: Email notification
needs: [generate-matrix, build]
if: failure() && github.event_name == 'schedule'
steps:
- uses: dawidd6/action-send-mail@v4
with:
server_address: smtp.gmail.com
server_port: 465
username: torchao.notify
password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }}
from: [email protected]
to: ${{ secrets.TORCHAO_NOTIFY_RECIPIENT }}
subject: Scheduled Build Failure for TorchAO
body: |
Build Failure Notification for TorchAO
A failure occurred in the Build Linux Wheels workflow.
Run Details:
- Workflow: ${{ github.workflow }}
- Run Type: ${{ github.event_name }}
- Repository: ${{ github.repository }}
- Branch/PR: ${{ github.ref }}
- Commit: ${{ github.sha }}
You can view the full run details here:
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Error Information:
${{ needs.generate-matrix.result == 'failure' && 'Matrix generation failed' || '' }}
${{ needs.build.result == 'failure' && 'Build job failed' || '' }}
This is an automated notification. Please check the GitHub Actions page for more details about the failure.
31 changes: 31 additions & 0 deletions .github/workflows/build_wheels_aarch64_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,34 @@ jobs:
setup-miniconda: false
secrets:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
notify:
runs-on: ubuntu-latest
name: Email notification
needs: [generate-matrix, build]
if: failure() && github.event_name == 'schedule'
steps:
- uses: dawidd6/action-send-mail@v4
with:
server_address: smtp.gmail.com
server_port: 465
username: torchao.notify
password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }}
from: [email protected]
to: ${{ secrets.TORCHAO_NOTIFY_RECIPIENT }}
subject: Scheduled Build Failure for TorchAO
body: |
Build Failure Notification for TorchAO
A failure occurred in the Build AARCH64 Wheels workflow.
Run Details:
- Workflow: ${{ github.workflow }}
- Run Type: ${{ github.event_name }}
- Repository: ${{ github.repository }}
- Branch/PR: ${{ github.ref }}
- Commit: ${{ github.sha }}
You can view the full run details here:
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Error Information:
${{ needs.generate-matrix.result == 'failure' && 'Matrix generation failed' || '' }}
${{ needs.build.result == 'failure' && 'Build job failed' || '' }}
This is an automated notification. Please check the GitHub Actions page for more details about the failure.
35 changes: 35 additions & 0 deletions .github/workflows/build_wheels_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,38 @@ jobs:
package-name: ${{ matrix.package-name }}
smoke-test-script: ${{ matrix.smoke-test-script }}
trigger-event: ${{ github.event_name }}
notify:
runs-on: ubuntu-latest
name: Email notification
needs: [generate-matrix, build]
if: failure() && github.event_name == 'schedule'
steps:
- uses: dawidd6/action-send-mail@v4
with:
server_address: smtp.gmail.com
server_port: 465
username: torchao.notify
password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }}
from: [email protected]
to: ${{ secrets.TORCHAO_NOTIFY_RECIPIENT }}
subject: Scheduled Build Failure for TorchAO
body: |
Build Failure Notification for TorchAO
A failure occurred in the Build Windows Wheels workflow.
Run Details:
- Workflow: ${{ github.workflow }}
- Run Type: ${{ github.event_name }}
- Repository: ${{ github.repository }}
- Branch/PR: ${{ github.ref }}
- Commit: ${{ github.sha }}
You can view the full run details here:
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Error Information:
${{ needs.generate-matrix.result == 'failure' && 'Matrix generation failed' || '' }}
${{ needs.build.result == 'failure' && 'Build job failed' || '' }}
This is an automated notification. Please check the GitHub Actions page for more details about the failure.

0 comments on commit f2e8f56

Please sign in to comment.