refactor(viewer): 截图视图 107 砍到 31,docs/shots 改为纯生成落点并取消跟踪
根因:以前只删图没用,一次性机位还挂在 arm/viewer/shot.py 的 VIEWS 里, 关卡一跑就在 docs/ 里原地复活 104 张。 - 删 76 条历史排查视图:user_*(17)、boss_p04..p07、hollow_p0x、p03_light_*、 p03_mount_*、bay_p0x_inside(含重复键)、tie_probe/after_*、j3_前端压盖_*、 view_yz_*、svg_*、p04/p05/p06/p07_*_side、zoom_user、shot_p08_user 等 - 保留 31 条真正在验查看器本身的:13 个机位/爆炸/姿态 + 9 个工程图·向导·运动模式 + 9 个线束(含 3 个 x-ray) - docs/shots 从跟踪里摘掉并写进 .gitignore;docs/ 现在只剩 json/svg/md/html,没有位图 - 基线同步为 20 张逐字节 + 11 张容差,与视图集合一一对应(无孤立基线、无缺基线的视图) - 修我自己在上一步改 shot.py 时误删的 os.makedirs(SHOTS, exist_ok=True) —— 目录不存在时 Edge 写不出 PNG,31 个视图全报 FAIL 0 字节 未做:完整关卡复核(截图两遍 + IK + 数据 md5)尚未跑,这次提交只保证名单自洽。
This commit is contained in:
+5
-15
@@ -29,21 +29,11 @@ webapp/generated/
|
||||
dist/
|
||||
data/cache/
|
||||
|
||||
# 这 6 张在同一份构建下不逐字节复现(抗锯齿/量化噪声),
|
||||
# 每次跑关卡都会改写它们;参考像素已存进 tests/baselines/flaky/,不再入库。
|
||||
docs/shots/harness_p04_p05_xray.png
|
||||
docs/shots/harness_p07_xray.png
|
||||
docs/shots/harness_xray_internal.png
|
||||
docs/shots/boss_p07.png
|
||||
docs/shots/m3_sheet_exploded.png
|
||||
docs/shots/p03_mount_loose.png
|
||||
docs/shots/m2_sheet_joint.png
|
||||
docs/shots/m1_sheet_front.png
|
||||
docs/shots/m4_sheet_side.png
|
||||
docs/shots/m5_guide_step1.png
|
||||
docs/shots/m6_guide_step5.png
|
||||
docs/shots/m7_sheet_blueprint.png
|
||||
docs/shots/m8_sheet_dark.png
|
||||
# 关卡截图落点 = 纯生成物:每次 `python -m tests.verify --shots` 由 shot.py 重写
|
||||
# (其中有 13 张在同一份构建下也不逐字节复现,抗锯齿/量化噪声)。
|
||||
# 比对的权威物在 tests/baselines/ —— shots_stable.md5 是 92 张的 md5 名单,
|
||||
# flaky/ 是那 13 张的参考像素 + thresholds.json 阈值;PNG 本身不需要入库。
|
||||
docs/shots/
|
||||
|
||||
# 其它编辑器的本地配置/会话残留(不是工程产物,也不该跟着版本走)
|
||||
.trae/
|
||||
|
||||
Reference in New Issue
Block a user