Files
headlineScript/scripts/regress-stats.ps1
T

29 lines
2.1 KiB
PowerShell
Raw Normal View History

# 浩瑞回归统计(回归清单 §五 判据)
# 用法:powershell -File scripts\regress-stats.ps1 <regression.txt>
param([string]$LogPath = ".tmp\regression.txt")
$L = Get-Content $LogPath
"═══ 硬门禁 ═══"
"1 采集相位循环 : " + ($L | Select-String -Pattern "相位 SHARE -> CLIPBOARD").Count
"2 取到链接 : " + ($L | Select-String -Pattern "CLIPBOARD\] 取到链接").Count
"3 解析成功 : " + ($L | Select-String -Pattern "Resolver: 解析成功").Count
"4 VOD 主路径 : " + ($L | Select-String -Pattern "发现 GetPlayInfoToken").Count
"5 下载完成 : " + ($L | Select-String -Pattern "Download: 下载完成").Count
"6 下载不完整 : " + ($L | Select-String -Pattern "下载不完整").Count + " / 非MP4: " + ($L | Select-String -Pattern "下载内容非 MP4").Count
"7 发布完成 : " + ($L | Select-String -Pattern "\[DONE\] 发布成功").Count
"8 发布失败 : " + ($L | Select-String -Pattern "发布失败").Count + " / 回执: " + ($L | Select-String -Pattern "收到「.*」回执").Count
"9 去重拦截 : " + ($L | Select-String -Pattern "跳过重复视频").Count
"10 让路 : " + ($L | Select-String -Pattern "让路").Count
"═══ 软门禁 ═══"
"S4 step 异常 : " + ($L | Select-String -Pattern "step 异常").Count
"S5 step 跳过 : " + ($L | Select-String -Pattern "step 跳过").Count
"S6 放弃/超限 : " + ($L | Select-String -Pattern "放弃").Count
"═══ 新增判据(本轮) ═══"
"草稿回执 : " + ($L | Select-String -Pattern "收到「存草稿」回执|草稿模式").Count
"发布模式 : " + ($L | Select-String -Pattern "发布模式切换").Count
"门控放行 : " + ($L | Select-String -Pattern "门槛 60 → 放行|→ 放行").Count
"互动相位 : " + ($L | Select-String -Pattern "HaoRui-Interact").Count
"孤儿回收 : " + ($L | Select-String -Pattern "孤儿素材回收").Count
"═══ 心跳/自愈 ═══"
"自愈监控 : " + ($L | Select-String -Pattern "自愈监控 #").Count
"心跳(如适用): " + ($L | Select-String -Pattern "心跳").Count