Skip to content

Commit 60d6f65

Browse files
authored
CSHARP-5057: Support Range Indexes as GA (#1429)
1 parent 2f5e234 commit 60d6f65

File tree

115 files changed

+2143
-1567
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+2143
-1567
lines changed

evergreen/evergreen.yml

+26-22
Original file line numberDiff line numberDiff line change
@@ -1960,6 +1960,10 @@ axes:
19601960
display_name: "rapid"
19611961
variables:
19621962
VERSION: "rapid"
1963+
- id: "8.0"
1964+
display_name: "8.0"
1965+
variables:
1966+
VERSION: "8.0"
19631967
- id: "7.0"
19641968
display_name: "7.0"
19651969
variables:
@@ -2383,7 +2387,7 @@ task_groups:
23832387

23842388
buildvariants:
23852389
- matrix_name: stable-api-tests
2386-
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", auth: "auth", ssl: "nossl", os: "windows-64" }
2390+
matrix_spec: { version: ["5.0", "6.0", "7.0", "8.0", "rapid", "latest"], topology: "standalone", auth: "auth", ssl: "nossl", os: "windows-64" }
23872391
display_name: "Stable API ${version} ${topology} ${auth} ${ssl} ${os}"
23882392
run_on:
23892393
- windows-64-vs2017-test
@@ -2403,7 +2407,7 @@ buildvariants:
24032407
- name: test-netstandard21
24042408

24052409
- matrix_name: "secure-tests-macOS"
2406-
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "replicaset", auth: "auth", ssl: "ssl", os: ["macos-14", "macos-14-arm64"] }
2410+
matrix_spec: { version: ["5.0", "6.0", "7.0", "8.0", "rapid", "latest"], topology: "replicaset", auth: "auth", ssl: "ssl", os: ["macos-14", "macos-14-arm64"] }
24072411
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
24082412
tags: ["tests-variant"]
24092413
tasks:
@@ -2418,7 +2422,7 @@ buildvariants:
24182422
- name: test-netstandard21
24192423

24202424
- matrix_name: "secure-tests-linux-2004"
2421-
matrix_spec: { version: ["7.0", "rapid", "latest"], topology: "*", auth: "auth", ssl: "ssl", os: "ubuntu-2004" }
2425+
matrix_spec: { version: ["7.0", "8.0", "rapid", "latest"], topology: "*", auth: "auth", ssl: "ssl", os: "ubuntu-2004" }
24222426
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
24232427
tags: ["tests-variant"]
24242428
tasks:
@@ -2436,22 +2440,22 @@ buildvariants:
24362440
- name: test-netstandard21
24372441

24382442
- matrix_name: "unsecure-tests-macOS"
2439-
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "replicaset", auth: "noauth", ssl: "nossl", os: ["macos-14", "macos-14-arm64"] }
2443+
matrix_spec: { version: ["5.0", "6.0", "7.0", "8.0", "rapid", "latest"], topology: "replicaset", auth: "noauth", ssl: "nossl", os: ["macos-14", "macos-14-arm64"] }
24402444
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
24412445
tags: ["tests-variant"]
24422446
tasks:
24432447
- name: test-netstandard21
24442448

