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
27 changes: 27 additions & 0 deletions .github/workflows/api_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
api-tests:
name: API Integration Tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 50
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -468,3 +469,29 @@ jobs:
run: |
Write-Host "API tests failed!"
exit 1

notify-failure:
name: Notify on Failure
needs: [api-tests]
if: failure()
runs-on: ubuntu-latest
steps:
- name: Send failure email
uses: dawidd6/action-send-mail@v4
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{ secrets.SMTP_USERNAME }}
password: ${{ secrets.SMTP_PASSWORD }}
subject: "❌ CI Failed: ${{ github.workflow }} - ${{ github.ref_name }}"
to: likaisong@bytedance.com
from: GitHub Actions
body: |
Workflow: ${{ github.workflow }}
Repository: ${{ github.repository }}
Branch: ${{ github.ref_name }}
Commit: ${{ github.sha }}
Actor: ${{ github.actor }}
Run URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

Please check the workflow run for details.
27 changes: 27 additions & 0 deletions .github/workflows/oc2ov_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
p0-tests:
name: P0 Memory Tests
runs-on: [self-hosted, linux, x64]
timeout-minutes: 50
if: inputs.skip_tests != true

steps:
Expand Down Expand Up @@ -196,3 +197,29 @@ jobs:
run: |
echo "::notice::P0 tests passed. Release can proceed."
echo "Release ${{ github.event.release.tag_name }} has been validated by P0 tests."

notify-failure:
name: Notify on Failure
needs: [p0-tests]
if: failure()
runs-on: ubuntu-latest
steps:
- name: Send failure email
uses: dawidd6/action-send-mail@v4
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{ secrets.SMTP_USERNAME }}
password: ${{ secrets.SMTP_PASSWORD }}
subject: "❌ CI Failed: ${{ github.workflow }} - ${{ github.ref_name }}"
to: likaisong@bytedance.com
from: GitHub Actions
body: |
Workflow: ${{ github.workflow }}
Repository: ${{ github.repository }}
Branch: ${{ github.ref_name }}
Commit: ${{ github.sha }}
Actor: ${{ github.actor }}
Run URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

Please check the workflow run for details.