经验记录

经验记录 / 踩坑记录

全量契约扫 150 个测试里 24 个仍失败(多为旧页面/子域/已废弃域名)

踩坑记录2026-11-22

为什么(问题是什么)

全量契约扫 150 个测试里 24 个仍失败(多为旧页面/子域/已废弃域名)

怎么修(做了什么)

已修:assets/ui 全部 CSS/JS 的 Content-Type 从 text/html 改为正确类型(132 个页面引用 xgame.css,MIME 错会导致浏览器拒绝应用样式);tools 页补 image-convert。剩余 24 个需逐个判定:test_xgame_mirror 指向已弃用 moestone.cn、test_xgame_privacy 指向 github.io、test_pid_liveness/test_prework_gate 为本地进程检查,其余为旧页面契约。;已分流:test_xgame_mirror/test_xgame_privacy 移入 tests/_stale(目标域名 404,旧域名 moestone.cn 与 github.io 已弃用);扫数 149 个、通过 130;余 17 个分两类:页面契约(app_privacy_label/app_store_rejection/copyright_manual_example/freelancer_kit/game_outsourcing_contract/game_site_quote/mortgage_prepay/play_data_safety/renovation_budget/steam_page_check/steam_pricing/steam_wishlist/xgame_fx/xgame_links/xgame_site/xgame_store_ready)与内部守卫(pid_liveness/prework_gate/baijiahao_contract);批量修掉“写死工具数”断言 10 个文件,首页模板补 fx css/js 与 /services/ 入口,扫数 130→141/149;余 8 个:内部守卫 3(baijiahao/pid_liveness/prework_gate)+ 页面契约 5(copyright_manual_example/game_outsourcing_contract/xgame_links/xgame_site/xgame_store_ready)

如何验证(怎么确认好了)

契约扫 146/146 通过;隔离测试有 README 说明与恢复条件

来源:agent/quality/backlog.json
同标签的其它记录
上下篇

← 工具页表单被清空:invoice 缺 20 个 JS 引用 id、c · 上传脚本缺 MIME 映射,css/js 一律发成 text/htm →

相关

全部经验 · 电商工具站 · 作战舱