24452449
- matrix_name: "unsecure-tests-linux-1804"
2446-
matrix_spec: { version: ["3.6", "4.0", "4.2", "4.4", "5.0", "6.0"], topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-1804" }
2450+
matrix_spec: { version: ["4.0", "4.2", "4.4", "5.0", "6.0"], topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-1804" }
24472451
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
24482452
tags: ["tests-variant"]
24492453
tasks:
24502454
- name: test-netstandard20
24512455
- name: test-netstandard21
24522456

24532457
- matrix_name: "unsecure-tests-linux-2004"
2454-
matrix_spec: { version: ["7.0", "rapid", "latest"], topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-2004" }
2458+
matrix_spec: { version: ["7.0", "8.0", "rapid", "latest"], topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-2004" }
24552459
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
24562460
tags: ["tests-variant"]
24572461
tasks:
@@ -2469,22 +2473,22 @@ buildvariants:
24692473
- name: test-netstandard21
24702474

24712475
- matrix_name: "tests-compression-macOS"
2472-
matrix_spec: { compressor : ["snappy", "zstandard"], auth: "noauth", ssl: "nossl", version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", os: ["macos-14", "macos-14-arm64"] }
2476+
matrix_spec: { compressor : ["snappy", "zstandard"], auth: "noauth", ssl: "nossl", version: ["5.0", "6.0", "7.0", "8.0", "rapid", "latest"], topology: "standalone", os: ["macos-14", "macos-14-arm64"] }
24732477
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
24742478
tags: ["tests-variant"]
24752479
tasks:
24762480
- name: test-netstandard21
24772481

24782482
- matrix_name: "tests-compression-linux-1804"
2479-
matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: ["3.6", "4.0", "4.2", "4.4", "5.0", "6.0"], topology: "standalone", os: "ubuntu-1804" }
2483+
matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: ["4.0", "4.2", "4.4", "5.0", "6.0"], topology: "standalone", os: "ubuntu-1804" }
24802484
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
24812485
tags: ["tests-variant"]
24822486
tasks:
24832487
- name: test-netstandard20
24842488
- name: test-netstandard21
24852489

24862490
- matrix_name: "tests-compression-linux-2004"
2487-
matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: ["7.0", "rapid", "latest"], topology: "standalone", os: "ubuntu-2004" }
2491+
matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: ["7.0", "8.0", "rapid", "latest"], topology: "standalone", os: "ubuntu-2004" }
24882492
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
24892493
tags: ["tests-variant"]
24902494
tasks:
@@ -2520,28 +2524,28 @@ buildvariants:
25202524
- name: oidc-auth-gcp-task-group
25212525

25222526
- matrix_name: "ocsp-tests"
2523-
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "rapid", "latest"], auth: "noauth", ssl: "ssl", topology: "standalone", os: "windows-64" }
2527+
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "8.0", "rapid", "latest"], auth: "noauth", ssl: "ssl", topology: "standalone", os: "windows-64" }
25242528
display_name: "OCSP ${version} ${os}"
25252529
batchtime: 20160 # 14 days
25262530
tasks:
25272531
- name: ".ocsp"
25282532

25292533
- matrix_name: aws-auth-tests-windows
2530-
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", os: "windows-64" }
2534+
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "8.0", "rapid", "latest"], topology: "standalone", os: "windows-64" }
25312535
display_name: "MONGODB-AWS Auth test ${version} ${os}"
25322536
run_on:
25332537
- windows-64-vs2017-test
25342538
tasks:
25352539
- name: aws-auth-tests
25362540

25372541
- matrix_name: aws-auth-tests-linux
2538-
matrix_spec: { version: ["6.0", "7.0", "rapid", "latest"], topology: "standalone", os: "ubuntu-2004" }
2542+
matrix_spec: { version: ["6.0", "7.0", "8.0", "rapid", "latest"], topology: "standalone", os: "ubuntu-2004" }
25392543
display_name: "MONGODB-AWS Auth test ${version} ${os}"
25402544
tasks:
25412545
- name: aws-auth-tests
25422546

25432547
- matrix_name: aws-auth-tests-macos
2544-
matrix_spec: { version: ["6.0", "7.0", "rapid", "latest"], topology: "standalone", os: "macos-14" }
2548+
matrix_spec: { version: ["6.0", "7.0", "8.0", "rapid", "latest"], topology: "standalone", os: "macos-14" }
25452549
display_name: "MONGODB-AWS Auth test ${version} ${os}"
25462550
tasks:
25472551
- name: aws-auth-tests
@@ -2565,14 +2569,14 @@ buildvariants:
25652569

25662570
# Load balancer tests
25672571
- matrix_name: load-balancer-tests
2568-
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], auth: "noauth", ssl: "nossl", topology: "sharded-cluster", os: "ubuntu-2004" }
2572+
matrix_spec: { version: ["5.0", "6.0", "7.0", "8.0", "rapid", "latest"], auth: "noauth", ssl: "nossl", topology: "sharded-cluster", os: "ubuntu-2004" }
25692573
display_name: "Load Balancer ${version} ${auth} ${ssl} ${os}"
25702574
tasks:
25712575
- name: "test-load-balancer-netstandard20"
25722576
- name: "test-load-balancer-netstandard21"
25732577

25742578
- matrix_name: load-balancer-tests-secure
2575-
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], auth: "auth", ssl: "ssl", topology: "sharded-cluster", os: "ubuntu-2004" }
2579+
matrix_spec: { version: ["5.0", "6.0", "7.0", "8.0", "rapid", "latest"], auth: "auth", ssl: "ssl", topology: "sharded-cluster", os: "ubuntu-2004" }
25762580
display_name: "Load Balancer ${version} ${auth} ${ssl} ${os}"
25772581
tasks:
25782582
- name: "test-load-balancer-netstandard20"
@@ -2640,7 +2644,7 @@ buildvariants:
26402644

