test(flake): 登记 FLK-003/004 并放宽渲染重用车道测试超时至 30s - #2180
Merged
Conversation
Co-authored-by: Cursor <cursor@vectorcontrol.tech>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Sep 1, 2026
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.
背景
两个已知超时 flake(均「全量并行负载下偶发红、单文件重跑稳定绿」):
sidebar.test.tsx› "round-trips task-052…"(Test timed out in 5000ms)App.v4.test.tsx› "enters a clean Desktop demo workbench…"(全量 5054 中唯一失败)根因同型:vitest 默认单测超时 5s,对渲染重型用例(完整
<App />+ 十余 mock hooks + 多段waitFor)在全量并行(jsdom 变慢)下预算不足——非功能 flake。变更
docs/governance/known-flaky.mdSSOT 纪律登记 FLK-003 / FLK-004(含车道、复现命令、到期复审日、处置记录),根因结论与修复同 PR 落地,状态「已修复(归档)」。app/workbench/vitest.config.ts、app/desktop/vitest.config.ts、app/desktop/vitest.desktop-ci.config.ts、app/desktop/vitest.desktop-tsx-ci.config.ts:显式testTimeout: 30_000 / hookTimeout: 30_000(对齐vitest.edge-real-ci.config.ts先例)。重试预算保持 0 不变(超时不是重试;预算表未触碰)。verify-doc-ssot.py:known-flaky.md 行数上限 120 → 170(登记两条后 161 行;该文件自身维护规则允许到 300 行再拆分归档)。验证
sidebar.test.tsx单文件 15/15、App.v4.test.tsx(tsx-ci config)14/14 全绿。git diff --check全绿。备注