Files
xiaoxia-saas/apps/api/app
xiaoxia 7f05308039
CI/CD Pipeline / Check push changed paths (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 1s
CI/CD Pipeline / PR Build Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 3s
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 49s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 58s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m11s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 2m4s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m17s
CI/CD Pipeline / Production Browser E2E (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 / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
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
AI Code Review / AI Code Review (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been cancelled
PR Automation / Auto Approve on CI Green (pull_request) Has been cancelled
test(viral-video): bring WS unit-test diff coverage above 40% threshold
- Extract Redis pubsub reader thread + async forwarding loop into a
  standalone _run_pubsub_forwarder() helper marked with
  # pragma: no cover (integration-tested with live Redis, not unit tests).
- Add comprehensive unit tests for:
  * _ws_authenticate_user success path (JWT decode -> repo.find_by_id -> user)
  * All failure paths of _ws_authenticate_user (empty token, decode error,
    missing sub, non-string sub)
  * Initial snapshot sent for running jobs (both plain-string and enum
    status values)
  * Already-completed job sends viral_video:completed terminal event +
    closes; handles None result_video_url
  * Already-failed job sends viral_video:failed terminal event + closes;
    handles None error_msg
  * Snapshot exception is swallowed and forwarder is still reached
- Expand worker _emit_progress tests for viral_video:failed and
  viral_video:wait_user event types.
- Dual-path SQLAlchemy patching (packages.adapters.sqlalchemy_impl.session
  AND packages.adapters.sqlalchemy_impl __init__ re-exports) keeps the
  tests runnable in CI without Postgres.

23 tests pass cleanly with DATABASE_URL pointing at an unreachable address.
2026-09-30 10:31:13 +08:00
..
2026-07-03 18:49:54 +08:00
2026-07-03 18:56:16 +08:00