From 9a6f0fbe439b641a23e0a90bfd99956c9a22eb90 Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Fri, 10 Jan 2025 18:02:48 -0500 Subject: [PATCH 01/16] test notify build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 78 ++++++++++++++---------- 1 file changed, 45 insertions(+), 33 deletions(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index 3c37e0e1e0..e881ee37af 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -21,38 +21,50 @@ on: workflow_dispatch: jobs: - generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main - with: - package-type: wheel - os: linux - with-cpu: enable - with-cuda: enable - with-rocm: enable - with-xpu: enable + # generate-matrix: + # uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + # with: + # package-type: wheel + # os: linux + # with-cpu: enable + # with-cuda: enable + # with-rocm: enable + # with-xpu: enable - build: - needs: generate-matrix - permissions: - id-token: write - contents: read - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + # build: + # needs: generate-matrix + # permissions: + # id-token: write + # contents: read + # uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + # with: + # # Set the ref to an empty string instead of the default nightly because + # # torchao doesn't have nightly branch setup yet, instead the build is + # # triggered daily from main with a schedule + # repository: pytorch/ao + # ref: "" + # test-infra-repository: pytorch/test-infra + # test-infra-ref: main + # build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + # env-var-script: packaging/env_var_script_linux.sh + # pre-script: packaging/pre_build_script.sh + # post-script: packaging/post_build_script.sh + # smoke-test-script: packaging/smoke_test.py + # package-name: torchao + # trigger-event: ${{ github.event_name }} + # # This is the CUDA version to be uploaded to torchao-nightly pypi + # upload-to-pypi: cu121 + # secrets: + # PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + send-email-on-failure: + # if: failure() + uses: dawidd6/action-send-mail@v4 with: - # Set the ref to an empty string instead of the default nightly because - # torchao doesn't have nightly branch setup yet, instead the build is - # triggered daily from main with a schedule - repository: pytorch/ao - ref: "" - test-infra-repository: pytorch/test-infra - test-infra-ref: main - build-matrix: ${{ needs.generate-matrix.outputs.matrix }} - env-var-script: packaging/env_var_script_linux.sh - pre-script: packaging/pre_build_script.sh - post-script: packaging/post_build_script.sh - smoke-test-script: packaging/smoke_test.py - package-name: torchao - trigger-event: ${{ github.event_name }} - # This is the CUDA version to be uploaded to torchao-nightly pypi - upload-to-pypi: cu121 - secrets: - PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + server_address: smtp.gmail.com + server_port: 587 + from_address: torchao.notify@gmail.com + to_address: cdhernandez@meta.com + subject: Scheduled CI Failure for TorchAO + body: "Workflow failed: Build Linux Wheels\ngetlink" + username: torchao.notify + password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }} From af3dd05d77c170c1db34b9e96f54c91e1a695f0b Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Fri, 10 Jan 2025 18:13:49 -0500 Subject: [PATCH 02/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 25 +++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index e881ee37af..bb53f3ba8c 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -56,15 +56,18 @@ jobs: # upload-to-pypi: cu121 # secrets: # PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} - send-email-on-failure: + notify: + runs-on: ubuntu-latest + name: Email notification + steps: # if: failure() - uses: dawidd6/action-send-mail@v4 - with: - server_address: smtp.gmail.com - server_port: 587 - from_address: torchao.notify@gmail.com - to_address: cdhernandez@meta.com - subject: Scheduled CI Failure for TorchAO - body: "Workflow failed: Build Linux Wheels\ngetlink" - username: torchao.notify - password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }} + - uses: dawidd6/action-send-mail@v4 + with: + server_address: smtp.gmail.com + server_port: 587 + from_address: torchao.notify@gmail.com + to_address: cdhernandez@meta.com + subject: Scheduled CI Failure for TorchAO + body: "Workflow failed: Build Linux Wheels\ngetlink" + username: torchao.notify + password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }} From 8554db5e7c5462faf6f29b3aae2516979515c30f Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Fri, 10 Jan 2025 18:15:42 -0500 Subject: [PATCH 03/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index bb53f3ba8c..313ecb4ad7 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -65,7 +65,7 @@ jobs: with: server_address: smtp.gmail.com server_port: 587 - from_address: torchao.notify@gmail.com + from: torchao.notify@gmail.com to_address: cdhernandez@meta.com subject: Scheduled CI Failure for TorchAO body: "Workflow failed: Build Linux Wheels\ngetlink" From cf17993a3fe35b13e801b810b1d32531e909a2a8 Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Fri, 10 Jan 2025 18:16:48 -0500 Subject: [PATCH 04/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index 313ecb4ad7..18ca04a5b9 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -65,9 +65,10 @@ jobs: with: server_address: smtp.gmail.com server_port: 587 + username: torchao.notify + password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }} from: torchao.notify@gmail.com - to_address: cdhernandez@meta.com + to: cdhernandez@meta.com subject: Scheduled CI Failure for TorchAO body: "Workflow failed: Build Linux Wheels\ngetlink" - username: torchao.notify - password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }} + From 053626a03bfefba81f0aaf29956fc92a184e4237 Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Fri, 10 Jan 2025 23:03:25 -0500 Subject: [PATCH 05/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index 18ca04a5b9..7960ae61d1 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -64,7 +64,7 @@ jobs: - uses: dawidd6/action-send-mail@v4 with: server_address: smtp.gmail.com - server_port: 587 + server_port: 465 username: torchao.notify password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }} from: torchao.notify@gmail.com From ed3534ce5a3c6e05f61be42400427424fc767028 Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Fri, 10 Jan 2025 23:29:24 -0500 Subject: [PATCH 06/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 96 +++++++++++++++--------- 1 file changed, 60 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index 7960ae61d1..aa106927a7 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -21,46 +21,47 @@ on: workflow_dispatch: jobs: - # generate-matrix: - # uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main - # with: - # package-type: wheel - # os: linux - # with-cpu: enable - # with-cuda: enable - # with-rocm: enable - # with-xpu: enable + generate-matrix: + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + with: + package-type: wheel + os: linux + with-cpu: enable + with-cuda: enable + with-rocm: enable + with-xpu: enable - # build: - # needs: generate-matrix - # permissions: - # id-token: write - # contents: read - # uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main - # with: - # # Set the ref to an empty string instead of the default nightly because - # # torchao doesn't have nightly branch setup yet, instead the build is - # # triggered daily from main with a schedule - # repository: pytorch/ao - # ref: "" - # test-infra-repository: pytorch/test-infra - # test-infra-ref: main - # build-matrix: ${{ needs.generate-matrix.outputs.matrix }} - # env-var-script: packaging/env_var_script_linux.sh - # pre-script: packaging/pre_build_script.sh - # post-script: packaging/post_build_script.sh - # smoke-test-script: packaging/smoke_test.py - # package-name: torchao - # trigger-event: ${{ github.event_name }} - # # This is the CUDA version to be uploaded to torchao-nightly pypi - # upload-to-pypi: cu121 - # secrets: - # PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + build: + needs: generate-matrix + permissions: + id-token: write + contents: read + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + with: + # Set the ref to an empty string instead of the default nightly because + # torchao doesn't have nightly branch setup yet, instead the build is + # triggered daily from main with a schedule + repository: pytorch/ao + ref: "" + test-infra-repository: pytorch/test-infra + test-infra-ref: main + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + env-var-script: packaging/env_var_script_linux.sh + pre-script: packaging/pre_build_script.sh + post-script: packaging/post_build_script.sh + smoke-test-script: packaging/smoke_test.py + package-name: torchao + trigger-event: ${{ github.event_name }} + # This is the CUDA version to be uploaded to torchao-nightly pypi + upload-to-pypi: cu121 + secrets: + PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} notify: runs-on: ubuntu-latest name: Email notification + needs: [build] + if: github.event_name == 'pull_request' steps: - # if: failure() - uses: dawidd6/action-send-mail@v4 with: server_address: smtp.gmail.com @@ -70,5 +71,28 @@ jobs: from: torchao.notify@gmail.com to: cdhernandez@meta.com subject: Scheduled CI Failure for TorchAO - body: "Workflow failed: Build Linux Wheels\ngetlink" + body: | + Workflow failed: ${{ name }}. + The error is: ${{ env.WORKFLOW_CONCLUSION }}. + see https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + ${{ github.event_name }} and ${{ github.event_name == 'pull_request' }} + ${{ env.WORKFLOW_CONCLUSION }} + ------ claude message ------ + 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: + ${{ job.status }} + + This is an automated notification. Please check the GitHub Actions page for more details about the failure. From 279bd16eacad5059950b25f1df6b641ba5aa20a9 Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Fri, 10 Jan 2025 23:30:25 -0500 Subject: [PATCH 07/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 72 ++++++++++++------------ 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index aa106927a7..5953735b4e 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -21,46 +21,46 @@ on: workflow_dispatch: jobs: - generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main - with: - package-type: wheel - os: linux - with-cpu: enable - with-cuda: enable - with-rocm: enable - with-xpu: enable + # generate-matrix: + # uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + # with: + # package-type: wheel + # os: linux + # with-cpu: enable + # with-cuda: enable + # with-rocm: enable + # with-xpu: enable - build: - needs: generate-matrix - permissions: - id-token: write - contents: read - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main - with: - # Set the ref to an empty string instead of the default nightly because - # torchao doesn't have nightly branch setup yet, instead the build is - # triggered daily from main with a schedule - repository: pytorch/ao - ref: "" - test-infra-repository: pytorch/test-infra - test-infra-ref: main - build-matrix: ${{ needs.generate-matrix.outputs.matrix }} - env-var-script: packaging/env_var_script_linux.sh - pre-script: packaging/pre_build_script.sh - post-script: packaging/post_build_script.sh - smoke-test-script: packaging/smoke_test.py - package-name: torchao - trigger-event: ${{ github.event_name }} - # This is the CUDA version to be uploaded to torchao-nightly pypi - upload-to-pypi: cu121 - secrets: - PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + # build: + # needs: generate-matrix + # permissions: + # id-token: write + # contents: read + # uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + # with: + # # Set the ref to an empty string instead of the default nightly because + # # torchao doesn't have nightly branch setup yet, instead the build is + # # triggered daily from main with a schedule + # repository: pytorch/ao + # ref: "" + # test-infra-repository: pytorch/test-infra + # test-infra-ref: main + # build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + # env-var-script: packaging/env_var_script_linux.sh + # pre-script: packaging/pre_build_script.sh + # post-script: packaging/post_build_script.sh + # smoke-test-script: packaging/smoke_test.py + # package-name: torchao + # trigger-event: ${{ github.event_name }} + # # This is the CUDA version to be uploaded to torchao-nightly pypi + # upload-to-pypi: cu121 + # secrets: + # PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} notify: runs-on: ubuntu-latest name: Email notification - needs: [build] - if: github.event_name == 'pull_request' + # needs: [build] + # if: github.event_name == 'pull_request' steps: - uses: dawidd6/action-send-mail@v4 with: From 33c21b2626edc3dd49f8a9701dec6e0ed843d4fe Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Fri, 10 Jan 2025 23:34:11 -0500 Subject: [PATCH 08/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index 5953735b4e..6b46c9c838 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -72,7 +72,7 @@ jobs: to: cdhernandez@meta.com subject: Scheduled CI Failure for TorchAO body: | - Workflow failed: ${{ name }}. + Workflow failed: Build Linux Wheels. The error is: ${{ env.WORKFLOW_CONCLUSION }}. see https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} ${{ github.event_name }} and ${{ github.event_name == 'pull_request' }} From 64687441b486e432de335f4bdffcd43ae9b83292 Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Fri, 10 Jan 2025 23:43:20 -0500 Subject: [PATCH 09/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 80 +++++++++++------------- 1 file changed, 37 insertions(+), 43 deletions(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index 6b46c9c838..8c9ade00b9 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -21,46 +21,46 @@ on: workflow_dispatch: jobs: - # generate-matrix: - # uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main - # with: - # package-type: wheel - # os: linux - # with-cpu: enable - # with-cuda: enable - # with-rocm: enable - # with-xpu: enable + generate-matrix: + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + with: + package-type: wheel + os: linux + with-cpu: enable + with-cuda: enable + with-rocm: enable + with-xpu: enable - # build: - # needs: generate-matrix - # permissions: - # id-token: write - # contents: read - # uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main - # with: - # # Set the ref to an empty string instead of the default nightly because - # # torchao doesn't have nightly branch setup yet, instead the build is - # # triggered daily from main with a schedule - # repository: pytorch/ao - # ref: "" - # test-infra-repository: pytorch/test-infra - # test-infra-ref: main - # build-matrix: ${{ needs.generate-matrix.outputs.matrix }} - # env-var-script: packaging/env_var_script_linux.sh - # pre-script: packaging/pre_build_script.sh - # post-script: packaging/post_build_script.sh - # smoke-test-script: packaging/smoke_test.py - # package-name: torchao - # trigger-event: ${{ github.event_name }} - # # This is the CUDA version to be uploaded to torchao-nightly pypi - # upload-to-pypi: cu121 - # secrets: - # PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + build: + needs: generate-matrix + permissions: + id-token: write + contents: read + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + with: + # Set the ref to an empty string instead of the default nightly because + # torchao doesn't have nightly branch setup yet, instead the build is + # triggered daily from main with a schedule + repository: pytorch/ao + ref: "" + test-infra-repository: pytorch/test-infra + test-infra-ref: main + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + env-var-script: packaging/env_var_script_linux.sh + pre-script: packaging/pre_build_script.shs #ERROR + post-script: packaging/post_build_script.sh + smoke-test-script: packaging/smoke_test.py + package-name: torchao + trigger-event: ${{ github.event_name }} + # This is the CUDA version to be uploaded to torchao-nightly pypi + upload-to-pypi: cu121 + secrets: + PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} notify: runs-on: ubuntu-latest name: Email notification - # needs: [build] - # if: github.event_name == 'pull_request' + needs: [build] + if: github.event_name == 'pull_request' && job.status != 'success' steps: - uses: dawidd6/action-send-mail@v4 with: @@ -70,14 +70,8 @@ jobs: password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }} from: torchao.notify@gmail.com to: cdhernandez@meta.com - subject: Scheduled CI Failure for TorchAO + subject: Scheduled Build Failure for TorchAO body: | - Workflow failed: Build Linux Wheels. - The error is: ${{ env.WORKFLOW_CONCLUSION }}. - see https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} - ${{ github.event_name }} and ${{ github.event_name == 'pull_request' }} - ${{ env.WORKFLOW_CONCLUSION }} - ------ claude message ------ Build Failure Notification for TorchAO A failure occurred in the Build Linux Wheels workflow. From d1cd4bd34e99e9eabf03961ff688540183b77aef Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Fri, 10 Jan 2025 23:48:44 -0500 Subject: [PATCH 10/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index 8c9ade00b9..1095dc5cfd 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -60,7 +60,7 @@ jobs: runs-on: ubuntu-latest name: Email notification needs: [build] - if: github.event_name == 'pull_request' && job.status != 'success' + if: github.event_name == 'pull_request' && failure() steps: - uses: dawidd6/action-send-mail@v4 with: From 40db53622aec7ac65a6686dc96fb08e36fcd7dcd Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Sat, 11 Jan 2025 00:16:07 -0500 Subject: [PATCH 11/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 25 +++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index 1095dc5cfd..e8df47c146 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -56,11 +56,26 @@ jobs: upload-to-pypi: cu121 secrets: PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + + capture-error: + runs-on: ubuntu-latest + if: failure() + needs: [build, generate-matrix] + outputs: + error-message: ${{ steps.get-error.outputs.error }} + steps: + - id: get-error + run: | + ERROR=$(gh run view ${{ github.run_id }} --json jobs -q '.jobs[] | select(.conclusion == "failure") | .steps[] | select(.conclusion == "failure") | .name + ": " + .conclusion') + echo "error=$ERROR" >> "$GITHUB_OUTPUT" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + notify: runs-on: ubuntu-latest name: Email notification - needs: [build] - if: github.event_name == 'pull_request' && failure() + needs: [generate-matrix, build] + if: failure() && github.event_name == 'pull_request' steps: - uses: dawidd6/action-send-mail@v4 with: @@ -86,7 +101,7 @@ jobs: You can view the full run details here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - Error Information: - ${{ job.status }} - + Error Details: + ${{ needs.capture-error.outputs.error-message }} + This is an automated notification. Please check the GitHub Actions page for more details about the failure. From 893f87a15ffb499e440179f44241aa497883c1c8 Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Sat, 11 Jan 2025 00:28:36 -0500 Subject: [PATCH 12/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index e8df47c146..aca8973e9d 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -56,26 +56,11 @@ jobs: upload-to-pypi: cu121 secrets: PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} - - capture-error: - runs-on: ubuntu-latest - if: failure() - needs: [build, generate-matrix] - outputs: - error-message: ${{ steps.get-error.outputs.error }} - steps: - - id: get-error - run: | - ERROR=$(gh run view ${{ github.run_id }} --json jobs -q '.jobs[] | select(.conclusion == "failure") | .steps[] | select(.conclusion == "failure") | .name + ": " + .conclusion') - echo "error=$ERROR" >> "$GITHUB_OUTPUT" - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - notify: runs-on: ubuntu-latest name: Email notification needs: [generate-matrix, build] - if: failure() && github.event_name == 'pull_request' + if: failure() && github.event_name == 'pull_request' # SHOULD BE schedule steps: - uses: dawidd6/action-send-mail@v4 with: @@ -101,7 +86,8 @@ jobs: You can view the full run details here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - Error Details: - ${{ needs.capture-error.outputs.error-message }} + 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. From 16e13c694d6e7eeaacabbcafe5364168966c9178 Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Sat, 11 Jan 2025 00:46:02 -0500 Subject: [PATCH 13/16] final commit --- .github/workflows/build_wheels_linux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index aca8973e9d..0404bfdc99 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -47,7 +47,7 @@ jobs: test-infra-ref: main build-matrix: ${{ needs.generate-matrix.outputs.matrix }} env-var-script: packaging/env_var_script_linux.sh - pre-script: packaging/pre_build_script.shs #ERROR + pre-script: packaging/pre_build_script.sh post-script: packaging/post_build_script.sh smoke-test-script: packaging/smoke_test.py package-name: torchao @@ -60,7 +60,7 @@ jobs: runs-on: ubuntu-latest name: Email notification needs: [generate-matrix, build] - if: failure() && github.event_name == 'pull_request' # SHOULD BE schedule + if: failure() && github.event_name == 'schedule' steps: - uses: dawidd6/action-send-mail@v4 with: From 33cb9d750cfa5d6fe575ce07e2d66d2567a1c9a6 Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Sat, 11 Jan 2025 00:50:34 -0500 Subject: [PATCH 14/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index 0404bfdc99..9b266c9234 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -60,7 +60,7 @@ jobs: runs-on: ubuntu-latest name: Email notification needs: [generate-matrix, build] - if: failure() && github.event_name == 'schedule' + if: failure() && github.event_name == 'pull_request' steps: - uses: dawidd6/action-send-mail@v4 with: @@ -69,8 +69,8 @@ jobs: username: torchao.notify password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }} from: torchao.notify@gmail.com - to: cdhernandez@meta.com - subject: Scheduled Build Failure for TorchAO + to: ${{ secrets.TORCHAO_NOTIFY_RECIPIENT }} + subject: breakbutterflyScheduled Build Failure for TorchAO body: | Build Failure Notification for TorchAO From 1a04771ac2e384cf984918b40783ca39332dfe7e Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Sat, 11 Jan 2025 00:51:08 -0500 Subject: [PATCH 15/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 72 ++++++++++++------------ 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index 9b266c9234..ed4ed75af2 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -21,46 +21,46 @@ on: workflow_dispatch: jobs: - generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main - with: - package-type: wheel - os: linux - with-cpu: enable - with-cuda: enable - with-rocm: enable - with-xpu: enable + # generate-matrix: + # uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + # with: + # package-type: wheel + # os: linux + # with-cpu: enable + # with-cuda: enable + # with-rocm: enable + # with-xpu: enable - build: - needs: generate-matrix - permissions: - id-token: write - contents: read - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main - with: - # Set the ref to an empty string instead of the default nightly because - # torchao doesn't have nightly branch setup yet, instead the build is - # triggered daily from main with a schedule - repository: pytorch/ao - ref: "" - test-infra-repository: pytorch/test-infra - test-infra-ref: main - build-matrix: ${{ needs.generate-matrix.outputs.matrix }} - env-var-script: packaging/env_var_script_linux.sh - pre-script: packaging/pre_build_script.sh - post-script: packaging/post_build_script.sh - smoke-test-script: packaging/smoke_test.py - package-name: torchao - trigger-event: ${{ github.event_name }} - # This is the CUDA version to be uploaded to torchao-nightly pypi - upload-to-pypi: cu121 - secrets: - PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + # build: + # needs: generate-matrix + # permissions: + # id-token: write + # contents: read + # uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + # with: + # # Set the ref to an empty string instead of the default nightly because + # # torchao doesn't have nightly branch setup yet, instead the build is + # # triggered daily from main with a schedule + # repository: pytorch/ao + # ref: "" + # test-infra-repository: pytorch/test-infra + # test-infra-ref: main + # build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + # env-var-script: packaging/env_var_script_linux.sh + # pre-script: packaging/pre_build_script.sh + # post-script: packaging/post_build_script.sh + # smoke-test-script: packaging/smoke_test.py + # package-name: torchao + # trigger-event: ${{ github.event_name }} + # # This is the CUDA version to be uploaded to torchao-nightly pypi + # upload-to-pypi: cu121 + # 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 == 'pull_request' + # needs: [generate-matrix, build] + # if: failure() && github.event_name == 'pull_request' steps: - uses: dawidd6/action-send-mail@v4 with: From 7216da34d6a0b18f831e67a154b3e8f24e1f2c4f Mon Sep 17 00:00:00 2001 From: HDCharles <39544797+HDCharles@users.noreply.github.com> Date: Sat, 11 Jan 2025 00:52:10 -0500 Subject: [PATCH 16/16] Update build_wheels_linux.yml --- .github/workflows/build_wheels_linux.yml | 72 ++++++++++++------------ 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build_wheels_linux.yml b/.github/workflows/build_wheels_linux.yml index ed4ed75af2..8b966059f3 100644 --- a/.github/workflows/build_wheels_linux.yml +++ b/.github/workflows/build_wheels_linux.yml @@ -21,46 +21,46 @@ on: workflow_dispatch: jobs: - # generate-matrix: - # uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main - # with: - # package-type: wheel - # os: linux - # with-cpu: enable - # with-cuda: enable - # with-rocm: enable - # with-xpu: enable + generate-matrix: + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + with: + package-type: wheel + os: linux + with-cpu: enable + with-cuda: enable + with-rocm: enable + with-xpu: enable - # build: - # needs: generate-matrix - # permissions: - # id-token: write - # contents: read - # uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main - # with: - # # Set the ref to an empty string instead of the default nightly because - # # torchao doesn't have nightly branch setup yet, instead the build is - # # triggered daily from main with a schedule - # repository: pytorch/ao - # ref: "" - # test-infra-repository: pytorch/test-infra - # test-infra-ref: main - # build-matrix: ${{ needs.generate-matrix.outputs.matrix }} - # env-var-script: packaging/env_var_script_linux.sh - # pre-script: packaging/pre_build_script.sh - # post-script: packaging/post_build_script.sh - # smoke-test-script: packaging/smoke_test.py - # package-name: torchao - # trigger-event: ${{ github.event_name }} - # # This is the CUDA version to be uploaded to torchao-nightly pypi - # upload-to-pypi: cu121 - # secrets: - # PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + build: + needs: generate-matrix + permissions: + id-token: write + contents: read + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + with: + # Set the ref to an empty string instead of the default nightly because + # torchao doesn't have nightly branch setup yet, instead the build is + # triggered daily from main with a schedule + repository: pytorch/ao + ref: "" + test-infra-repository: pytorch/test-infra + test-infra-ref: main + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + env-var-script: packaging/env_var_script_linux.sh + pre-script: packaging/pre_build_script.sh + post-script: packaging/post_build_script.sh + smoke-test-script: packaging/smoke_test.py + package-name: torchao + trigger-event: ${{ github.event_name }} + # This is the CUDA version to be uploaded to torchao-nightly pypi + upload-to-pypi: cu121 + 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 == 'pull_request' + needs: [generate-matrix, build] + if: failure() && github.event_name == 'schedule' steps: - uses: dawidd6/action-send-mail@v4 with: