Skip to content

test(kap-server): poll eventually-consistent session list reads - #12

Merged
7723qqq merged 1 commit into
mainfrom
test/poll-session-lists
Aug 24, 2026
Merged

test(kap-server): poll eventually-consistent session list reads#12
7723qqq merged 1 commit into
mainfrom
test/poll-session-lists

Conversation

@7723qqq

@7723qqq 7723qqq commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Related Issue

打磨续篇:sessions.test.ts 中剩余五处「创建/归档/删除后立即断言列表」与 PR #11 已修复的两处同族——读模型最终一致,CI 高负载下偶发读不到刚写入的会话。

Problem

五个用例在写操作后立即读列表断言,无重试。本会话中同族 flake 已实锤三次。

What changed

仅测试文件:五处「立即断言」改为 expect.poll 轮询重取列表(interval 1s),断言语义不变。涉及:

  • lists created sessions
  • supports exclude_empty
  • archive → normal/archived_only 双列表
  • workspace delete → session listed
  • degraded search → session listed

验证

  • sessions.test.ts 全量 69/69 通过。

Checklist

  • I have read the CONTRIBUTING document.
  • No changeset needed (test-only).

Wrap the remaining five create/archive/delete-then-list assertions in
sessions.test.ts with expect.poll — same eventual-consistency family as
the earlier restore and searchRoute fixes (CI flakes under load).
@7723qqq
7723qqq merged commit 0d49f9c into main Aug 24, 2026
15 of 16 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