style: auto-format with black + isort + ruff + prettier [skip ci-format-check]
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 5s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 5s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 23s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 26s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 46s
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 28s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 1m5s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 1m36s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m37s
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 / Unit 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 / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
AI Code Review / AI Code Review (pull_request) Has been cancelled
PR Automation / Auto Approve on CI Green (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 61h58m1s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 61h58m57s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 61h58m29s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 61h58m29s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 61h58m31s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 61h58m32s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 61h57m35s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 61h57m36s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 61h57m38s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 61h58m34s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 62h33m49s

This commit is contained in:
CI Bot
2026-09-13 17:24:37 +00:00
parent ebef63e0db
commit adcb01e97d
+3 -5
View File
@@ -913,12 +913,12 @@ class EditPlanService:
plan_ids: list[str] = []
# #1855 P0:先确定片段数 clip_count(用于节奏模板生成长度匹配)
from packages.domain.voice_duration_planner import RHYTHM_TEMPLATES, adapt_template_length
from packages.domain.bgm_pool import allocate_bgm_pool_for_variants
from packages.domain.variant_plan_selector import (
generate_visual_perturbation,
generate_pixel_perturbation,
generate_visual_perturbation,
)
from packages.domain.voice_duration_planner import RHYTHM_TEMPLATES, adapt_template_length
clip_count = 0
# 从源 plan 获取片段数(分页读,避免关系加载问题)
@@ -939,9 +939,7 @@ class EditPlanService:
for _idx in range(count):
if clip_count > 0:
variant_seed = rng.randint(0, 999999)
_tpl = adapt_template_length(
RHYTHM_TEMPLATES[variant_seed % len(RHYTHM_TEMPLATES)], clip_count
)
_tpl = adapt_template_length(RHYTHM_TEMPLATES[variant_seed % len(RHYTHM_TEMPLATES)], clip_count)
rhythm_templates_for_variants.append(_tpl)
else:
rhythm_templates_for_variants.append(None)