fix tester multi-root fan-out execution

This commit is contained in:
2026-10-14 15:35:13 +08:00
parent fbf0ca8cd8
commit db92baf3a7
6 changed files with 370 additions and 15 deletions
+12 -2
View File
@@ -10,12 +10,21 @@
```yaml
bindings:
tester.test:
tester.android:
adapter: tester
location: local-app
profile: test-agent
tester.ios:
adapter: tester
location: remote-ios
profile: test-agent
```
`tester.android` / `tester.ios` 是推荐的平台绑定名。`builder.android`、`builder.ios`
只负责构建,不能被 tester 自动继承;这条边界用于防止 iOS 构建成功却仍在 Linux
上执行测试。`tester.test` 只能用于明确的单平台或非移动测试;同一轮包含 Android
和 iOS 时必须分别解析两个 tester 绑定。
`locations` 和 `profiles` 的定义见共享 `agent-runtime`。tester adapter 只把它 materialize
到本轮兼容配置;每轮 terminal 仍然新建并在结束时关闭,不能因为 binding 是 persistent
就复用测试 terminal。
@@ -54,7 +63,8 @@ terminal。
- Orca terminal id,例如 `term_...`;
- 不提供定位信息,使用当前项目。
有定位信息时优先使用解析脚本,避免手工拼接 Orca JSON:
有定位信息时优先使用解析脚本,避免手工拼接 Orca JSON。多平台运行要对每个
`tester.<platform>` 绑定分别解析,不能只解析一次 `tester.test` 后复用到所有平台:
```bash
python3 <skill-dir>/scripts/resolve_agent.py \