Skip to content

Commit bc4af89

Browse files
authoredFeb 14, 2025
Merge branch 'main' into write_chars_heap_ascii
2 parents 82782ee + 36448cd commit bc4af89

File tree

16 files changed

+412
-188
lines changed

16 files changed

+412
-188
lines changed
 

‎.evergreen/.evg.yml

+57-104
Original file line numberDiff line numberDiff line change
@@ -509,24 +509,6 @@ functions:
509509
mongo --nodb setup.js aws_e2e_ecs.js
510510
cd -
511511
512-
"run atlas data lake test":
513-
- command: shell.exec
514-
type: test
515-
params:
516-
working_dir: "src"
517-
script: |
518-
${PREPARE_SHELL}
519-
JAVA_VERSION=${JAVA_VERSION} .evergreen/run-atlas-data-lake-test.sh
520-
521-
"run atlas search test":
522-
- command: shell.exec
523-
type: test
524-
params:
525-
working_dir: "src"
526-
script: |
527-
${PREPARE_SHELL}
528-
MONGODB_URI="${atlas_search_uri}" .evergreen/run-atlas-search-tests.sh
529-
530512
"run-ocsp-test":
531513
- command: shell.exec
532514
type: test
@@ -627,19 +609,6 @@ functions:
627609
${PREPARE_SHELL}
628610
PROJECT_DIRECTORY=${PROJECT_DIRECTORY} JAVA_VERSION=${JAVA_VERSION} TOPOLOGY=${TOPOLOGY} STORAGE_ENGINE=${STORAGE_ENGINE} MONGODB_URI="${MONGODB_URI}" .evergreen/run-mmapv1-storage-test.sh
629611
630-
"run atlas test":
631-
- command: shell.exec
632-
type: test
633-
params:
634-
silent: true
635-
working_dir: "src"
636-
script: |
637-
# DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does)
638-
# The connection strings are pipe-delimited
639-
JAVA_VERSION="8" \
640-
MONGODB_URIS="${atlas_free_tier_uri}|${atlas_replica_set_uri}|${atlas_sharded_uri}|${atlas_tls_v11_uri}|${atlas_tls_v12_uri}|${atlas_free_tier_uri_srv}|${atlas_replica_set_uri_srv}|${atlas_sharded_uri_srv}|${atlas_tls_v11_uri_srv}|${atlas_tls_v12_uri_srv}|${atlas_serverless_uri}|${atlas_serverless_uri_srv}" \
641-
.evergreen/run-connectivity-tests.sh
642-
643612
run socks5 tests:
644613
- command: shell.exec
645614
type: test
@@ -1454,14 +1423,50 @@ tasks:
14541423
OCSP_MUST_STAPLE: "false"
14551424
OCSP_TLS_SHOULD_SUCCEED: "0"
14561425

1457-
- name: "atlas-data-lake-test"
1426+
- name: "atlas-data-lake-task"
14581427
commands:
14591428
- func: "bootstrap mongohoused"
1460-
- func: "run atlas data lake test"
1429+
- command: shell.exec
1430+
type: test
1431+
params:
1432+
working_dir: "src"
1433+
script: |
1434+
${PREPARE_SHELL}
1435+
JAVA_VERSION=${JAVA_VERSION} .evergreen/run-atlas-data-lake-test.sh
14611436
1462-
- name: "atlas-search-test"
1437+
- name: "atlas-search-task"
14631438
commands:
1464-
- func: "run atlas search test"
1439+
- command: shell.exec
1440+
type: test
1441+
params:
1442+
working_dir: "src"
1443+
script: |
1444+
${PREPARE_SHELL}
1445+
MONGODB_URI="${atlas_search_uri}" .evergreen/run-atlas-search-tests.sh
1446+
1447+
- name: "atlas-connectivity-task"
1448+
commands:
1449+
- command: shell.exec
1450+
type: test
1451+
params:
1452+
silent: true
1453+
working_dir: "src"
1454+
script: |
1455+
# DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does)
1456+
# The connection strings are pipe-delimited
1457+
MONGODB_URIS="${atlas_free_tier_uri}|${atlas_replica_set_uri}|${atlas_sharded_uri}|${atlas_tls_v11_uri}|${atlas_tls_v12_uri}|${atlas_free_tier_uri_srv}|${atlas_replica_set_uri_srv}|${atlas_sharded_uri_srv}|${atlas_tls_v11_uri_srv}|${atlas_tls_v12_uri_srv}|${atlas_serverless_uri}|${atlas_serverless_uri_srv}" \
1458+
JAVA_VERSION="8" \
1459+
.evergreen/run-connectivity-tests.sh
1460+
1461+
- name: "atlas-search-index-management-task"
1462+
commands:
1463+
- command: subprocess.exec
1464+
params:
1465+
working_dir: src
1466+
binary: bash
1467+
add_expansions_to_env: true
1468+
args:
1469+
- .evergreen/run-atlas-search-index-management-tests.sh
14651470

