@@ -312,9 +312,33 @@ functions:
312312 PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
313313 TS_VERSION : ${TS_VERSION}
314314 TS_CHECK : CHECK_TYPES
315+ TYPES_VERSION : ${TYPES_VERSION}
315316 binary : bash
316317 args :
317318 - ${PROJECT_DIRECTORY}/.evergreen/run-typescript.sh
319+ check resource management :
320+ - command : subprocess.exec
321+ type : test
322+ params :
323+ working_dir : src
324+ timeout_secs : 60
325+ env :
326+ PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
327+ binary : bash
328+ args :
329+ - ${PROJECT_DIRECTORY}/.evergreen/run-resource-management.sh
330+ check resource management feature integration :
331+ - command : subprocess.exec
332+ type : test
333+ params :
334+ working_dir : src
335+ timeout_secs : 60
336+ env :
337+ PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
338+ MONGODB_URI : ${MONGODB_URI}
339+ binary : bash
340+ args :
341+ - ${PROJECT_DIRECTORY}/.evergreen/run-resource-management-feature-integration.sh
318342 compile driver :
319343 - command : subprocess.exec
320344 type : test
@@ -325,6 +349,7 @@ functions:
325349 PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
326350 TS_VERSION : ${TS_VERSION}
327351 TS_CHECK : COMPILE_DRIVER
352+ TYPES_VERSION : ${TYPES_VERSION}
328353 binary : bash
329354 args :
330355 - ${PROJECT_DIRECTORY}/.evergreen/run-typescript.sh
@@ -3459,7 +3484,45 @@ tasks:
34593484 - {key: NPM_VERSION, value: '9'}
34603485 - func : install dependencies
34613486 - func : run lint checks
3462- - name : check-types-typescript-next
3487+ - name : run-resource-management-no-async-dispose
3488+ tags :
3489+ - resource-management
3490+ commands :
3491+ - command : expansions.update
3492+ type : setup
3493+ params :
3494+ updates :
3495+ - {key: NODE_LTS_VERSION, value: v16.20.2}
3496+ - {key: NPM_VERSION, value: '9'}
3497+ - func : install dependencies
3498+ - func : check resource management
3499+ - name : run-resource-management-async-dispose
3500+ tags :
3501+ - resource-management
3502+ commands :
3503+ - command : expansions.update
3504+ type : setup
3505+ params :
3506+ updates :
3507+ - {key: NODE_LTS_VERSION, value: latest}
3508+ - {key: NPM_VERSION, value: '9'}
3509+ - func : install dependencies
3510+ - func : check resource management
3511+ - name : test-explicit-resource-management-feature-integration
3512+ tags :
3513+ - resource-management
3514+ commands :
3515+ - command : expansions.update
3516+ type : setup
3517+ params :
3518+ updates :
3519+ - {key: VERSION, value: latest}
3520+ - {key: TOPOLOGY, value: replica_set}
3521+ - {key: NODE_LTS_VERSION, value: latest}
3522+ - func : install dependencies
3523+ - func : bootstrap mongo-orchestration
3524+ - func : check resource management feature integration
3525+ - name : check-types-typescript-next-node-types-20.14.10
34633526 tags :
34643527 - check-types-typescript-next
34653528 - typescript-compilation
@@ -3471,11 +3534,12 @@ tasks:
34713534 - {key: NODE_LTS_VERSION, value: '16'}
34723535 - {key: NPM_VERSION, value: '9'}
34733536 - {key: TS_VERSION, value: next}
3537+ - {key: TYPES_VERSION, value: 20.14.10}
34743538 - func : install dependencies
34753539 - func : check types
3476- - name : compile-driver -typescript-current
3540+ - name : check-types -typescript-current-node-types-20.14.10
34773541 tags :
3478- - compile-driver -typescript-current
3542+ - check-types -typescript-current
34793543 - typescript-compilation
34803544 commands :
34813545 - command : expansions.update
@@ -3485,9 +3549,25 @@ tasks:
34853549 - {key: NODE_LTS_VERSION, value: '16'}
34863550 - {key: NPM_VERSION, value: '9'}
34873551 - {key: TS_VERSION, value: current}
3552+ - {key: TYPES_VERSION, value: 20.14.10}
34883553 - func : install dependencies
3489- - func : compile driver
3490- - name : check-types-typescript-current
3554+ - func : check types
3555+ - name : check-types-typescript-next-node-types-16.x
3556+ tags :
3557+ - check-types-typescript-next
3558+ - typescript-compilation
3559+ commands :
3560+ - command : expansions.update
3561+ type : setup
3562+ params :
3563+ updates :
3564+ - {key: NODE_LTS_VERSION, value: '16'}
3565+ - {key: NPM_VERSION, value: '9'}
3566+ - {key: TS_VERSION, value: next}
3567+ - {key: TYPES_VERSION, value: 16.x}
3568+ - func : install dependencies
3569+ - func : check types
3570+ - name : check-types-typescript-current-node-types-16.x
34913571 tags :
34923572 - check-types-typescript-current
34933573 - typescript-compilation
@@ -3499,9 +3579,10 @@ tasks:
34993579 - {key: NODE_LTS_VERSION, value: '16'}
35003580 - {key: NPM_VERSION, value: '9'}
35013581 - {key: TS_VERSION, value: current}
3582+ - {key: TYPES_VERSION, value: 16.x}
35023583 - func : install dependencies
35033584 - func : check types
3504- - name : check-types-typescript-4.4
3585+ - name : check-types-typescript-4.4-node-types-18.11.9
35053586 tags :
35063587 - check-types-typescript-4.4
35073588 - typescript-compilation
@@ -3513,8 +3594,24 @@ tasks:
35133594 - {key: NODE_LTS_VERSION, value: '16'}
35143595 - {key: NPM_VERSION, value: '9'}
35153596 - {key: TS_VERSION, value: '4.4'}
3597+ - {key: TYPES_VERSION, value: 18.11.9}
35163598 - func : install dependencies
35173599 - func : check types
3600+ - name : compile-driver-typescript-current-node-types-20.14.10
3601+ tags :
3602+ - compile-driver-typescript-current
3603+ - typescript-compilation
3604+ commands :
3605+ - command : expansions.update
3606+ type : setup
3607+ params :
3608+ updates :
3609+ - {key: NODE_LTS_VERSION, value: '16'}
3610+ - {key: NPM_VERSION, value: '9'}
3611+ - {key: TS_VERSION, value: current}
3612+ - {key: TYPES_VERSION, value: 20.14.10}
3613+ - func : install dependencies
3614+ - func : compile driver
35183615 - name : download-and-merge-coverage
35193616 tags : []
35203617 commands :
@@ -5171,3 +5268,8 @@ buildvariants:
51715268 run_on : rhel80-large
51725269 tasks :
51735270 - test_atlas_task_group_search_indexes
5271+ - name : resource management tests
5272+ display_name : resource management tests
5273+ run_on : rhel80-large
5274+ tasks :
5275+ - .resource-management
0 commit comments