Skip to content

Commit 8be6c4f

Browse files
foo bar baz
1 parent 4b219d3 commit 8be6c4f

27 files changed

+679
-58
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
lib
33
test/disabled
44
!etc/docs
5+
6+
test/explicit-resource-management

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@
271271
{
272272
// Settings for generated definition files
273273
"files": [
274-
"mongodb.d.ts"
274+
"**/*.d.ts",
275+
"lib/*.d.ts"
275276
],
276277
"parser": "@typescript-eslint/parser",
277278
"rules": {

.evergreen/config.in.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,36 @@ functions:
348348
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
349349
TS_VERSION: ${TS_VERSION}
350350
TS_CHECK: CHECK_TYPES
351+
TYPES_VERSION: ${TYPES_VERSION}
351352
binary: bash
352353
args:
353354
- "${PROJECT_DIRECTORY}/.evergreen/run-typescript.sh"
354355

356+
"check resource management":
357+
- command: subprocess.exec
358+
type: test
359+
params:
360+
working_dir: "src"
361+
timeout_secs: 60
362+
env:
363+
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
364+
binary: bash
365+
args:
366+
- "${PROJECT_DIRECTORY}/.evergreen/run-resource-management.sh"
367+
368+
"check resource management smoke tests":
369+
- command: subprocess.exec
370+
type: test
371+
params:
372+
working_dir: "src"
373+
timeout_secs: 60
374+
env:
375+
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
376+
MONGODB_URI: ${MONGODB_URI}
377+
binary: bash
378+
args:
379+
- "${PROJECT_DIRECTORY}/.evergreen/run-resource-management-smoke-tests.sh"
380+
355381
"compile driver":
356382
- command: subprocess.exec
357383
type: test
@@ -362,6 +388,7 @@ functions:
362388
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
363389
TS_VERSION: ${TS_VERSION}
364390
TS_CHECK: COMPILE_DRIVER
391+
TYPES_VERSION: ${TYPES_VERSION}
365392
binary: bash
366393
args:
367394
- "${PROJECT_DIRECTORY}/.evergreen/run-typescript.sh"

.evergreen/config.yml

Lines changed: 123 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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 smoke tests:
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-smoke-tests.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-smoke-tests
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 smoke tests
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,39 @@ 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
3615+
- name: compile-driver-typescript-current-node-types-16.x
3616+
tags:
3617+
- compile-driver-typescript-current
3618+
- typescript-compilation
3619+
commands:
3620+
- command: expansions.update
3621+
type: setup
3622+
params:
3623+
updates:
3624+
- {key: NODE_LTS_VERSION, value: '16'}
3625+
- {key: NPM_VERSION, value: '9'}
3626+
- {key: TS_VERSION, value: current}
3627+
- {key: TYPES_VERSION, value: 16.x}
3628+
- func: install dependencies
3629+
- func: compile driver
35183630
- name: download-and-merge-coverage
35193631
tags: []
35203632
commands:
@@ -5171,3 +5283,8 @@ buildvariants:
51715283
run_on: rhel80-large
51725284
tasks:
51735285
- test_atlas_task_group_search_indexes
5286+
- name: resource management tests
5287+
display_name: resource management tests
5288+
run_on: rhel80-large
5289+
tasks:
5290+
- .resource-management

0 commit comments

Comments
 (0)