dsh-flakefinder 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -87,7 +87,7 @@ Agent:
87
87
 
88
88
  - Node >= 22.13,TypeScript,零运行时依赖
89
89
  - 测试进程走 DSH 官方 subprocess 服务,argv 数组、无 shell
90
- - 全量单测 35+:解析、判定、存储、审批门、pytest 计划、注册与 manifest
90
+ - 全量单测 37+:解析、判定、存储、审批门、pytest 计划、subprocess 超时、注册与 manifest
91
91
  - `pnpm test`:构建 + `node --test`
92
92
 
93
93
  ## 发布门禁
package/lib/runner.js CHANGED
@@ -26,14 +26,14 @@ export function createSubprocessRunner(spawn, graceMs, defaultTimeoutMs) {
26
26
  graceMs,
27
27
  signal: controller.signal,
28
28
  });
29
+ const outcome = await handle.done;
30
+ const stdout = handle.collected.stdout?.readFrom(0).text ?? '';
31
+ const stderr = handle.collected.stderr?.readFrom(0).text ?? '';
32
+ return { exitCode: outcome.exitCode, signal: outcome.signal, stdout, stderr };
29
33
  }
30
34
  finally {
31
35
  clearTimeout(timer);
32
36
  }
33
- const outcome = await handle.done;
34
- const stdout = handle.collected.stdout?.readFrom(0).text ?? '';
35
- const stderr = handle.collected.stderr?.readFrom(0).text ?? '';
36
- return { exitCode: outcome.exitCode, signal: outcome.signal, stdout, stderr };
37
37
  },
38
38
  };
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-flakefinder",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "DSH 测试稳定性插件:flaky_detect/history/quarantine/clear/report 五工具,支持 vitest/jest/pytest/node:test,重复运行测试并识别不稳定用例,JSON 历史与隔离清单,零运行时依赖。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",