Commit 48355b11 authored by Jimmy Lai's avatar Jimmy Lai

feat(ci): add Datadog integration for flaky test detection

- Query Datadog CI Visibility API for historical test data (30-day window)
- Identify known flaky tests and show them separately
- Detect slow test regressions (tests 2x slower than baseline)
- Add flake rate and recent failure stats
- Pass DATA_DOG_API_KEY and DD_APPLICATION_KEY to action
parent e701f226
...@@ -19,6 +19,14 @@ inputs: ...@@ -19,6 +19,14 @@ inputs:
default: 'false' default: 'false'
description: 'Whether to include the full test failure message in the report. This is currently disabled as we have too many failed test cases, which would lead to massive comments.' description: 'Whether to include the full test failure message in the report. This is currently disabled as we have too many failed test cases, which would lead to massive comments.'
datadog_api_key:
description: 'Datadog API key for querying historical test data'
required: false
datadog_app_key:
description: 'Datadog Application key for querying historical test data'
required: false
runs: runs:
using: node20 using: node20
main: dist/index.js main: dist/index.js
...@@ -177,6 +177,8 @@ jobs: ...@@ -177,6 +177,8 @@ jobs:
uses: ./.github/actions/next-integration-stat uses: ./.github/actions/next-integration-stat
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
datadog_api_key: ${{ secrets.DATA_DOG_API_KEY }}
datadog_app_key: ${{ secrets.DD_APPLICATION_KEY }}
- name: Store artifacts - name: Store artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment