feat(ci): preview-deploy.yml 接入 AgentLoop Trace 上报
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 16s
AI Code Review / AI Code Review (pull_request) Failing after 26s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 3m43s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 8m54s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 5m57s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 11m24s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 1414h6m0s
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Failing after 1414h16m2s
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Failing after 1414h16m4s
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Failing after 1414h16m4s
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Failing after 1414h16m6s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Failing after 1414h16m6s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1414h16m7s
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Failing after 1414h16m9s
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Failing after 1414h16m9s
CI/CD Pipeline / Check if frontend-only change (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Failing after 1414h48m16s
CI Build & Deploy Pipeline / Deploy Production (pull_request) Failing after 1414h48m11s
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Failing after 1414h48m13s
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 16s
AI Code Review / AI Code Review (pull_request) Failing after 26s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 3m43s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 8m54s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 5m57s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 11m24s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 1414h6m0s
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Failing after 1414h16m2s
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Failing after 1414h16m4s
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Failing after 1414h16m4s
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Failing after 1414h16m6s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Failing after 1414h16m6s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1414h16m7s
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Failing after 1414h16m9s
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Failing after 1414h16m9s
CI/CD Pipeline / Check if frontend-only change (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Failing after 1414h48m16s
CI Build & Deploy Pipeline / Deploy Production (pull_request) Failing after 1414h48m11s
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Failing after 1414h48m13s
为 workflow 中的每个 job 添加 Trace 上报步骤, 实现 CI 执行链路的可观测性。
This commit is contained in:
@@ -72,6 +72,14 @@ jobs:
|
||||
tar.extract(member, '.')
|
||||
PY
|
||||
|
||||
- name: Record start time & report trace start
|
||||
shell: sh
|
||||
env:
|
||||
AGENTLOOP_ENDPOINT: ${{ secrets.AGENTLOOP_ENDPOINT }}
|
||||
AGENTLOOP_LICENSE_KEY: ${{ secrets.AGENTLOOP_LICENSE_KEY }}
|
||||
AGENTLOOP_PROJECT: ${{ secrets.AGENTLOOP_PROJECT }}
|
||||
AGENTLOOP_WORKSPACE: ${{ secrets.AGENTLOOP_WORKSPACE }}
|
||||
run: "set +e\n\necho \"CI_TRACE_START_TIME=$(date +%s)\" >> $GITHUB_ENV\nTRACE_SERVICE=\"preview-deploy\" TRACE_NAME=\"预览环境部署 / Deploy Preview Environment\" python3 .gitea/scripts/ci_trace_report.py --status running\n\nexit 0\n"
|
||||
- name: Record job start time
|
||||
shell: sh
|
||||
run: |
|
||||
@@ -272,3 +280,12 @@ jobs:
|
||||
run: |
|
||||
set +e
|
||||
NOTIFY_MODE=failure JOB_NAME="Deploy Preview Environment" python3 scripts/ci_notify.py
|
||||
- name: Report trace end (always)
|
||||
if: always()
|
||||
shell: sh
|
||||
env:
|
||||
AGENTLOOP_ENDPOINT: ${{ secrets.AGENTLOOP_ENDPOINT }}
|
||||
AGENTLOOP_LICENSE_KEY: ${{ secrets.AGENTLOOP_LICENSE_KEY }}
|
||||
AGENTLOOP_PROJECT: ${{ secrets.AGENTLOOP_PROJECT }}
|
||||
AGENTLOOP_WORKSPACE: ${{ secrets.AGENTLOOP_WORKSPACE }}
|
||||
run: "set +e\n\nif [ \"${{ job.status }}\" = \"success\" ]; then\n TRACE_STATUS=\"ok\"\nelse\n TRACE_STATUS=\"error\"\nfi\n\nTRACE_SERVICE=\"preview-deploy\" TRACE_NAME=\"预览环境部署 / Deploy Preview Environment\" TRACE_STATUS=\"$TRACE_STATUS\" python3 .gitea/scripts/ci_trace_report.py --start-time \"$CI_TRACE_START_TIME\"\n\nexit 0\n"
|
||||
|
||||
Reference in New Issue
Block a user