chore(worker): BGM preset diagnostics + upload helper #2094
Reference in New Issue
Block a user
Delete Branch "chore/preset-bgm-audio-upload-helper"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
预设BGM 的 audio_url 全部为空,渲染时日志只能看到「所有来源都无法获取BGM,跳过」,无法快速定位是哪种来源(audio_url/asset_id/preset_id)出问题。同时缺少一个方便运维把音频文件上传到 OSS 并回填 URL 的工具。
改动
_prepare_bgm优化日志:preset/bgm/,设置 public-read ACL不在本 PR
音频文件本身由运维/设计同学准备,本 PR 不包含任何 mp3 文件。上传操作在有 OSS 凭证的环境执行。
- _prepare_bgm preset branch now differentiates: preset not found / preset exists but audio_url empty (未部署) / download failure, with a clear hint to ops to upload audio and fill preset_bgm.py - final warning now surfaces enabled/audio_url/asset_id/preset_id state so triage is immediate - add scripts/upload_preset_bgm.py: one-shot uploader that uploads mp3s from ./bgm_assets/{preset_id}.mp3 to OSS preset/bgm/, sets public-read ACL, and rewrites packages/domain/preset_bgm.py with the public URL. Dry-run supported. - add bgm_assets/README.md with the 10-preset file naming table🚀 预览环境已部署
🗑️ 预览环境已清理
PR #2094 已关闭或合并,对应的预览环境已被清理。