chore(ci): 添加PostgreSQL诊断步骤 - 排查Alembic失败
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 10s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 11s
CI/CD Pipeline / Frontend Lint (push) Successful in 56s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 53s
CI/CD Pipeline / Unit Tests (push) Successful in 2m51s
CI/CD Pipeline / Integration Tests (push) Successful in 2m12s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m18s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 2m36s
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Failing after 1493h14m41s
CI Build & Deploy Pipeline / Production Browser E2E (push) Failing after 1493h14m41s
CI Build & Deploy Pipeline / Deploy Production (pull_request) Failing after 1493h14m43s
CI Build & Deploy Pipeline / Deploy Production (push) Failing after 1493h14m44s
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Failing after 1493h14m45s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Failing after 1493h14m47s
CI Build & Deploy Pipeline / Build Production Worker Image (push) Failing after 1493h14m48s
CI Build & Deploy Pipeline / Build Production API Image (push) Failing after 1493h14m50s
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Failing after 1493h15m21s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1493h15m23s
CI Build & Deploy Pipeline / Staging API Integration Tests (push) Failing after 1493h15m23s
CI Build & Deploy Pipeline / Staging E2E Tests (push) Failing after 1493h15m23s
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Failing after 1493h15m25s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Failing after 1493h15m25s
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Failing after 1493h15m25s
CI Build & Deploy Pipeline / Build Staging Worker Image (push) Failing after 1493h15m27s
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Failing after 1493h15m26s
CI Build & Deploy Pipeline / Build Staging API Image (push) Failing after 1493h15m29s
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Failing after 1493h46m32s
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Failing after 1493h47m7s
CI Build & Deploy Pipeline / Build Production Web Image (push) Failing after 1493h46m35s
CI Build & Deploy Pipeline / Build Staging Web Image (push) Failing after 1493h47m15s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 10s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 11s
CI/CD Pipeline / Frontend Lint (push) Successful in 56s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 53s
CI/CD Pipeline / Unit Tests (push) Successful in 2m51s
CI/CD Pipeline / Integration Tests (push) Successful in 2m12s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m18s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 2m36s
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Failing after 1493h14m41s
CI Build & Deploy Pipeline / Production Browser E2E (push) Failing after 1493h14m41s
CI Build & Deploy Pipeline / Deploy Production (pull_request) Failing after 1493h14m43s
CI Build & Deploy Pipeline / Deploy Production (push) Failing after 1493h14m44s
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Failing after 1493h14m45s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Failing after 1493h14m47s
CI Build & Deploy Pipeline / Build Production Worker Image (push) Failing after 1493h14m48s
CI Build & Deploy Pipeline / Build Production API Image (push) Failing after 1493h14m50s
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Failing after 1493h15m21s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1493h15m23s
CI Build & Deploy Pipeline / Staging API Integration Tests (push) Failing after 1493h15m23s
CI Build & Deploy Pipeline / Staging E2E Tests (push) Failing after 1493h15m23s
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Failing after 1493h15m25s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Failing after 1493h15m25s
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Failing after 1493h15m25s
CI Build & Deploy Pipeline / Build Staging Worker Image (push) Failing after 1493h15m27s
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Failing after 1493h15m26s
CI Build & Deploy Pipeline / Build Staging API Image (push) Failing after 1493h15m29s
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Failing after 1493h46m32s
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Failing after 1493h47m7s
CI Build & Deploy Pipeline / Build Production Web Image (push) Failing after 1493h46m35s
CI Build & Deploy Pipeline / Build Staging Web Image (push) Failing after 1493h47m15s
This commit is contained in:
@@ -83,6 +83,20 @@ jobs:
|
||||
fi
|
||||
|
||||
echo "🔧 包含后端/公共变更,继续完整检查"
|
||||
- name: Runner PG诊断
|
||||
shell: sh
|
||||
run: |
|
||||
set +e
|
||||
echo "=== PG诊断 ==="
|
||||
echo "DATABASE_URL=$DATABASE_URL"
|
||||
echo "--- PG进程 ---"
|
||||
ps aux | grep postgres | grep -v grep
|
||||
echo "--- 5432端口 ---"
|
||||
ss -tlnp 2>/dev/null | grep 5432 || netstat -tlnp 2>/dev/null | grep 5432 || echo "port 5432: no listen"
|
||||
echo "--- 连接测试 ---"
|
||||
python3 -c "import os,sys;from sqlalchemy import create_engine,text;e=create_engine(os.environ['DATABASE_URL'],connect_args={'connect_timeout':5});c=e.connect();r=c.execute(text('SELECT version()'));print('PG:',r.fetchone()[0][:60]);r=c.execute(text("SELECT count(*) FROM information_schema.tables WHERE table_schema='public'"));print('tables:',r.fetchone()[0]);c.close();print('OK')" 2>&1
|
||||
echo "=== 诊断结束 ==="
|
||||
|
||||
- name: Detect frontend-only change
|
||||
shell: bash
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user