Skip to content

fix: stabilize background approvals and deploy main automatically - #10

Merged
Onweekendd merged 2 commits into
mainfrom
fix/background-approval-idle
Oct 25, 2026
Merged

Onweekendd merged 2 commits into
mainfrom
fix/background-approval-idle

Conversation

@Onweekendd

@Onweekendd Onweekendd commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

后台工具在前台回复结束后进入审批等待时,untilIdle 会把它从待处理任务列表移除,提前关闭流,导致 Release 中的审批恢复回归测试失败。此前测试没有固定事件顺序,因此 PR 检查可能通过,合并后再次失败。

现在将等待审批的后台任务保留在待处理列表中,继续接收恢复及最终结果;前台工具挂起时仍及时释放流,允许审批恢复队列继续执行。同步更新 ESM/CJS 补丁及锁文件。

Release 在 main 更新后自动执行检查、发布两个镜像,再备份数据库、迁移并部署生产服务器。本 PR 合并时即启用自动部署。手动运行仍可选择只发布镜像或同时部署;生产环境仅允许 main,同一分支串行发布,沿用已有备份、健康检查和应用回退。

验证:

  • 用受控 Promise 分别覆盖前台先结束、后台先挂起两种顺序,修复前可稳定复现失败。
  • 修复后审批恢复测试连续 5 轮通过,每轮 4 个用例。
  • 对话模块 12 个文件、76 个测试通过;修改的测试通过 ESLint/Prettier。
  • Mastra 修复的 GitHub CI 全部通过:全量类型检查和测试、前端镜像构建、服务端镜像构建及运行工具检查。GitGuardian 扫描通过。
  • 自动部署条件修改通过 actionlint;已确认 production 环境仅有分支限制,无人工审批规则。更新后的 PR 检查将重新运行。

@Onweekendd Onweekendd changed the title fix: keep background approval streams open until completion fix: stabilize background approvals and deploy main automatically Oct 25, 2026
@Onweekendd
Onweekendd merged commit 7cec659 into main Oct 25, 2026
2 checks passed
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.

1 participant