Skip to content

Commit 76956d8

Browse files
committed
Merge branch 'v1.18' into merge-v1.17-into-v1.18-1715326101426
* v1.18: (50 commits) Enable auto-merge in merge-up workflow (#1295) PHPLIB-1447: Add SBOM lite (#1292) Fix syntax error in docs (#1285) PHPLIB-1163 Create tutorial for using MongoDB with Bref (#1273) (#1282) Create sarif report when running psalm (#1280) Update composer.json and CI matrices for 1.18.0 PHPLIB-1410: Invoke drivers-evergreen-tools scripts with bash (#1267) PHPLIB-1302: Use Composer\InstalledVersions (#1262) PHPLIB-1320: Support "comment" command option in Collection::createIndex() (#1263) PHPLIB-1413: Use env instead of matrix for driver-version (#1261) Fix Markdown heading PHPLIB-1399: Docs examples for agg expr projection (#1260) PHPLIB-1412: Skip range encryption tests on MongoDB 8.0+ (#1259) PHPLIB-1409: Skip $out and mapReduce tests on serverless (#1254) Exclude read-write-concern tests from serverless testing (#1253) PHPLIB-1409: Convert default write concern tests to unified test format (#1252) PHPLIB-1408: Convert ADL spec test to unified test format (#1250) Remove redundant annotations (#1251) PHPLIB-1404: Convert retryable reads spec tests to unified test format (#1247) DOCSP-36627: Additional double backslash fixes for master (#1246) ...
2 parents aebbf38 + 811eff6 commit 76956d8

File tree

461 files changed

+79244
-55831
lines changed

Some content is hidden

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

461 files changed

+79244
-55831
lines changed

.evergreen/compile-extension.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22
set -o errexit # Exit the script with error if any of the commands fail
33

44
PATH="$PHP_PATH/bin:$PATH"

.evergreen/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ include:
4747
- filename: .evergreen/config/test-variants.yml
4848

4949
# Automatically generated files
50+
- filename: .evergreen/config/generated/build/build-php-8.3.yml
5051
- filename: .evergreen/config/generated/build/build-php-8.2.yml
5152
- filename: .evergreen/config/generated/build/build-php-8.1.yml
5253
- filename: .evergreen/config/generated/build/build-php-8.0.yml
@@ -77,3 +78,9 @@ include:
7778
- filename: .evergreen/config/generated/test/csfle-5.0.yml
7879
- filename: .evergreen/config/generated/test/csfle-4.4.yml
7980
- filename: .evergreen/config/generated/test/csfle-4.2.yml
81+
- filename: .evergreen/config/generated/test-variant/latest-php-8.3.yml
82+
- filename: .evergreen/config/generated/test-variant/replicaset-php-8.2.yml
83+
- filename: .evergreen/config/generated/test-variant/replicaset-php-8.1.yml
84+
- filename: .evergreen/config/generated/test-variant/replicaset-php-8.0.yml
85+
- filename: .evergreen/config/generated/test-variant/replicaset-php-7.4.yml
86+
- filename: .evergreen/config/generated/test-variant/lowest-php-7.4.yml

.evergreen/config/functions.yml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,17 @@ functions:
141141
params:
142142
script: |
143143
${PREPARE_SHELL}
144-
SKIP_CRYPT_SHARED=${SKIP_CRYPT_SHARED} SKIP_LEGACY_SHELL=true MONGODB_VERSION=${MONGODB_VERSION} ORCHESTRATION_FILE=${ORCHESTRATION_FILE} TOPOLOGY=${TOPOLOGY} AUTH=${AUTH} SSL=${SSL} STORAGE_ENGINE=${STORAGE_ENGINE} LOAD_BALANCER=${LOAD_BALANCER} REQUIRE_API_VERSION=${REQUIRE_API_VERSION} ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
144+
SKIP_CRYPT_SHARED=${SKIP_CRYPT_SHARED} \
145+
SKIP_LEGACY_SHELL=true \
146+
MONGODB_VERSION=${MONGODB_VERSION} \
147+
ORCHESTRATION_FILE=${ORCHESTRATION_FILE} \
148+
TOPOLOGY=${TOPOLOGY} \
149+
AUTH=${AUTH} \
150+
SSL=${SSL} \
151+
STORAGE_ENGINE=${STORAGE_ENGINE} \
152+
LOAD_BALANCER=${LOAD_BALANCER} \
153+
REQUIRE_API_VERSION=${REQUIRE_API_VERSION} \
154+
bash ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
145155
# run-orchestration generates expansion file with MONGODB_URI and CRYPT_SHARED_LIB_PATH
146156
- command: expansions.update
147157
params:
@@ -152,7 +162,7 @@ functions:
152162
params:
153163
script: |
154164
${PREPARE_SHELL}
155-
${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh
165+
bash ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh
156166
157167
"bootstrap mongohoused":
158168
- command: shell.exec
@@ -161,14 +171,14 @@ functions:
161171
cd ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake
162172
163173
DRIVERS_TOOLS="${DRIVERS_TOOLS}" \
164-
./pull-mongohouse-image.sh
174+
bash ./pull-mongohouse-image.sh
165175
- command: shell.exec
166176
params:
167177
script: |
168178
cd ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake
169179
170180
DRIVERS_TOOLS="${DRIVERS_TOOLS}" \
171-
./run-mongohouse-image.sh
181+
bash ./run-mongohouse-image.sh
172182
173183
"create serverless instance":
174184
- command: subprocess.exec
@@ -235,7 +245,7 @@ functions:
235245
PHP_VERSION=${PHP_VERSION} \
236246
SSL=${SSL} \
237247
TESTS=${TESTS} \
238-
${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
248+
bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
239249
240250
"run atlas data lake test":
241251
- command: shell.exec
@@ -248,7 +258,7 @@ functions:
248258
249259
MONGODB_URI="mongodb://mhuser:[email protected]:27017" \
250260
TESTS="atlas-data-lake" \
251-
${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
261+
bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
252262
253263
"run serverless tests":
254264
- command: shell.exec
@@ -284,7 +294,7 @@ functions:
284294
CRYPT_SHARED_LIB_PATH=${CRYPT_SHARED_LIB_PATH} \
285295
MONGODB_URI="${SERVERLESS_URI}" \
286296
TESTS="serverless" \
287-
${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
297+
bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
288298
289299
"cleanup":
290300
- command: shell.exec
@@ -310,7 +320,7 @@ functions:
310320
${PREPARE_SHELL}
311321
file="${PROJECT_DIRECTORY}/.evergreen/install-dependencies.sh"
312322
# Don't use ${file} syntax here because evergreen treats it as an empty expansion.
313-
[ -f "$file" ] && sh $file || echo "$file not available, skipping"
323+
[ -f "$file" ] && bash $file || echo "$file not available, skipping"
314324
315325
"install composer":
316326
- command: shell.exec
@@ -321,13 +331,14 @@ functions:
321331
${PREPARE_SHELL}
322332
file="${PROJECT_DIRECTORY}/.evergreen/install-composer.sh"
323333
# Don't use ${file} syntax here because evergreen treats it as an empty expansion.
324-
[ -f "$file" ] && DEPENDENCIES=${DEPENDENCIES} sh $file || echo "$file not available, skipping"
334+
[ -f "$file" ] && DEPENDENCIES=${DEPENDENCIES} bash $file || echo "$file not available, skipping"
325335
326336
"start load balancer":
327337
- command: shell.exec
328338
params:
329339
script: |
330-
MONGODB_URI="${MONGODB_URI}" ${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh start
340+
MONGODB_URI="${MONGODB_URI}" \
341+
bash ${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh start
331342
- command: expansions.update
332343
params:
333344
file: lb-expansion.yml
@@ -338,7 +349,7 @@ functions:
338349
script: |
339350
# Only run if a load balancer was started
340351
if [ -n "${SINGLE_MONGOS_LB_URI}" ]; then
341-
${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh stop
352+
bash ${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh stop
342353
fi
343354
344355
"start kms servers":

.evergreen/config/generate-config.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33

44
// Supported PHP versions. Add new versions to the beginning of the list
55
$supportedPhpVersions = [
6+
'8.3',
67
'8.2',
78
'8.1',
89
'8.0',
910
'7.4'
1011
];
1112

13+
$latestPhpVersion = max($supportedPhpVersions);
14+
$lowestPhpVersion = min($supportedPhpVersions);
15+
1216
// Supported MongoDB versions. Add new versions after "rapid"
1317
$supportedMongoDBVersions = [
1418
'latest',
@@ -51,6 +55,11 @@
5155
$allFiles[] = generateConfigs('test', 'mongodbVersion', 'require-api-version.yml', 'require-api-version-%s', $requireApiServerVersions);
5256
$allFiles[] = generateConfigs('test', 'mongodbVersion', 'csfle.yml', 'csfle-%s', $csfleServerVersions);
5357

58+
// Test variants
59+
$allFiles[] = generateConfigs('test-variant', 'phpVersion', 'latest.yml', 'latest-php-%s', [$latestPhpVersion]);
60+
$allFiles[] = generateConfigs('test-variant', 'phpVersion', 'replicaset-only.yml', 'replicaset-php-%s', array_diff($supportedPhpVersions, [$latestPhpVersion]));
61+
$allFiles[] = generateConfigs('test-variant', 'phpVersion', 'lowest.yml', 'lowest-php-%s', [$lowestPhpVersion]);
62+
5463
echo "Generated config. Use the following list to import files:\n";
5564
echo implode("\n", array_map('getImportConfig', array_merge(...$allFiles))) . "\n";
5665

.evergreen/config/generated/build/build-php-7.4.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.evergreen/config/generated/build/build-php-8.0.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.evergreen/config/generated/build/build-php-8.1.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.evergreen/config/generated/build/build-php-8.2.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.evergreen/config/generated/build/build-php-8.3.yml

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.evergreen/config/generated/test-variant/latest-php-8.3.yml

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.evergreen/config/generated/test-variant/lowest-php-7.4.yml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.evergreen/config/generated/test-variant/replicaset-php-7.4.yml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)