STARDUSTLC666/dsh-flakefinder

STARDUSTLC666★ 0TypeScriptLast synced: 2026-08-15

Open on GitHub

DSH 测试稳定性插件:重复运行测试识别 flaky 用例,历史与隔离清单,零运行时依赖。

README excerpt

dsh-flakefinder 让 agent 分清「代码坏了」还是「测试在抽风」。 DeepSeek Harness 测试稳定性插件:重复运行测试并识别 flaky 用例,历史留档、隔离清单、写操作审批门。零运行时依赖。 工具 工具 作用 写操作 :-- :-- :-- flaky detect 重复运行测试 N 次,判定 stable-pass / stable-fail / flaky 否(写历史) flaky history 查询检测历史,按目标过滤 否 flaky report 汇总隔离清单 + 历史,输出稳定性报告 否 flaky quarantine 把 flaky 用例写入 .flakefinder.json 隔离清单 是(审批门) flaky clear 从隔离清单移除已恢复的用例 是(审批门) 支持框架: - vitest:读取 node modules/vitest/vitest.mjs ,使用 JSON reporter - jest:读取 node modules/jest/bin/jest.js ,使用 --json --outputFile - node:test: node --test --test-reporter=tap ,解析 TAP - framework: auto 按 vitest → jest → node:test 自动探测 安装 或手动安装后在 profile 的 cordis.patch.yml 插入: 使用示例 配置 字段 默认 说明 :-- :-- :-- defaultRuns 5 flaky detect 默认重复次数(3-20) maxRuns 20 单次允许的最大重复次数(3-50) timeoutMs 120000 单轮测试运行超时 graceMs 10000 超时后宽限 writeApproval true 隔离清单写操作是否走审批门 dataDir DSH HOME/.dsh-flakefinder 历史存储目录 quarantineFile /.flakefinder.json 隔离清单路径 隔离清单格式 隔离清单只记录,不修改测试源码;agent 跑测试前应先查阅 flaky report 。 工程 - Node = 22.13,TypeScript,零运行时依赖 - 测试进程走 DSH 官方 subprocess 服务,argv 数组、无 shell - 全量单测 30+:解析、判定、存储、审批门、注册与 manifest - pnpm test :构建 + node --test 发布门禁 1. pnpm test 全绿 2. pnpm typecheck 3. 危险模式扫描(eval / child process / 密钥零容忍) 4. 真实 profile 冒烟:全新临时 …

View full README on GitHub →
Media / Contentdeepseek-harnessdsh-pluginflaky-testtestingagent

Category