Skip to content

Commit c2b20be

Browse files
committed
docs: 记录小程序步骤偶发卡住+自动重试修复
1 parent 92d1727 commit c2b20be

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

开发备忘录.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2751,6 +2751,16 @@ v13.2的提交本身**不应导致测试卡住**。可能的原因:
27512751

27522752
**提交**`bc80ce4` fix: 修复小程序测试stdout/stderr死锁 + HTTP请求加10分钟超时
27532753

2754+
#### 小程序步骤偶发卡住+自动重试
2755+
**问题**:第2步偶尔卡住不动,但重跑就正常。典型的automator连接时序问题——`reLaunch`后页面刷新,automator的page引用短暂失效,`currentPage()``page.$()`挂起。
2756+
2757+
**修复**`miniprogram_runner.js`):每步加15秒整体超时 + 自动重试1次:
2758+
- 正常执行 → 15秒超时保护
2759+
- 超时 → 等1秒让连接恢复 → 重试(20秒超时)
2760+
- 重试也失败 → 标记failed,继续执行后续步骤
2761+
2762+
**提交**`92d1727` fix: 小程序每步加15秒超时+自动重试
2763+
27542764
### 17.7 弹窗自愈机制(三层防御)—— 待实现
27552765

27562766
详见13.21节的设计。优先级:

0 commit comments

Comments
 (0)