test(kap-server): stabilize flaky list reads; silence vis plugin-timings - #11
Merged
Conversation
2 tasks
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.
Related Issue
合并后打磨二期:治理 kap-server 两个反复在 CI 时序失败的测试(本会话已重跑 3 次)。
Problem
两个测试在「创建/恢复会话」后立即断言列表内容,而列表读取走最终一致的读模型——CI 全量并发下偶发读不到新会话(本会话实锤 3 次:PR #9 两轮 + main 一轮),本地单跑必绿。
What changed
sessions.test.tsrestore 用例与searchRoute.test.tscold-resume 用例:把「立即断言列表包含/字段就绪」改为expect.poll轮询重取列表(interval 1s),只包住最终一致那一步,其余断言不变apps/vis/server/tsdown.config.ts:checks: { pluginTimings: false }关闭 rolldown 的插件耗时告警(dts 生成本身就慢,属预期噪音)验证
Checklist