Skip to content

[test][P0] free_requested 跨分片断言与 msinsight 3 片互操作 fixture #249

Closed

Description

@codeasier

父 issue:#248
关联:msinsight #625(Free Requested Event 跨片丢失,根因在 msinsight 读端只查当前分片)

现状

tests/snapshot/test_sharded_replay.py:66,122 只断言 freeEventId 指向 free_completed,没有任何测试覆盖 free_requested(action=5)事件在分片产物中的位置与可发现性。

要测

  1. alloc / free_requested / free_completed 分属三个分片时,free_requested 只写在拥有该事件 ID 的分片,且 id / stack / stream / caching 字段完整。
  2. 按 (address, allocEventId < id < freeEventId)(freeEventId < 0 时到设备末尾)在 manifest 候选分片中跨片查找,能唯一找到该 free_requested;地址复用时不误匹配。
  3. 导出一份小型 3 片 fixture(带 manifest)放入 tests/fixtures/interop/ 并做 provenance 登记,供 msinsight #625 修复后复测 Free Requested 面板。

建议形态

  • 用 lifecycle_data,events_per_slice=1,走 pt-snap import --format msinsight。
  • 对每片用与 msinsight 相同的 SQL 找回,断言只有拥有片命中、跨片查找结果唯一。
  • 每个 PR 跑(fixture 小、快)。

验收

  • 上述三项断言在 v1 compat 与 native 产物上均通过
  • fixture 已登记并在 docs/zh/interop-acceptance.md 中注明用途

Activity

  1. codeasier commented on Oct 11, 2026

    @codeasier
    OwnerAuthor

    验收关闭(2026-10-12):由 #256 合入 main(最终 07bdf660)。三分片 free_requested fixture、跨片定界 oracle 与「仅当前片」漏检对照已落地。msinsight 消费端仍见 #625。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions