Persist/coordinator event sourcing#286
Closed
James-FE wants to merge 4 commits into
Closed
Conversation
…blackboard rewrite
afterEach now clears CLAUDE_CODE_USE_OPENAI / CLAUDE_CODE_USE_GEMINI / CLAUDE_CODE_USE_GROK so external env vars don't hijack adapter selection. Fixes CI test failures when these flags leak into the test environment.
Previously tail -30 truncated failures that appeared before the summary. Now grep for (fail) markers when tests fail, so we can see what broke.
…te failures Every mock.module() now imports the real module first and spreads all exports, then overrides only the specific functions the test controls. Fixes 'Export named X not found' errors in isolate mode when transitive imports need exports not listed in the partial mock. CI has been failing since June 11 macOS runner update exposed this. 3979 pass, 0 fail in both normal and --isolate modes.
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.
repair CI。
总结:CI 挂了 3 天,根因是
LocalAgentTask.test.ts里 11 个mock.module()都只提供了部分导出,--isolate模式的独立 worker 里传递依赖找不到完整的模块导出就崩了。6月11日 GitHub 更新 macOS runner 镜像后暴露了这个缺陷(之前在 Linux 本地也不挂因为全局模块缓存救了一命)。Codex 的修复:每个 mock 先
await import()真实模块拿到全部导出,...RealModule做基底,只覆写测试需要改的几个函数。3979 pass / 0 fail。