Repository navigation
test(codex-app): 引擎身份用例等 attestation 到达再断言,修 gap-restart 偶发 - #2597
Merged
Merged
Conversation
… ack 赛跑 Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
October 30, 2026 09:45
This was referenced Oct 30, 2026
|
@deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。 这次运行覆盖 89a9cea…22d1c8d0b(20 个提交),同批合入的还有 #2546 #2556 #2589 #2591 #2545 #2538 #2595 #2596 #2581 #2539 #2598 #2515 #2536 #2575 #2366 #2606 #2544 #2593 #2603,失败不一定由本 PR 引起。
|
This was referenced Oct 30, 2026
|
🚀 Released in v3.56.0 |
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.
改了什么
修
test/worker-codex-app-turn-routing.integration.test.ts里「Codex App worker engine identity」一组用例的偶发失败。#2548 的 CI 上,test (4/4)红在handles signed engine states on one connection: gap-restart:根因:测试把两条互不保序的通道当成了有序。
local_process_attestation走 worker → 测试进程的 IPC。ack === 3就立刻断言「最后一条 attestation 是新引擎」,于是读到的是上一条(gap 阶段那条没有 enginePid 的)。restart模式结构相同(等 ack 2),同样会受影响。修法(只改测试,不改产品代码):
restart/gap-restart:先waitFor最后一条 attestation 的enginePid变成新引擎,再做原来的断言。断言内容一条没改。changed/dropped:等子进程退出后,用vi.waitFor等error消息到达,再断言。产品侧不需要改:daemon 依赖的是 worker IPC 内部的顺序(同一通道有序),不依赖它和 runner socket 之间的先后。
测试
changed / dropped / restart / gap-restart4 例失败,失败位置和 CI 上的断言一致;修复后,同样加延迟 5/5 通过。探针代码已删,没有提交。Tests 5 passed)。影响面
只改了一个测试文件,没有产品代码改动。
🤖 Generated with Claude Code