Commit 66a24cd 1 parent 7a6db8f commit 66a24cd Copy full SHA for 66a24cd
File tree 2 files changed +7
-10
lines changed
TestResultSummaryService/routes
test-result-summary-client/src/TrafficLight
2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,12 @@ const ObjectID = require('mongodb').ObjectID;
4
4
module . exports = async ( req , res ) => {
5
5
const db = new TestResultsDB ( ) ;
6
6
let results = null ;
7
- let rootBuildId ;
8
- if ( req . query . rootBuildId ) {
9
- rootBuildId = new ObjectID ( req . query . rootBuildId ) ;
7
+ let parentId ;
8
+ if ( req . query . parentId ) {
9
+ parentId = new ObjectID ( req . query . parentId ) ;
10
10
}
11
11
let query = {
12
- buildName : {
13
- $regex : 'Perf_openjdk.*perf_.*(?<!test|baseline)$' ,
14
- } ,
15
- rootBuildId,
12
+ parentId,
16
13
} ;
17
14
if ( req . query . buildType === 'baseline' || req . query . buildType === 'test' ) {
18
15
const aggregateInfoBuildNameRegex = `.*_${ req . query . buildType } ` ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ function TrafficLight() {
57
57
58
58
const handleCompare = async ( ) => {
59
59
let testData = await fetchData (
60
- `/api/getTrafficLightData?rootBuildId =${ testBuild } &buildType=test`
60
+ `/api/getTrafficLightData?parentId =${ testBuild } &buildType=test`
61
61
) ;
62
62
let baselineData = [ ] ;
63
63
// Use aggregateInfo.BuildName Perf_openjdkxxx_test as test build.
@@ -66,11 +66,11 @@ function TrafficLight() {
66
66
// Otherwise, use aggregateInfo.BuildName Perf_openjdkxxx_test as baseline build.
67
67
if ( baselineBuild === testBuild ) {
68
68
baselineData = await fetchData (
69
- `/api/getTrafficLightData?rootBuildId =${ baselineBuild } &buildType=baseline`
69
+ `/api/getTrafficLightData?parentId =${ baselineBuild } &buildType=baseline`
70
70
) ;
71
71
} else {
72
72
baselineData = await fetchData (
73
- `/api/getTrafficLightData?rootBuildId =${ baselineBuild } &buildType=test`
73
+ `/api/getTrafficLightData?parentId =${ baselineBuild } &buildType=test`
74
74
) ;
75
75
}
76
76
You can’t perform that action at this time.
0 commit comments