Switchbot: sbtest isolated test cluster scripts + live test results

tools/server/sbtest/{setup,restart,rollback}.sh build and manage the isolated
203 test cluster (db :15040, auth :11040, channel5 on *_sb schemas with the
unlocked AVA2 protos). Docs record the channel5/sbtest switchbot results:
weapon, ring, talisman, relog (cache + MySQL), same-core warp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-16 23:03:07 +09:00
co-authored by Claude Opus 5.5
parent 99cf5514c3
commit 657e49e52a
6 changed files with 163 additions and 3 deletions
+7 -1
View File
@@ -48,9 +48,15 @@
- `tests/wiki/test_item_actions.py` 已更新:50348/50349 走原来的使用流程。
- 脚本能在 Python 2.7 下编译。macOS 构建(`build/switchbot-check`,关闭 MeshPort)通过,ctest 52 项全过(7 项跳过,和之前一样)。
- 服务端 `tests/features/test_switchbot.py` 同时检查客户端 `Packet.h`、`PythonSwitchbot.h` 和版本字符串。
- 联机测试(2026-10-16,Mac 客户端 + 203 的 channel5,脚本驱动):
- 武器(channel5 连线上 db):放入、拖回、开始和停止、洗到目标自动结束、洗练中拖出被拒绝、放入无效物品被拒绝;约 12 次/秒,ItemLog 记录数和消耗数一致。
- 戒指和护符(`tools/server/sbtest` 隔离环境,解锁后的 proto):戒指用戒指属性池(20 条),消耗 71084;护符用护符属性池,只消耗 71302。两边都能洗到目标。
- 重新登录:物品和属性保留(从 db 缓存读和重启后从 MySQL 读都测过,`window=SWITCHBOT`);洗练停止,目标清空,和 AVA2 一样(下线时 `UnregisterItem`)。
- 同核心换地图(1 → 21 → 1):传送后接着洗,目标保留,只在传送时暂停一下,和 AVA2 一样。
## 未完成
- 联机测试:channel5 或部署后的 CH1。203 正式环境还是 v1,服务端和客户端要一起部署。
- 跨核心换线(P2P 转移)的联机测试:测试环境只有一个核心。
- 部署:203 正式环境还是 v1。戒指和护符要整个 feature/ava2-unlock(含解锁后的 proto)一起上线,服务端和客户端也要一起部署。
- Android 构建和真机测试。
- 属性锁定界面(AVA2 拖 50348/50349,并在物品提示里显示锁定)。