14661471
- name: "gssapi-auth-test"
14671472
commands:
@@ -1482,20 +1487,6 @@ tasks:
14821487
- func: "bootstrap mongo-orchestration"
14831488
- func: "run netty tests"
14841489

1485-
- name: "atlas-test"
1486-
commands:
1487-
- func: "run atlas test"
1488-
1489-
- name: "test-atlas-search-index-helpers"
1490-
commands:
1491-
- command: subprocess.exec
1492-
params:
1493-
working_dir: src
1494-
binary: bash
1495-
add_expansions_to_env: true
1496-
args:
1497-
- .evergreen/run-atlas-search-index-management-tests.sh
1498-
14991490
- name: publish-snapshot
15001491
depends_on:
15011492
- variant: "static-checks"
@@ -1528,7 +1519,7 @@ tasks:
15281519
- func: "run perf tests"
15291520
- func: "send dashboard data"
15301521

1531-
- name: "test-aws-lambda-deployed"
1522+
- name: "aws-lambda-deployed-task"
15321523
commands:
15331524
- command: ec2.assume_role
15341525
params:
@@ -1622,7 +1613,6 @@ tasks:
16221613
echo "Untarring file ... begin"
16231614
GCPKMS_CMD="tar xf mongo-java-driver.tgz" $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/run-command.sh
16241615
echo "Untarring file ... end"
1625-
16261616
- command: shell.exec
16271617
type: test
16281618
params:
@@ -1910,11 +1900,12 @@ axes:
19101900
batchtime: 10080 # 7 days
19111901

