Skip to content

Commit fbf78a2

Browse files
authored
Git search with test name (adoptium#1116)
related: runtimes/automation/issues/664 Signed-off-by: Lan Xia <Lan_Xia@ca.ibm.com>
1 parent 4308cd5 commit fbf78a2

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

test-result-summary-client/src/Build/PossibleIssues.jsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import TestBreadcrumb from './TestBreadcrumb';
44
import { fetchData } from '../utils/Utils';
55
import { SmileOutlined, FrownOutlined } from '@ant-design/icons';
66
import { notification } from 'antd';
7-
87
import './table.css';
98

109
const PossibleIssues = ({
@@ -68,8 +67,6 @@ const PossibleIssues = ({
6867
};
6968

7069
const fetchIssues = async () => {
71-
const generalTestName = testName.replace(/_\d+$/, '');
72-
7370
// fetch test output content
7471
const info = await fetchData(`/api/getTestById?id=${testId} `, {
7572
method: 'get',
@@ -91,14 +88,14 @@ const PossibleIssues = ({
9188
additionalRepo = '+repo:eclipse-openj9/openj9';
9289

9390
additionalResponse = await fetchData(
94-
`/api/getInternalGitIssues?url=&text=${generalTestName}`
91+
`/api/getInternalGitIssues?text=${testName}`
9592
);
9693
} else if (buildName.includes('hs')) {
9794
additionalRepo =
9895
'+repo:adoptium/infrastructure+repo:adoptium/aqa-build';
9996
}
10097
const response = await fetch(
101-
`https://api.github.com/search/issues?q=${generalTestName}+repo:adoptium/aqa-tests` +
98+
`https://api.github.com/search/issues?q=${testName}+repo:adoptium/aqa-tests` +
10299
`+repo:adoptium/aqa-systemtest+repo:adoptium/TKG${additionalRepo}`,
103100
{
104101
method: 'get',
@@ -283,7 +280,9 @@ const PossibleIssues = ({
283280
columns={columns}
284281
dataSource={dataSource[repoName]}
285282
bordered
286-
title={() => `Search Test Name in ${repoName}`}
283+
title={() =>
284+
`Search ${testName} in ${repoName}`
285+
}
287286
pagination={{ pageSize: 5 }}
288287
/>
289288
))

test-result-summary-client/src/Build/PossibleIssuesByAI.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ const PossibleIssuesByAI = ({
5757
title: 'Rationale',
5858
dataIndex: 'rationale',
5959
key: 'rationale',
60+
render: (value) => {
61+
return <pre>{value}</pre>;
62+
},
6063
},
6164
];
6265

@@ -66,7 +69,7 @@ const PossibleIssuesByAI = ({
6669
dataSource={builds}
6770
bordered
6871
title={() => 'AI Recommended Possible Issues (Openj9 issues only)'}
69-
pagination={{ pageSize: 5 }}
72+
pagination={{ pageSize: 3 }}
7073
/>
7174
) : (
7275
<span>

0 commit comments

Comments
 (0)