Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
tanbro
marked this pull request as draft
September 7, 2026 01:03
tanbro
marked this pull request as ready for review
September 7, 2026 01:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
后端与前端测试在同一 Bun 进程内运行,部分既有测试会修改进程级 singleton、异步启动 cleanup,或直接覆盖 repository class instance 方法。测试文件顺序变化后,这些状态可能进入下一文件,造成单文件通过、全量随机失败:
ws://second.invalid/ws;I18nextProvider包装为<div>的 module mock。本 PR 修复状态所有权与完成边界,不通过固定测试顺序或放宽断言规避问题。
与 PR #259 的关系
本 PR 是 #259(App Builder)的前置稳定性修复,自身不包含 App Builder 实现。
#259 增加测试文件后改变了 fresh checkout 中未排序文件列表的枚举结果,从而暴露上述 main 既有状态泄漏;这些失败不由 App Builder 的 Runtime、Profile 或 route 装配引起。为保持 #259 的评审边界清晰,相关修复从该分支独立出来。
合并顺序:
main;feat/app-builder-foundation同步最新main;主要变更
stopHermesClient():停止资源时解除仍属于目标实例的 singleton 引用;释放旧实例不会误清后来替换的新实例。originals快照。workflow-params-outputs-flow中重复的react-i18nextmodule mock,复用统一 preload seam。边界
验证
本机默认 Bun 1.4.2:
bun run build:web:通过bun install --frozen-lockfile:通过,no changesbun run lint:通过,0 warningbun run precheck:8212 pass / 0 fail,全部步骤通过CI 固定 Bun 1.3.14:
bun run precheck:8212 pass / 0 fail,全部步骤通过🤖 Generated with Claude Code