Skip to content

Commit 9c5f3d5

Browse files
committed
refactor: Remove logger and adjust test ID
1 parent b17a879 commit 9c5f3d5

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/tools/rca-agent-utils/format-rca.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
import logger from "../../logger.js";
2-
31
// Utility function to format RCA data for better readability
42
export function formatRCAData(rcaData: any): string {
5-
logger.info(
6-
`Formatting RCA data for output: ${JSON.stringify(rcaData, null, 2)}`,
7-
);
83
if (!rcaData || !rcaData.testCases || rcaData.testCases.length === 0) {
94
return "No RCA data available.";
105
}

src/tools/rca-agent-utils/rca-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async function fetchInitialRCA(
118118
}
119119

120120
const data = await response.json();
121-
const resultState = mapApiState(data.state); // ✅ reuse helper
121+
const resultState = mapApiState(data.state);
122122

123123
return {
124124
id: testId,
@@ -192,7 +192,7 @@ async function pollRCAResults(
192192

193193
const data = await response.json();
194194
if (!isFailedState(tc.state)) {
195-
const mappedState = mapApiState(data.state); // ✅ reuse helper
195+
const mappedState = mapApiState(data.state);
196196
tc.state = mappedState;
197197

198198
if (mappedState === RCAState.COMPLETED) {

src/tools/rca-agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function fetchRCADataTool(
6060
const authString = getBrowserStackAuth(config);
6161

6262
// Limit to first 3 test IDs for performance
63-
const testIds = args.testId.slice(0, 3);
63+
const testIds = args.testId;
6464

6565
const rcaData = await getRCAData(testIds, authString);
6666

0 commit comments

Comments
 (0)