fix(#1743): 批量变体独立选片——完整重跑单视频选片+批次20%重叠避让+查重超阈重渲+封面独立 (#1745)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 2s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 2s
CI/CD Pipeline / Check push changed paths (push) Successful in 9s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 22s
CI/CD Pipeline / Build Staging API Image (push) Successful in 38s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 1m59s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 33s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 2m23s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m24s
CI/CD Pipeline / Integration Tests (push) Successful in 2m40s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 2m31s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m16s
CI/CD Pipeline / CI Gate (pull_request) Successful in 3s
CI/CD Pipeline / Validate - Style (push) Successful in 3m6s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 47s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m42s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m48s
CI/CD Pipeline / Validate - Security (push) Successful in 5m28s
AI Code Review / AI Code Review (pull_request) Failing after 5m35s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 6m5s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 4m22s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 5m6s
CI/CD Pipeline / Unit Tests (push) Successful in 8m54s
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Canary Release to Production (push) Failing after 237h7m46s
CI/CD Pipeline / Deploy Production (push) Failing after 237h7m46s
CI/CD Pipeline / CI Gate (push) Failing after 237h7m57s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 237h7m57s
CI/CD Pipeline / Build Production API Image (push) Failing after 237h7m58s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 237h13m3s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 237h14m5s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 237h14m6s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 237h14m46s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 237h14m56s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 237h15m1s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 237h16m28s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 237h15m5s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 237h16m28s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 237h16m47s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 237h16m47s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 237h16m51s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 237h16m51s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 237h16m51s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Failing after 237h16m52s
CI/CD Pipeline / Frontend Lint (push) Failing after 237h16m54s
CI/CD Pipeline / Validate - Security (pull_request) Failing after 237h16m52s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 237h16m55s
CI/CD Pipeline / Validate - Style (pull_request) Failing after 237h16m53s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 237h16m56s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 237h16m55s
CI/CD Pipeline / PR Build Web Image (push) Failing after 237h16m56s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 237h16m55s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 237h16m57s
CI/CD Pipeline / PR Build API Image (push) Failing after 237h16m56s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 237h16m58s
CI/CD Pipeline / Build Production Web Image (push) Failing after 237h42m33s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 237h48m42s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 237h49m29s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 237h49m56s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 237h51m4s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 237h51m23s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 237h51m27s

Co-authored-by: xiaoxia <dev@xiaoxiajianji.com>
Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
This commit was merged in pull request #1745.
This commit is contained in:
2026-09-06 18:07:24 +08:00
committed by auto-approve-bot
parent 6638f8b29e
commit 0469272bd6
16 changed files with 1893 additions and 204 deletions
+14 -4
View File
@@ -85,7 +85,10 @@ class TestTwoPhaseCommit:
session=session,
)
assert result == 1
# #1743:返回值由 int 改为 dict(含批次查重信息)
assert isinstance(result, dict)
assert result["video_count"] == 1
assert result["batch_similarity"] is None # 非批次任务无批次相似度
# create() should be called exactly once with the complete video object
mock_repo.create.assert_called_once()
created_video = mock_repo.create.call_args[0][0]
@@ -122,7 +125,10 @@ class TestTwoPhaseCommit:
session=session,
)
assert result == 1
# #1743:返回值由 int 改为 dict(含批次查重信息)
assert isinstance(result, dict)
assert result["video_count"] == 1
assert result["batch_similarity"] is None # 非批次任务无批次相似度
mock_repo.create.assert_called_once()
created_video = mock_repo.create.call_args[0][0]
assert created_video.duplicate_rate is None
@@ -161,7 +167,10 @@ class TestTwoPhaseCommit:
session=session,
)
assert result == 1
# #1743:返回值由 int 改为 dict(含批次查重信息)
assert isinstance(result, dict)
assert result["video_count"] == 1
assert result["batch_similarity"] is None # 非批次任务无批次相似度
mock_repo.create.assert_called_once()
created_video = mock_repo.create.call_args[0][0]
# Fingerprint should be set
@@ -229,6 +238,7 @@ class TestTwoPhaseCommit:
session=session,
)
assert result == 0
# #1743:失败路径返回 dict(video_count=0)
assert result["video_count"] == 0
session.commit.assert_not_called()
session.rollback.assert_called_once()