-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
notify on wheel failure for aarch, m1, windows (#1725)
* 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
Showing
3 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -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. |
This file contains 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 |
---|---|---|
|
@@ -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. |
This file contains 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 |
---|---|---|
|
@@ -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. |