Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/tools/rca-agent-utils/get-build-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export async function getBuildId(
);
url.searchParams.append("project_name", projectName);
url.searchParams.append("build_name", buildName);
url.searchParams.append("user_name", username);

const authHeader =
"Basic " + Buffer.from(`${username}:${accessKey}`).toString("base64");
Expand Down
2 changes: 1 addition & 1 deletion src/tools/rca-agent-utils/get-failed-test-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function extractFailedTestIds(
let failedTests: FailedTestInfo[] = [];

for (const node of hierarchy) {
if (node.details?.status === status && node.details?.run_count) {
if (node.details?.status === status) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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

if (node.details?.observability_url) {
const idMatch = node.details.observability_url.match(/details=(\d+)/);
if (idMatch) {
Expand Down