26412645
# CSFLE tests
26422646
- matrix_name: "csfle-with-mocked-kms-tests-windows"
2643-
matrix_spec: { os: "windows-64", ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest"], topology: ["replicaset"] }
2647+
matrix_spec: { os: "windows-64", ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0", "7.0", "8.0", "rapid", "latest"], topology: ["replicaset"] }
26442648
display_name: "CSFLE Mocked KMS ${version} ${os}"
26452649
tasks:
26462650
- name: test-csfle-with-mocked-kms-tls-net472
@@ -2660,7 +2664,7 @@ buildvariants:
26602664
- name: test-csfle-with-mongocryptd-netstandard21
26612665

26622666
- matrix_name: "csfle-with-mocked-kms-tests-linux-2004"
2663-
matrix_spec: { os: "ubuntu-2004", ssl: "nossl", version: ["7.0", "rapid", "latest"], topology: ["replicaset"] }
2667+
matrix_spec: { os: "ubuntu-2004", ssl: "nossl", version: ["7.0", "8.0", "rapid", "latest"], topology: ["replicaset"] }
26642668
display_name: "CSFLE Mocked KMS ${version} ${os}"
26652669
tasks:
26662670
- name: test-csfle-with-mocked-kms-tls-netstandard20
@@ -2669,7 +2673,7 @@ buildvariants:
26692673
- name: test-csfle-with-mongocryptd-netstandard21
26702674

26712675
- matrix_name: "csfle-with-mocked-kms-tests-macOS"
2672-
matrix_spec: { os: ["macos-14", "macos-14-arm64"], ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest"], topology: ["replicaset"] }
2676+
matrix_spec: { os: ["macos-14", "macos-14-arm64"], ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0", "7.0", "8.0", "rapid", "latest"], topology: ["replicaset"] }
26732677
display_name: "CSFLE Mocked KMS ${version} ${os}"
26742678
tasks:
26752679
- name: test-csfle-with-mocked-kms-tls-netstandard21
@@ -2693,7 +2697,7 @@ buildvariants:
26932697

26942698
# Smoke tests
26952699
- matrix_name: "smoke-tests-windows"
2696-
matrix_spec: { os: "windows-64", ssl: "nossl", version: ["5.0", "6.0", "7.0", "latest"], topology: ["replicaset"] }
2700+
matrix_spec: { os: "windows-64", ssl: "nossl", version: ["5.0", "6.0", "7.0", "8.0", "latest"], topology: ["replicaset"] }
26972701
display_name: "smoke-tests ${version} ${os}"
26982702
batchtime: 1440 # 1 day
26992703
tasks:
@@ -2705,7 +2709,7 @@ buildvariants:
27052709
- name: test-smoke-tests-net80
27062710

27072711
- matrix_name: "smoke-tests-linux"
2708-
matrix_spec: { os: "ubuntu-2004", ssl: "nossl", version: ["5.0", "6.0", "7.0", "latest"], topology: ["replicaset"] }
2712+
matrix_spec: { os: "ubuntu-2004", ssl: "nossl", version: ["5.0", "6.0", "7.0", "8.0", "latest"], topology: ["replicaset"] }
27092713
display_name: "smoke-tests ${version} ${os}"
27102714
batchtime: 1440 # 1 day
27112715
tasks:
@@ -2716,7 +2720,7 @@ buildvariants:
27162720
- name: test-smoke-tests-net80
27172721

27182722
- matrix_name: "smoke-tests-macOS"
2719-
matrix_spec: { os: "macos-14", ssl: "nossl", version: ["5.0", "6.0", "7.0", "latest"], topology: ["replicaset"] }
2723+
matrix_spec: { os: "macos-14", ssl: "nossl", version: ["5.0", "6.0", "7.0", "8.0", "latest"], topology: ["replicaset"] }
27202724
display_name: "smoke-tests ${version} ${os}"
27212725
batchtime: 1440 # 1 day
27222726
tasks:
@@ -2810,7 +2814,7 @@ buildvariants:
28102814
batchtime: 720 # 12 hours
28112815
matrix_spec:
28122816
os: ["ubuntu-2004", "windows-64"]
2813-
version: ["4.2", "7.0", "latest"]
2817+
version: ["4.2", "8.0", "latest"]
28142818
exclude_spec:
28152819
# We do not have MongoDB 4.2 binaries for Ubuntu 2004
28162820
- os: "ubuntu-2004"
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,36 @@
1-
{
2-
"fields": [
3-
{
4-
"keyId": {
5-
"$binary": {
6-
"base64": "EjRWeBI0mHYSNBI0VniQEg==",
7-
"subType": "04"
8-
}
9-
},
10-
"path": "encryptedDate",
11-
"bsonType": "date",
12-
"queries": {
13-
"queryType": "rangePreview",
14-
"sparsity": {
15-
"$numberLong": "1"
16-
},
17-
"min": {
18-
"$date": {
19-
"$numberLong": "0"
20-
}
21-
},
22-
"max": {
23-
"$date": {
24-
"$numberLong": "200"
25-
}
26-
}
27-
}
28-
}
29-
]
30-
}
1+
{
2+
"fields": [
3+
{
4+
"keyId": {
5+
"$binary": {
6+
"base64": "EjRWeBI0mHYSNBI0VniQEg==",
7+
"subType": "04"
8+
}
9+
},
10+
"path": "encryptedDate",
11+
"bsonType": "date",
12+
"queries": {
13+
"queryType": "range",
14+
"contention": {
15+
"$numberLong": "0"
16+
},
17+
"trimFactor": {
18+
"$numberInt": "1"
19+
},
20+
"sparsity": {
21+
"$numberLong": "1"
22+
},
23+
"min": {
24+
"$date": {
25+
"$numberLong": "0"
26+
}
27+
},
28+
"max": {
29+
"$date": {
30+
"$numberLong": "200"
31+
}
32+
}
33+
}
34+
}
35+
]
36+
}
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
{
2-
"fields": [
3-
{
4-
"keyId": {
5-
"$binary": {
6-
"base64": "EjRWeBI0mHYSNBI0VniQEg==",
7-
"subType": "04"
8-
}
9-
},
10-
"path": "encryptedDecimalNoPrecision",
11-
"bsonType": "decimal",
12-
"queries": {
13-
"queryType": "rangePreview",
14-
"sparsity": {
15-
"$numberInt": "1"
16-
}
17-
}
18-
}
19-
]
20-
}
21-
1+
{
2+
"fields": [
3+
{
4+
"keyId": {
5+
"$binary": {
6+
"base64": "EjRWeBI0mHYSNBI0VniQEg==",
7+
"subType": "04"
8+
}
9+
},
10+
"path": "encryptedDecimalNoPrecision",
11+
"bsonType": "decimal",
12+
"queries": {
13+
"queryType": "range",
14+
"contention": {
15+
"$numberLong": "0"
16+
},
17+
"trimFactor": {
18+
"$numberInt": "1"
19+
},
20+
"sparsity": {
21+
"$numberLong": "1"
22+
}
23+
}
24+
}
25+
]
26+
}
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,35 @@
1-
{
2-
"fields": [
3-
{
4-
"keyId": {
5-
"$binary": {
6-
"base64": "EjRWeBI0mHYSNBI0VniQEg==",
7-
"subType": "04"
8-
}
9-
},
10-
"path": "encryptedDecimalPrecision",
11-
"bsonType": "decimal",
12-
"queries": {
13-
"queryType": "rangePreview",
14-
"sparsity": {
15-
"$numberInt": "1"
16-
},
17-
"min": {
18-
"$numberDecimal": "0.0"
19-
},
20-
"max": {
21-
"$numberDecimal": "200.0"
22-
},
23-
"precision": {
24-
"$numberInt": "2"
25-
}
26-
}
27-
}
28-
]
29-
}
1+
{
2+
"fields": [
3+
{
4+
"keyId": {
5+
"$binary": {
6+
"base64": "EjRWeBI0mHYSNBI0VniQEg==",
7+
"subType": "04"
8+
}
9+
},
10+
"path": "encryptedDecimalPrecision",
11+
"bsonType": "decimal",
12+
"queries": {
13+
"queryType": "range",
14+
"contention": {
15+
"$numberLong": "0"
16+
},
17+
"trimFactor": {
18+
"$numberInt": "1"
19+
},
20+
"sparsity": {
21+
"$numberLong": "1"
22+
},
23+
"min": {
24+
"$numberDecimal": "0.0"
25+
},
26+
"max": {
27+
"$numberDecimal": "200.0"
28+
},
29+
"precision": {
30+
"$numberInt": "2"
31+
}
32+
}
33+
}
34+
]
35+
}

0 commit comments

Comments
 (0)