Skip to content

[Bug] CI UT 整体超时 60 分钟:pkg/sql/plan race 测试未完成就被 timeout kill #26701

Description

@Ariznawlll

环境

Field Value
PR #26430
CI Run https://github.com/matrixorigin/matrixone/actions/runs/30891209862/job/91933473903
Runner amd64-mo-shanghai-8c16g

问题

UT 整体在 Makefile 中设了 timeout 60m,执行到 pkg/sql/plan race 测试 shard 1/8 时触发 60 分钟超时,被 timeout 命令 kill(exit code 124)。

08:29:48  UT 开始 (race check)
08:30:02  Run light race-test packages (parallelism 6)
09:15:23  Run exclusive race-test packages serially
09:25:04  Run heavy race-test packages (parallelism 3)
09:29:42  Run pkg/sql/plan race shard 1/8 (1531 tests, 192 tests/shard)
09:29:44  make: *** [Makefile:388: ut] Error 124  ← 60 分钟超时

分析

  • PR test: add Data Branch issue BVT coverage #26430 没有修改 pkg/sql/plan,不是 PR 引入的
  • pkg/sql/plan 有 1531 个测试,分成 8 个 shard,仅跑到 shard 1/8 就超时了
  • 之前的 light/exclusive/heavy 测试已经用了 ~55 分钟,留给 sql/plan 的时间不够
  • 这是 UT 整体时间膨胀的问题,不是某个测试特别慢

Makefile 超时设置

@cd optools && timeout 60m ./run_ut.sh UT $(SKIP_TEST)

建议

  1. 加大整体超时至 90 分钟或 120 分钟
  2. 或者减少 pkg/sql/plan 的测试数量 / 分更多 shard
  3. 或者优化 heavy race-test 的执行时间

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions