From 63ff3465755d8672ad0c1c2a7ec9a47fddc230d2 Mon Sep 17 00:00:00 2001 From: Lan Xia Date: Thu, 7 Nov 2024 12:36:57 -0500 Subject: [PATCH] Fix build status in Grid view (#933) fixes: https://github.com/adoptium/aqa-test-tools/issues/932 Signed-off-by: Lan Xia --- .../src/Build/Summary/ResultSummary.jsx | 2 +- test-result-summary-client/src/utils/Utils.js | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/test-result-summary-client/src/Build/Summary/ResultSummary.jsx b/test-result-summary-client/src/Build/Summary/ResultSummary.jsx index 70ebb182..f54c2c17 100644 --- a/test-result-summary-client/src/Build/Summary/ResultSummary.jsx +++ b/test-result-summary-client/src/Build/Summary/ResultSummary.jsx @@ -80,7 +80,7 @@ export default function ResultSummary() { buildsRes, ]); const parentBuildInfo = buildInfo[0] || {}; - let childBuildsResult = 'UNSTABLE'; + let childBuildsResult = 'UNDEFINED'; let javaVersion = null; const buildMap = {}; let jdkVersionOpts = []; diff --git a/test-result-summary-client/src/utils/Utils.js b/test-result-summary-client/src/utils/Utils.js index 23149d15..b677fe67 100644 --- a/test-result-summary-client/src/utils/Utils.js +++ b/test-result-summary-client/src/utils/Utils.js @@ -22,10 +22,12 @@ export const getInfoFromBuildName = (buildName) => { export const setBuildsStatus = (build, currStatus) => { const buildResultPriority = { - ABORT: 3, - FAILIURE: 2, - UNSTABLE: 1, - SUCCESS: 0, + PROGRESSING: 5, + ABORTED: 4, + FAILURE: 3, + UNSTABLE: 2, + SUCCESS: 1, + UNDEFINED: 0, }; if (build.status != 'Done' || currStatus === 'PROGRESSING') {