19121902
task_groups:
1913-
- name: test_atlas_task_group_search_indexes
1903+
- name: "atlas-deployed-task-group"
19141904
setup_group:
19151905
- func: fetch source
19161906
- func: prepare resources
19171907
- command: subprocess.exec
1908+
type: setup
19181909
params:
19191910
working_dir: src
19201911
binary: bash
@@ -1926,6 +1917,7 @@ task_groups:
19261917
file: src/atlas-expansion.yml
19271918
teardown_group:
19281919
- command: subprocess.exec
1920+
type: setup
19291921
params:
19301922
working_dir: src
19311923
binary: bash
@@ -1935,7 +1927,9 @@ task_groups:
19351927
setup_group_can_fail_task: true
19361928
setup_group_timeout_secs: 1800
19371929
tasks:
1938-
- test-atlas-search-index-helpers
1930+
- "atlas-search-index-management-task"
1931+
- "aws-lambda-deployed-task"
1932+
19391933
- name: testgcpkms_task_group
19401934
setup_group_can_fail_task: true
19411935
setup_group_timeout_secs: 1800 # 30 minutes
@@ -1971,6 +1965,7 @@ task_groups:
19711965
$DRIVERS_TOOLS/.evergreen/csfle/gcpkms/delete-instance.sh
19721966
tasks:
19731967
- testgcpkms-task
1968+
19741969
- name: testazurekms_task_group
19751970
setup_group_can_fail_task: true
19761971
setup_group_timeout_secs: 1800 # 30 minutes
@@ -2015,32 +2010,6 @@ task_groups:
20152010
$DRIVERS_TOOLS/.evergreen/csfle/azurekms/delete-vm.sh
20162011
tasks:
20172012
- testazurekms-task
2018-
- name: test_atlas_task_group
2019-
setup_group:
2020-
- func: fetch source
2021-
- func: prepare resources
2022-
- command: subprocess.exec
2023-
params:
2024-
working_dir: src
2025-
binary: bash
2026-
add_expansions_to_env: true
2027-
args:
2028-
- ${DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh
2029-
- command: expansions.update
2030-
params:
2031-
file: src/atlas-expansion.yml
2032-
teardown_group:
2033-
- command: subprocess.exec
2034-
params:
2035-
working_dir: src
2036-
binary: bash
2037-
add_expansions_to_env: true
2038-
args:
2039-
- ${DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh
2040-
setup_group_can_fail_task: true
2041-
setup_group_timeout_secs: 1800
2042-
tasks:
2043-
- test-aws-lambda-deployed
20442013

20452014
- name: testoidc_task_group
20462015
setup_group:
@@ -2275,24 +2244,12 @@ buildvariants:
22752244
tasks:
22762245
- name: "perf"
22772246

2278-
- name: rhel8-test-atlas
2279-
display_name: Atlas Cluster Tests
2280-
run_on: rhel80-large
2281-
tasks:
2282-
- test_atlas_task_group
2283-
22842247
- name: plain-auth-test
22852248
display_name: "PLAIN (LDAP) Auth test"
22862249
run_on: rhel80-small
22872250
tasks:
22882251
- name: "plain-auth-test"
22892252

2290-
- name: rhel80-test-search-indexes
2291-
display_name: Atlas Search Index Management Tests
2292-
run_on: rhel80-small
2293-
tasks:
2294-
- name: "test_atlas_task_group_search_indexes"
2295-
22962253
- name: "oidc-auth-test"
22972254
display_name: "OIDC Auth"
22982255
run_on: ubuntu2204-small
@@ -2347,23 +2304,19 @@ buildvariants:
23472304
tasks:
23482305
- name: ".ocsp"
23492306

2350-
- name: atlas-data-lake-test
2351-
display_name: "Atlas Data Lake test"
2352-
run_on: ubuntu2004-small
2353-
tasks:
2354-
- name: "atlas-data-lake-test"
2355-
2356-
- name: atlas-test
2357-
display_name: "Atlas test"
2307+
- name: "atlas-search-variant"
2308+
display_name: "Atlas Tests"
23582309
run_on: rhel80-small
23592310
tasks:
2360-
- name: "atlas-test"
2311+
- name: "atlas-deployed-task-group"
2312+
- name: "atlas-search-task"
2313+
- name: "atlas-connectivity-task"
23612314

2362-
- name: atlas-search-test
2363-
display_name: "Atlas Search test"
2364-
run_on: rhel80-small
2315+
- name: atlas-data-lake-test
2316+
display_name: "Atlas Data Lake test"
2317+
run_on: ubuntu2004-small
23652318
tasks:
2366-
- name: "atlas-search-test"
2319+
- name: "atlas-data-lake-task"
23672320

23682321
- name: "reactive-streams-tck-test"
23692322
display_name: "Reactive Streams TCK tests"

‎.evergreen/run-atlas-search-tests.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ echo "Running Atlas Search tests"
1616
./gradlew --stacktrace --info \
1717
-Dorg.mongodb.test.atlas.search=true \
1818
-Dorg.mongodb.test.uri=${MONGODB_URI} \
19-
driver-core:test --tests AggregatesSearchIntegrationTest --tests AggregatesVectorSearchIntegrationTest
19+
driver-core:test --tests AggregatesSearchIntegrationTest \
20+
--tests AggregatesBinaryVectorSearchIntegrationTest \
21+
--tests AggregatesSearchTest \

‎driver-core/src/main/com/mongodb/client/model/search/SearchOperator.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
import com.mongodb.client.model.geojson.Point;
2323
import org.bson.BsonArray;
2424
import org.bson.BsonBinary;
25-
import org.bson.BsonBoolean;
2625
import org.bson.BsonDocument;
2726
import org.bson.BsonNull;
27+
import org.bson.BsonBoolean;
2828
import org.bson.BsonType;
2929
import org.bson.Document;
3030
import org.bson.conversions.Bson;
@@ -573,14 +573,15 @@ static PhraseSearchOperator phrase(final Iterable<? extends SearchPath> paths, f
573573
}
574574

575575
/**
576-
* Returns a {@link SearchOperator} that performs a search using a special characters in the search string that can match any character.
576+
* Returns a {@link SearchOperator} that performs a search using a special
577+
* characters in the search string that can match any character.
577578
*
579+
* @param path The indexed field to be searched.
578580
* @param query The string to search for.
579-
* @param path The indexed field to be searched.
580581
* @return The requested {@link SearchOperator}.
581582
* @mongodb.atlas.manual atlas-search/wildcard/ wildcard operator
582583
*/
583-
static WildcardSearchOperator wildcard(final String query, final SearchPath path) {
584+
static WildcardSearchOperator wildcard(final SearchPath path, final String query) {
584585
return wildcard(singleton(notNull("query", query)), singleton(notNull("path", path)));
585586
}
586587

‎driver-core/src/main/com/mongodb/client/model/search/WildcardSearchOperator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import com.mongodb.annotations.Sealed;
2121

2222
/**
23-
* @see SearchOperator#wildcard(String, SearchPath)
23+
* @see SearchOperator#wildcard(SearchPath, String)
2424
* @see SearchOperator#wildcard(Iterable, Iterable)
2525
* @since 4.7
2626
*/

‎driver-core/src/main/com/mongodb/internal/connection/ClientMetadataHelper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private enum Orchestrator {
224224
K8S("kubernetes") {
225225
@Override
226226
boolean isCurrentOrchestrator() {
227-
return System.getenv("KUBERNETES_SERVICE_HOST") != null;
227+
return FaasEnvironment.getEnv("KUBERNETES_SERVICE_HOST") != null;
228228
}
229229
},
230230
UNKNOWN(null);

0 commit comments

Comments
 (0)
Failed to load comments.