Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

ci: add timeout and SMTP failure notification (#1293)

kaisonglif513177ab6d7
diff --git a/.github/workflows/api_test.yml b/.github/workflows/api_test.yml
index c2d3cdd30..8aa24f223 100644
--- a/.github/workflows/api_test.yml
+++ b/.github/workflows/api_test.yml
@@ -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:
@@ -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 }}"
+ 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.
diff --git a/.github/workflows/oc2ov_test.yml b/.github/workflows/oc2ov_test.yml
index 70e2e4ca0..c098a3145 100644
--- a/.github/workflows/oc2ov_test.yml
+++ b/.github/workflows/oc2ov_test.yml
@@ -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:
@@ -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 }}"
+ 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.