Skip to content

[test][P1] 规模、路由、预算、超时与并发的端到端覆盖 #252

Closed

Description

@codeasier

父 issue:#248

# 要测 依据 建议形态 现有部分覆盖
1 默认规模补齐模板:leak_detection 结果非零、block 跨片生命周期、freed_block_lifetime、active_* 加 include_static / offset #236 / #237 扩充 default_scale 参数,数据里放存活块和跨片 free test_dataset_scale_acceptance.py:133(leak 期望 0,无 freed_block_lifetime)
2 ATTACH 与 scratch 两条路由在真实规模(约 100 万生命周期、3–4 片及超 ATTACH 上限)下结果一致并都能完成,scratch 被清空 #237 / #245 夜间;同一产物强制两条路由 test_dataset_lifecycle_routing.py:34(仅 4096 边界)
3 深 offset + 预算,经 CLI / 环境变量子进程:非 ID 排序默认失败、--max-work-rows 调高后成功;ID 排序默认预算成功;参数 > 环境变量优先级 #239 / #244 / #246 子进程,100 万事件 test_query_limits.py:99(CliRunner,12 万事件)
4 超时与中途被杀:--timeout 在 CLI 层生效(退出码与提示);SIGKILL / SIGTERM 后 scratch / 临时库不残留、源文件不变 审阅风险项 子进程在 scratch 构建阶段发信号后扫描临时目录 仅进程内 timeout(test_contract_cli_api.py、test_cli_json.py),无 kill
5 并发:多进程 / 线程同时查询同一数据集;边查询边原地改写 审阅风险项 multiprocessing 2–4 worker,结果一致或确定的完整性错误 test_dataset_content_cache.py:169(单进程)
6 错误文本一致性:预算 / 超时 / ATTACH / scratch 失败在 CLI 文本、--json、API 中一致且前缀只一层 #240 / #242 子进程参数化 #242 的 test_contract_cli_api.py(CliRunner)

建议:6 每个 PR 跑;1–5 夜间跑。

Activity

  1. codeasier commented on Oct 11, 2026

    @codeasier
    OwnerAuthor

    验收关闭(2026-10-12):由 #259 + #261 合入。路由/预算/深 offset、查询世代防护、并发与信号相关覆盖已落地;SIGKILL 不保证清 scratch 的现状已在测试中写明。

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