Repository navigation
Fix release workspace test failures - #4980
Merged
Merged
Conversation
Collaborator
Author
Local verification reportEnvironment: macOS, Node v22.18.0, npm 10.9.3. Commands run locally: cd packages/cli && npx vitest run src/ui/utils/statsDataService.test.tsResult: passed, 17 tests. cd packages/core && npx vitest run src/utils/yaml-parser.test.tsResult: passed, 35 tests. npm run build && npm run typecheckResult: passed. The build step emitted existing VS Code companion lint warnings, but exited successfully; typecheck completed successfully. Scope note: I did not run the full workspace test suite locally or cross-platform local runs. |
tanzhenxin
marked this pull request as ready for review
June 11, 2026 02:12
Contributor
Code Coverage Summary
CLI Package - Full Text ReportCore Package - Full Text ReportFor detailed HTML reports, please see the 'coverage-reports-22.x-ubuntu-latest' artifact from the main CI run. |
tanzhenxin
enabled auto-merge (squash)
June 11, 2026 02:42
DragonnZhang
added a commit
that referenced
this pull request
Jun 11, 2026
Clean merge — brings in main's fix for the yaml-parser 'known limitations' pin tests so the Test suite is green against current main.
DragonnZhang
added a commit
that referenced
this pull request
Jun 11, 2026
Clean merge — brings in main's yaml-parser pin-test fix so this docs PR's Test suite is green against current main.
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.
What this PR does
This PR fixes the scheduled Release workflow workspace-test failures by making the stats delta test independent of the time of day and by updating the YAML parser assertions to match the parser behavior currently on
main.It also removes a stale internal comment that still described the YAML parser migration as future work.
Why it's needed
The failed CI run was Release / Quality Checks #27315318446. It failed in two places: the stats test created a “today” record one hour after midnight, which is a future timestamp when CI runs shortly after midnight, and the YAML parser tests expected nested YAML to be garbled even though the parser now uses the full
yamlpackage.The stats regression came from #4779. The stale YAML expectations came from #4842, after #4870 had already added full YAML parser support.
Reviewer Test Plan
How to verify
Confirm the targeted tests pass and that the broader build/typecheck gate still succeeds. The relevant local checks are
cd packages/cli && npx vitest run src/ui/utils/statsDataService.test.ts,cd packages/core && npx vitest run src/utils/yaml-parser.test.ts, andnpm run build && npm run typecheck.Evidence (Before & After)
Before: the scheduled Release run failed with
expected -100 to be close to +0in the stats delta test and two YAML parser expectation failures for nestedmcpServers/hooksinput.After: the targeted stats and YAML parser test files pass locally, and
npm run build && npm run typecheckexits successfully.Tested on
Environment (optional)
Node v22.18.0, npm 10.9.3.
Risk & Scope
Linked Issues
References #4779, #4842, and failed CI run 27315318446.
中文说明
What this PR does
这个 PR 修复了定时 Release 工作流中的 workspace 测试失败:一处是让 stats delta 测试不再依赖当天的具体时间,另一处是把 YAML parser 的断言更新为当前
main分支上真实的解析行为。它还移除了一个过期的内部注释,该注释仍然把 YAML parser 迁移描述成未来工作。
Why it's needed
失败的 CI 运行是 Release / Quality Checks #27315318446。它有两处失败:stats 测试把 “today” 记录放在午夜后一小时,因此当 CI 在午夜后不久运行时这个时间戳仍然属于未来;YAML parser 测试则仍然预期嵌套 YAML 会被错误解析,但当前 parser 已经使用完整的
yaml包。stats 回归来自 #4779。过期的 YAML 断言来自 #4842,而 #4870 已经在此之前加入了完整 YAML parser 支持。
Reviewer Test Plan
How to verify
确认相关的定向测试通过,并确认更广的 build/typecheck 门禁仍然成功。对应的本地检查是
cd packages/cli && npx vitest run src/ui/utils/statsDataService.test.ts、cd packages/core && npx vitest run src/utils/yaml-parser.test.ts和npm run build && npm run typecheck。Evidence (Before & After)
Before:定时 Release 运行中,stats delta 测试失败为
expected -100 to be close to +0,并且嵌套mcpServers/hooks输入的两个 YAML parser 期望失败。After:本地定向 stats 和 YAML parser 测试文件通过,且
npm run build && npm run typecheck成功退出。Tested on
Environment (optional)
Node v22.18.0,npm 10.9.3。
Risk & Scope
Linked Issues
引用 #4779、#4842,以及失败的 CI 运行 27315318446。