Skip to content

T-1271 Cry Bot:InstaBox 活动租约 ttlSeconds 超过上限 3600 导致 PUT 400 - #77

Merged
crysound-it merged 1 commit into
mainfrom
T-1271-lease-ttl
Nov 16, 2026
Merged

crysound-it merged 1 commit into
mainfrom
T-1271-lease-ttl

Conversation

@crysound-it

Copy link
Copy Markdown
Contributor

台账任务

台账任务:T-1271

改了什么

改了什么:

  • docs/tasks/T-1200/T-1271-lease-ttl/report.md
  • docs/tasks/T-1200/T-1271-lease-ttl/verification.txt
  • server/instabox/computer-tools.e2e.test.ts
  • server/instabox/computer-tools.ts
  • server/testing/fake-instabox-tools.ts

为什么:

活动租约使用接口允许的最大时长 3600 秒,后台任务总时长仍由 2 小时的过期定时器控制。假接口现在拒绝超出 30–3600 秒范围的 TTL;测试覆盖首次 PUT、30 分钟续期 PUT 和超上限请求。

测试命令与结果摘要:

  • 依赖准备脚本:通过。
  • server/instabox 下 8 个非 e2e 测试文件:逐文件通过,共 68 项。
  • server/instabox 下 8 个 e2e 测试文件:逐文件连续三轮通过,共 339 项次;VNC 使用显式 Chromium 路径,三轮均 32 项通过。
  • pnpm exec tsc -p tsconfig.server.json:通过。
  • pnpm exec oxlint --deny-warnings server/instabox/computer-tools.ts server/instabox/computer-tools.e2e.test.ts server/testing/fake-instabox-tools.ts:通过,0 警告。
  • git diff --check:通过。

未提交 git。

验收证据

审核、安全审查和测试结论见本 PR 检查状态及评论。

风险与回退

待补充风险;合并后可通过 revert 压缩提交回退。

🤖 Generated with Claude Code

… limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@crysound-it
crysound-it marked this pull request as ready for review November 16, 2026 02:19
@crysound-it
crysound-it merged commit 54e14eb into main Nov 16, 2026
21 of 28 checks passed
@crysound-it
crysound-it deleted the T-1271-lease-ttl branch November 16, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants