Test/full suite stability - #36
Closed
HarriethWiKk wants to merge 3 commits into
Closed
Conversation
…值与真实间隔,固定 sleep 改轮询;公开仓缺失资产(desktop 树、skill 文档)改存在性 skip;abort-hang 收尾预算 1s→5s 防满载误杀。15761 测试 fail 0。
HarriethWiKk
marked this pull request as ready for review
August 14, 2026 12:34
Owner
|
感谢贡献!通用测试稳定性修复已全部移植到开发仓库并同步到公开仓库(sync 236a44b),共 13 个文件:
其中 manager-editor 的 snapshot 断言修复还顺带解决了上游一个真实红测试(getApprovalConfig 已含 unsandboxed 字段)。 未移植的部分(structure-gate 行数基线更新、env-registry 重新生成、desktop/knowledge 存在性 skip 类)是公开仓特有适配——开发仓库含 src/pro 与 desktop/,基线值不同,这部分将在公开仓侧随后续适配处理。 再次感谢,期待更多贡献! |
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.
变更摘要
修复公开仓全量测试的环境与时序不确定性,并对齐最新上游的公开仓守卫元数据,使
npm test在干净公开仓、WSL2/Linux 与高负载环境下稳定通过。动机
全量测试依赖了若干未显式声明的前提:文件系统时间戳精度、固定等待时间、私有仓才存在的资产、工作树内过深的临时目录,以及预先存在的
.rivet/plans目录。同步到最新
upstream/main后,还暴露出公开仓已移除src/pro后残留的行数基线、未同步的RIVET_PROFILEregistry 条目,以及测试对 abort drain 和 approval snapshot 的旧契约假设。这些问题会让公开仓在生产代码未回归时出现测试失败。本 PR 仅修复测试前提与公开仓守卫元数据,不修改产品行为、测试目的或断言成功标准。
主要改动
src/tools/__tests__/run-tests.test.tstsxUnix socket pathname 超限。RUN_TESTS_TOOL的发现、执行、过滤、失败处理和 verification 断言。src/tools/__tests__/plan-task.test.ts.rivet/plans。测试稳定性与公开仓适配
utimes、状态轮询和与生产 abort drain 对齐的观察窗口,消除文件系统精度和事件循环调度造成的假失败。src/pro/computer-use/*的行数基线,并更新上游已增长文件的现值。RIVET_PROFILE并清除公开仓不存在源码的RIVET_CU_*条目。测试
npm testnpm run typecheck检查清单
npm test通过npx tsc --noEmit无类型错误(npm run typecheck通过)相关 Issue
无。