Merge pull request 'fix: 补充 auto-format 格式修复到 main' (#1700) from fix/style-main-sync into main
CI/CD Pipeline / Production Browser E2E (push) Failing after 31m51s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 2s
CI/CD Pipeline / Validate - Style (push) Successful in 2m31s
CI/CD Pipeline / Validate - Security (push) Successful in 13m36s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 4m18s
CI/CD Pipeline / Unit Tests (push) Successful in 9m34s
CI/CD Pipeline / Integration Tests (push) Successful in 1m53s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 5m22s
CI/CD Pipeline / Check push changed paths (push) Successful in 29s
CI/CD Pipeline / Build Staging API Image (push) Successful in 20s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 24s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 33s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 2m0s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 4m15s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m22s
CI/CD Pipeline / Build Production API Image (push) Successful in 15s
CI/CD Pipeline / Build Production Web Image (push) Successful in 14s
CI/CD Pipeline / Build Production Worker Image (push) Successful in 13s
CI/CD Pipeline / Deploy Production (push) Successful in 50s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m25s
CI/CD Pipeline / Canary Release to Production (push) Failing after 30m29s
CI/CD Pipeline / CI Gate (push) Failing after 279h17m13s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 279h29m48s
CI/CD Pipeline / Frontend Lint (push) Failing after 279h30m51s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 279h29m49s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 279h30m56s
CI/CD Pipeline / PR Build Web Image (push) Failing after 279h30m56s
CI/CD Pipeline / PR Build API Image (push) Failing after 279h30m56s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 279h30m58s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 280h4m18s
CI/CD Pipeline / Production Browser E2E (push) Failing after 31m51s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 2s
CI/CD Pipeline / Validate - Style (push) Successful in 2m31s
CI/CD Pipeline / Validate - Security (push) Successful in 13m36s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 4m18s
CI/CD Pipeline / Unit Tests (push) Successful in 9m34s
CI/CD Pipeline / Integration Tests (push) Successful in 1m53s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 5m22s
CI/CD Pipeline / Check push changed paths (push) Successful in 29s
CI/CD Pipeline / Build Staging API Image (push) Successful in 20s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 24s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 33s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 2m0s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 4m15s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m22s
CI/CD Pipeline / Build Production API Image (push) Successful in 15s
CI/CD Pipeline / Build Production Web Image (push) Successful in 14s
CI/CD Pipeline / Build Production Worker Image (push) Successful in 13s
CI/CD Pipeline / Deploy Production (push) Successful in 50s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m25s
CI/CD Pipeline / Canary Release to Production (push) Failing after 30m29s
CI/CD Pipeline / CI Gate (push) Failing after 279h17m13s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 279h29m48s
CI/CD Pipeline / Frontend Lint (push) Failing after 279h30m51s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 279h29m49s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 279h30m56s
CI/CD Pipeline / PR Build Web Image (push) Failing after 279h30m56s
CI/CD Pipeline / PR Build API Image (push) Failing after 279h30m56s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 279h30m58s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 280h4m18s
This commit was merged in pull request #1700.
This commit is contained in:
@@ -191,18 +191,23 @@ class TestComputeDuplicateRateFormula:
|
||||
deduplicator = VideoDeduplicator()
|
||||
# 10 frames with varied phashes (2 unique) → not bad fingerprint
|
||||
# All close in hamming distance to existing → frame_match_rate = 1.0
|
||||
phashes = (["aa00aa00aa00aa00", "ab00ab00ab00ab00"] * 5)
|
||||
phashes = ["aa00aa00aa00aa00", "ab00ab00ab00ab00"] * 5
|
||||
fingerprint = _make_fingerprint(md5="new", phashes=phashes, duration_ms=20000)
|
||||
session = MagicMock()
|
||||
|
||||
# 5 unique phashes to pass _is_bad_fingerprint check (PR #1688)
|
||||
existing = _make_video(
|
||||
"vid2",
|
||||
{"md5": "other", "keyframe_phashes": [
|
||||
"aa00aa00aa00aa00", "ab00ab00ab00ab00",
|
||||
"ac00ac00ac00ac00", "aa10aa10aa10aa10",
|
||||
"ba00ba00ba00ba00",
|
||||
]},
|
||||
{
|
||||
"md5": "other",
|
||||
"keyframe_phashes": [
|
||||
"aa00aa00aa00aa00",
|
||||
"ab00ab00ab00ab00",
|
||||
"ac00ac00ac00ac00",
|
||||
"aa10aa10aa10aa10",
|
||||
"ba00ba00ba00ba00",
|
||||
],
|
||||
},
|
||||
)
|
||||
|
||||
with patch("video_processing.dedup.SQLAlchemyGeneratedVideoRepository") as MockRepo:
|
||||
|
||||
Reference in New Issue
Block a user