@@ -41,9 +41,9 @@ class BaseRunner {
4141 async testFailedCount ( ) {
4242 return await this . client . get ( this . key ( 'test_failed_count' ) ) ;
4343 }
44- async recordFailedTest ( testName , testSuite ) {
44+ async recordFailedTest ( testName , testGroup , testSuite ) {
4545 const fullTestName = `${ testName } :${ testSuite } ` ;
46- const payload = JSON . stringify ( { test_name : testName , test_suite : testSuite } ) ;
46+ const payload = JSON . stringify ( { test_name : testName , test_suite : testSuite , test_group : testGroup } ) ;
4747 await this . client . hSet ( this . key ( 'error-reports' ) , Buffer . from ( fullTestName ) . toString ( 'binary' ) , Buffer . from ( payload ) . toString ( 'binary' ) ) ;
4848 await this . client . expire ( this . key ( 'error-reports' ) , this . config . redisTTL ) ;
4949 console . log ( `[ci-queue] Incrementing failed test count for ${ testName } ` ) ;
@@ -58,14 +58,14 @@ class BaseRunner {
5858 const failures = Object . values ( failedTests ) . map ( test => JSON . parse ( test ) ) ;
5959 return JSON . stringify ( failures ) ;
6060 }
61- async getFailedTestNamesFromPreviousBuild ( ) {
61+ async getFailedTestGroupsFromPreviousBuild ( ) {
6262 const previousBuildId = this . config . retriedBuildId ;
6363 if ( ! previousBuildId ) {
6464 return [ ] ;
6565 }
6666 const failedTests = await this . client . hGetAll ( this . retriedBuildKey ( 'error-reports' ) ) ;
67- const failures = Object . values ( failedTests ) . map ( test => JSON . parse ( test ) . test_name ) ;
68- return failures ;
67+ const failedTestGroups = Object . values ( failedTests ) . map ( test => JSON . parse ( test ) . test_group ) ;
68+ return failedTestGroups ;
6969 }
7070 async waitForMaster ( ) {
7171 if ( this . isMaster ) {
0 commit comments