fix(ci): daily-check DooD挂载路径修复 - docker create+cp+start代替run -v
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 12s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 23s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m4s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m4s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 34s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 48s
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 22s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 3m46s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m59s
AI Code Review / AI Code Review (pull_request) Successful in 3m34s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 5m5s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 6m59s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 3m10s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 19s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 27s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 1227h32m54s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 1227h32m58s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1227h33m1s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1227h33m5s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1227h33m33s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 1227h33m37s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 1227h33m39s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 1227h33m41s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 1227h34m11s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1227h34m13s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1227h34m17s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1228h5m48s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1228h7m0s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 1228h6m20s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1228h5m42s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 12s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 23s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m4s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m4s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 34s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 48s
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 22s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 3m46s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m59s
AI Code Review / AI Code Review (pull_request) Successful in 3m34s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 5m5s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 6m59s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 3m10s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 19s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 27s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 1227h32m54s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 1227h32m58s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1227h33m1s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1227h33m5s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1227h33m33s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 1227h33m37s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 1227h33m39s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 1227h33m41s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 1227h34m11s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1227h34m13s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1227h34m17s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1228h5m48s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1228h7m0s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 1228h6m20s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1228h5m42s
This commit is contained in:
@@ -108,7 +108,8 @@ jobs:
|
||||
set +e
|
||||
START_TIME=$(date +%s)
|
||||
chmod +x tests/e2e/api_smoke_test.sh
|
||||
docker run --rm \
|
||||
CONTAINER_NAME="ci-test-$$"
|
||||
docker create --name "$CONTAINER_NAME" \
|
||||
-e BASE_URL=https://staging-api.xiaoxiajianji.com \
|
||||
-e WEB_URL=https://staging.xiaoxiajianji.com \
|
||||
-e TEST_USER="$STAGING_TEST_USER" \
|
||||
@@ -117,11 +118,13 @@ jobs:
|
||||
-e PERF_CHECK_ENABLED=1 \
|
||||
-e PERF_WARN_THRESHOLD_MS=500 \
|
||||
-e PERF_FAIL_THRESHOLD_MS=3000 \
|
||||
-v "$PWD:/workspace" \
|
||||
-w /workspace \
|
||||
git.xiaoxiajianji.com/xiaoxia/base/playwright:v1.45.0-jammy \
|
||||
bash tests/e2e/api_smoke_test.sh 2>&1 | tee /tmp/staging-api-smoke.log
|
||||
bash tests/e2e/api_smoke_test.sh 2>&1
|
||||
docker cp . "$CONTAINER_NAME:/workspace"
|
||||
docker start -a "$CONTAINER_NAME" 2>&1 | tee /tmp/staging-api-smoke.log
|
||||
SMOKE_EXIT=${PIPESTATUS[0]}
|
||||
docker rm "$CONTAINER_NAME" > /dev/null 2>&1 || true
|
||||
END_TIME=$(date +%s)
|
||||
ELAPSED=$((END_TIME - START_TIME))
|
||||
|
||||
@@ -147,14 +150,17 @@ jobs:
|
||||
run: |
|
||||
set +e
|
||||
START_TIME=$(date +%s)
|
||||
docker run --rm \
|
||||
CONTAINER_NAME="ci-test-$$"
|
||||
docker create --name "$CONTAINER_NAME" \
|
||||
-e E2E_BASE_URL=https://staging.xiaoxiajianji.com \
|
||||
-e E2E_API_BASE=https://staging-api.xiaoxiajianji.com/api/v1 \
|
||||
-v "$PWD:/workspace" \
|
||||
-w /workspace/apps/web \
|
||||
git.xiaoxiajianji.com/xiaoxia/base/playwright:v1.45.0-jammy \
|
||||
sh -lc "npm ci && npx playwright test --reporter=line e2e/test_auth.spec.ts e2e/test_asset.spec.ts e2e/test_project.spec.ts" 2>&1 | tee /tmp/staging-api-e2e.log
|
||||
sh -lc "npm ci && npx playwright test --reporter=line e2e/test_auth.spec.ts e2e/test_asset.spec.ts e2e/test_project.spec.ts" 2>&1
|
||||
docker cp . "$CONTAINER_NAME:/workspace"
|
||||
docker start -a "$CONTAINER_NAME" 2>&1 | tee /tmp/staging-api-e2e.log
|
||||
EXIT_CODE=${PIPESTATUS[0]}
|
||||
docker rm "$CONTAINER_NAME" > /dev/null 2>&1 || true
|
||||
END_TIME=$(date +%s)
|
||||
ELAPSED=$((END_TIME - START_TIME))
|
||||
|
||||
@@ -218,16 +224,19 @@ jobs:
|
||||
run: |
|
||||
set +e
|
||||
START_TIME=$(date +%s)
|
||||
docker run --rm --ipc=host \
|
||||
CONTAINER_NAME="ci-test-$$"
|
||||
docker create --name "$CONTAINER_NAME" --ipc=host \
|
||||
-e E2E_BASE_URL=https://staging.xiaoxiajianji.com \
|
||||
-e E2E_API_BASE=https://staging-api.xiaoxiajianji.com/api/v1 \
|
||||
-e E2E_BROWSER_CHANNEL=chromium \
|
||||
-e PLAYWRIGHT_HEADLESS=1 \
|
||||
-v "$PWD:/workspace" \
|
||||
-w /workspace/apps/web \
|
||||
git.xiaoxiajianji.com/xiaoxia/base/playwright:v1.45.0-jammy \
|
||||
sh -lc 'npm ci && npx playwright test --reporter=line --project=chromium e2e/auth.spec.ts e2e/auth-guard.spec.ts e2e/core-upload.spec.ts e2e/core-generation.spec.ts e2e/core-titles.spec.ts' 2>&1 | tee /tmp/staging-e2e.log
|
||||
sh -lc 'npm ci && npx playwright test --reporter=line --project=chromium e2e/auth.spec.ts e2e/auth-guard.spec.ts e2e/core-upload.spec.ts e2e/core-generation.spec.ts e2e/core-titles.spec.ts' 2>&1
|
||||
docker cp . "$CONTAINER_NAME:/workspace"
|
||||
docker start -a "$CONTAINER_NAME" 2>&1 | tee /tmp/staging-e2e.log
|
||||
EXIT_CODE=${PIPESTATUS[0]}
|
||||
docker rm "$CONTAINER_NAME" > /dev/null 2>&1 || true
|
||||
END_TIME=$(date +%s)
|
||||
ELAPSED=$((END_TIME - START_TIME))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user