@@ -72,16 +72,18 @@ function generateVersionTopologyMatrix() {
7272 function * _generate ( ) {
7373 for ( const mongoVersion of MONGODB_VERSIONS ) {
7474 for ( const topology of TOPOLOGIES ) {
75- yield { mongoVersion, topology}
75+ yield { mongoVersion, topology } ;
7676 }
7777 }
7878 }
7979
8080 return Array . from ( _generate ( ) ) ;
8181}
8282
83- const BASE_TASKS = generateVersionTopologyMatrix ( ) . map ( makeTask )
84- const AUTH_DISABLED_TASKS = generateVersionTopologyMatrix ( ) . map ( ( test ) => makeTask ( { ...test , auth : 'noauth' , tags : [ 'noauth' ] } ) )
83+ const BASE_TASKS = generateVersionTopologyMatrix ( ) . map ( makeTask ) ;
84+ const AUTH_DISABLED_TASKS = generateVersionTopologyMatrix ( ) . map ( test =>
85+ makeTask ( { ...test , auth : 'noauth' , tags : [ 'noauth' ] } )
86+ ) ;
8587
8688BASE_TASKS . push ( {
8789 name : `test-latest-server-v1-api` ,
@@ -323,7 +325,7 @@ TLS_VERSIONS.forEach(VERSION => {
323325 vars : {
324326 VERSION ,
325327 SSL : 'ssl' ,
326- TOPOLOGY : 'server' ,
328+ TOPOLOGY : 'server'
327329 // TODO: NODE-3891 - fix tests broken when AUTH enabled
328330 // AUTH: 'auth'
329331 }
@@ -702,10 +704,8 @@ const coverageTask = {
702704 func : 'download and merge coverage'
703705 }
704706 ] ,
705- depends_on : [
706- { name : '*' , variant : '*' , status : '*' , patch_optional : true }
707- ]
708- }
707+ depends_on : [ { name : '*' , variant : '*' , status : '*' , patch_optional : true } ]
708+ } ;
709709
710710SINGLETON_TASKS . push ( ...oneOffFuncAsTasks ) ;
711711
@@ -728,14 +728,21 @@ BUILD_VARIANTS.push({
728728} ) ;
729729
730730BUILD_VARIANTS . push ( {
731- name : 'no-auth-tests' ,
731+ name : 'ubuntu1804- no-auth-tests' ,
732732 display_name : 'No Auth Tests' ,
733- run_on : 'ubuntu1804-test' ,
733+ run_on : DEFAULT_OS ,
734+ expansions : {
735+ CLIENT_ENCRYPTION : true
736+ } ,
734737 tasks : AUTH_DISABLED_TASKS . map ( ( { name } ) => name )
735- } )
738+ } ) ;
736739
737740const fileData = yaml . load ( fs . readFileSync ( `${ __dirname } /config.yml.in` , 'utf8' ) ) ;
738- fileData . tasks = ( fileData . tasks || [ ] ) . concat ( BASE_TASKS ) . concat ( TASKS ) . concat ( SINGLETON_TASKS ) . concat ( AUTH_DISABLED_TASKS ) ;
741+ fileData . tasks = ( fileData . tasks || [ ] )
742+ . concat ( BASE_TASKS )
743+ . concat ( TASKS )
744+ . concat ( SINGLETON_TASKS )
745+ . concat ( AUTH_DISABLED_TASKS ) ;
739746fileData . buildvariants = ( fileData . buildvariants || [ ] ) . concat ( BUILD_VARIANTS ) ;
740747
741748fs . writeFileSync ( `${ __dirname } /config.yml` , yaml . dump ( fileData , { lineWidth : 120 } ) , 'utf8' ) ;
0 commit comments