( artifacts: BenchmarkArtifacts, parserPath: string, toolAnalysis: ToolAnalysisConfig | undefined, )
| 463 | } |
| 464 | |
| 465 | async function runParser( |
| 466 | artifacts: BenchmarkArtifacts, |
| 467 | parserPath: string, |
| 468 | toolAnalysis: ToolAnalysisConfig | undefined, |
| 469 | ): Promise<number | null> { |
| 470 | const result = await runCommand({ |
| 471 | command: 'python3', |
| 472 | args: [ |
| 473 | parserPath, |
| 474 | artifacts.claudeJsonlPath, |
| 475 | artifacts.parsedDirectory, |
| 476 | ...parserToolArgs(toolAnalysis), |
| 477 | ], |
| 478 | cwd: repoRoot, |
| 479 | stdoutPath: artifacts.parseLogPath, |
| 480 | stderrPath: `${artifacts.parseLogPath}.stderr`, |
| 481 | }); |
| 482 | return result.exitCode; |
| 483 | } |
| 484 | |
| 485 | function normalizeStoredResult(result: BenchmarkResult): BenchmarkResult { |
| 486 | if ( |
no test coverage detected