56ab6bcef4
CI/CD Pipeline / Validate - Code Quality (push) Failing after 3m6s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 1m8s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 1m6s
CI/CD Pipeline / Unit Tests (push) Failing after 5m4s
CI/CD Pipeline / Integration Tests (push) Successful in 2m39s
CI/CD Pipeline / Frontend Lint (push) Successful in 52s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 1m22s
CI/CD Pipeline / Build Staging API Image (push) Successful in 13m15s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m54s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 5m22s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m55s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 1m44s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 4m9s
CI/CD Pipeline / ACR Image Cleanup (push) Failing after 22s
CI/CD Pipeline / Canary Release to Production (push) Failing after 1253h36m33s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1253h52m55s
CI/CD Pipeline / Deploy Production (push) Failing after 1253h52m59s
CI/CD Pipeline / Build Production Web Image (push) Failing after 1253h54m1s
CI/CD Pipeline / Build Production API Image (push) Failing after 1253h54m1s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 1253h55m57s
CI/CD Pipeline / PR Build Web Image (push) Failing after 1253h55m59s
CI/CD Pipeline / PR Build API Image (push) Failing after 1253h55m59s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1253h57m7s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 1254h26m36s
根因: test_dedup_pure.py模块级mock了整个worker_app和sqlalchemy_impl包,导致pytest收集其他测试时导入子模块触发AttributeError: __spec__。 修复: 只mock具体叶子模块和session(真正触发DB连接的元凶),不mock整个父包。 fix #906