@@ -281,15 +281,37 @@ functions:
281
281
binary : bash
282
282
args :
283
283
- ${PROJECT_DIRECTORY}/.evergreen/run-typescript.sh
284
- run mongosh integration tests :
285
- - command : shell.exec
286
- type : test
284
+ compile mongosh :
285
+ - command : subprocess.exec
287
286
params :
288
287
working_dir : src
289
- script : |
290
- ${PREPARE_SHELL}
291
- export DISTRO_ID=${distro_id}
292
- bash ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-integration-tests.sh
288
+ env :
289
+ PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
290
+ TASK_ID : ${task_id}
291
+ binary : bash
292
+ args :
293
+ - ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-integration-tests.sh
294
+ run mongosh tests for package :
295
+ - command : subprocess.exec
296
+ params :
297
+ working_dir : src
298
+ env :
299
+ PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
300
+ TASK_ID : ${task_id}
301
+ MONGOSH_RUN_ONLY_IN_PACKAGE : ${mongosh_package}
302
+ binary : bash
303
+ args :
304
+ - ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-integration-tests.sh
305
+ run mongosh package scope test :
306
+ - command : subprocess.exec
307
+ params :
308
+ working_dir : src
309
+ env :
310
+ PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
311
+ TASK_ID : ${task_id}
312
+ binary : bash
313
+ args :
314
+ - ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-scope-test.sh
293
315
cleanup :
294
316
- command : shell.exec
295
317
params :
@@ -334,7 +356,7 @@ functions:
334
356
working_dir : src
335
357
script : |
336
358
${PREPARE_SHELL}
337
- NODE_LTS_NAME=${NODE_LTS_NAME} MSVS_VERSION=${MSVS_VERSION} NPM_OPTIONS=${NPM_OPTIONS}\
359
+ NODE_LTS_NAME=${NODE_LTS_NAME} NPM_OPTIONS=${NPM_OPTIONS}\
338
360
bash ${PROJECT_DIRECTORY}/.evergreen/install-dependencies.sh
339
361
- command : expansions.update
340
362
params :
@@ -2124,15 +2146,6 @@ tasks:
2124
2146
- func : check types
2125
2147
vars :
2126
2148
TS_VERSION : 4.1.6
2127
- - name : run-mongosh-integration-tests
2128
- tags :
2129
- - run-mongosh-integration-tests
2130
- exec_timeout_secs : 3600
2131
- commands :
2132
- - func : install dependencies
2133
- vars :
2134
- NODE_LTS_NAME : gallium
2135
- - func : run mongosh integration tests
2136
2149
- name : download-and-merge-coverage
2137
2150
tags : []
2138
2151
commands :
@@ -2642,6 +2655,99 @@ tasks:
2642
2655
- func : add aws auth variables to file
2643
2656
- func : setup aws env
2644
2657
- func : run lambda handler example tests with aws auth
2658
+ - name : run-mongosh-browser-repl
2659
+ tags :
2660
+ - run-mongosh-integration-tests
2661
+ depends_on : compile-mongosh
2662
+ commands :
2663
+ - func : install dependencies
2664
+ vars :
2665
+ NODE_LTS_NAME : gallium
2666
+ - func : run mongosh tests for package
2667
+ vars :
2668
+ mongosh_package : browser-repl
2669
+ - name : run-mongosh-browser-runtime-electron
2670
+ tags :
2671
+ - run-mongosh-integration-tests
2672
+ depends_on : compile-mongosh
2673
+ commands :
2674
+ - func : install dependencies
2675
+ vars :
2676
+ NODE_LTS_NAME : gallium
2677
+ - func : run mongosh tests for package
2678
+ vars :
2679
+ mongosh_package : browser-runtime-electron
2680
+ - name : run-mongosh-cli-repl
2681
+ tags :
2682
+ - run-mongosh-integration-tests
2683
+ depends_on : compile-mongosh
2684
+ commands :
2685
+ - func : install dependencies
2686
+ vars :
2687
+ NODE_LTS_NAME : gallium
2688
+ - func : run mongosh tests for package
2689
+ vars :
2690
+ mongosh_package : cli-repl
2691
+ - name : run-mongosh-connectivity-tests
2692
+ tags :
2693
+ - run-mongosh-integration-tests
2694
+ depends_on : compile-mongosh
2695
+ commands :
2696
+ - func : install dependencies
2697
+ vars :
2698
+ NODE_LTS_NAME : gallium
2699
+ - func : run mongosh tests for package
2700
+ vars :
2701
+ mongosh_package : connectivity-tests
2702
+ - name : run-mongosh-mongosh
2703
+ tags :
2704
+ - run-mongosh-integration-tests
2705
+ depends_on : compile-mongosh
2706
+ commands :
2707
+ - func : install dependencies
2708
+ vars :
2709
+ NODE_LTS_NAME : gallium
2710
+ - func : run mongosh tests for package
2711
+ vars :
2712
+ mongosh_package : mongosh
2713
+ - name : run-mongosh-node-runtime-worker-thread
2714
+ tags :
2715
+ - run-mongosh-integration-tests
2716
+ depends_on : compile-mongosh
2717
+ commands :
2718
+ - func : install dependencies
2719
+ vars :
2720
+ NODE_LTS_NAME : gallium
2721
+ - func : run mongosh tests for package
2722
+ vars :
2723
+ mongosh_package : node-runtime-worker-thread
2724
+ - name : run-mongosh-service-provider-server
2725
+ tags :
2726
+ - run-mongosh-integration-tests
2727
+ depends_on : compile-mongosh
2728
+ commands :
2729
+ - func : install dependencies
2730
+ vars :
2731
+ NODE_LTS_NAME : gallium
2732
+ - func : run mongosh tests for package
2733
+ vars :
2734
+ mongosh_package : service-provider-server
2735
+ - name : compile-mongosh
2736
+ tags :
2737
+ - run-mongosh-integration-tests
2738
+ commands :
2739
+ - func : install dependencies
2740
+ vars :
2741
+ NODE_LTS_NAME : gallium
2742
+ - func : compile mongosh
2743
+ - name : verify-mongosh-scopes
2744
+ tags :
2745
+ - run-mongosh-integration-tests
2746
+ commands :
2747
+ - func : install dependencies
2748
+ vars :
2749
+ NODE_LTS_NAME : gallium
2750
+ - func : run mongosh package scope test
2645
2751
task_groups :
2646
2752
- name : serverless_task_group
2647
2753
setup_group_can_fail_task : true
@@ -2929,7 +3035,6 @@ buildvariants:
2929
3035
run_on : windows-64-vs2019-large
2930
3036
expansions :
2931
3037
NODE_LTS_NAME : erbium
2932
- MSVS_VERSION : 2019
2933
3038
tasks :
2934
3039
- test-latest-server
2935
3040
- test-latest-replica_set
@@ -2971,7 +3076,6 @@ buildvariants:
2971
3076
run_on : windows-64-vs2019-large
2972
3077
expansions :
2973
3078
NODE_LTS_NAME : fermium
2974
- MSVS_VERSION : 2019
2975
3079
tasks :
2976
3080
- test-latest-server
2977
3081
- test-latest-replica_set
@@ -3013,7 +3117,6 @@ buildvariants:
3013
3117
run_on : windows-64-vs2019-large
3014
3118
expansions :
3015
3119
NODE_LTS_NAME : gallium
3016
- MSVS_VERSION : 2019
3017
3120
tasks :
3018
3121
- test-latest-server
3019
3122
- test-latest-replica_set
@@ -3053,7 +3156,6 @@ buildvariants:
3053
3156
run_on : windows-64-vs2019-large
3054
3157
expansions :
3055
3158
NODE_LTS_NAME : hydrogen
3056
- MSVS_VERSION : 2019
3057
3159
tasks :
3058
3160
- test-latest-server
3059
3161
- test-latest-replica_set
@@ -3115,7 +3217,15 @@ buildvariants:
3115
3217
display_name : mongosh integration tests
3116
3218
run_on : ubuntu1804-large
3117
3219
tasks :
3118
- - run-mongosh-integration-tests
3220
+ - run-mongosh-browser-repl
3221
+ - run-mongosh-browser-runtime-electron
3222
+ - run-mongosh-cli-repl
3223
+ - run-mongosh-connectivity-tests
3224
+ - run-mongosh-mongosh
3225
+ - run-mongosh-node-runtime-worker-thread
3226
+ - run-mongosh-service-provider-server
3227
+ - compile-mongosh
3228
+ - verify-mongosh-scopes
3119
3229
- name : ubuntu1804-test-mongodb-aws
3120
3230
display_name : MONGODB-AWS Auth test
3121
3231
run_on : ubuntu1804-large
0 commit comments