Files
xiaoxia-saas/packages/middleware
xiaoxia-agent 61d998bb01
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 4s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 3s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m27s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m57s
AI Code Review / AI Code Review (pull_request) Successful in 6m54s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 17s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 18s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 11m43s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 11m36s
CI/CD Pipeline / Validate - Style (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Security (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Has been cancelled
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Has been cancelled
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been cancelled
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 16h18m33s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 16h17m51s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 16h17m52s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 16h17m51s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 16h17m50s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 16h30m30s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 16h17m51s
fix(points): make @points_gate wrapper inherit decorated module globals
Previously the async/sync wrappers were defined inside the points_gate
module, so wrapper.__globals__ pointed to packages.middleware.points_gate
instead of the route module. When FastAPI/Pydantic resolved ForwardRef
type annotations (e.g. Pydantic models imported only in the route
module), they hit PydanticUndefinedAnnotation in environments where
typing.get_type_hints didn't walk __wrapped__ (Python 3.12 fast path).

Fix: clone the wrapper code via types.FunctionType into the decorated
function's module globals (with internal helpers injected), and use
_filter_kwargs consistently in all call paths (async passthrough and
gate-enabled paths included).
2026-09-15 22:47:34 +08:00
..