fix: getBuildId & failedTestIds mcp tool#323
Conversation
SavioBS629
left a comment
There was a problem hiding this comment.
Claude Code Review (automated) — 1 inline finding(s). Full report in the PR comment below. Verdict: Passed.
|
|
||
| for (const node of hierarchy) { | ||
| if (node.details?.status === status && node.details?.run_count) { | ||
| if (node.details?.status === status) { |
There was a problem hiding this comment.
[Low] Behavioral change is untested
Dropping && node.details?.run_count is a plausible, intended fix (zero-run failed tests were being skipped), but extractFailedTestIds is non-exported and getTestIds is mocked in tests/tools/rcaAgent.test.ts, so neither the old nor new condition is ever exercised — no regression guard.
Suggestion: Export extractFailedTestIds (or drive via getTestIds with a mocked fetch + hierarchy fixture) and add cases: status match with run_count: 0, status match with missing details, and a non-matching status.
Reviewer: stack:code-review
Claude Code PR ReviewPR: #323 • Head: 35b9a51 • Reviewers: stack:code-review SummaryTwo RCA-agent utility bug fixes: Review Table
Findings
Pre-existing (not introduced here, not blocking)
Verdict: PASS — two reasonable bug fixes, no Critical/High issues; add test coverage for |
No description provided.