Skip to content

Commit 750a5e1

Browse files
committed
Resolve conflicts
* v2.1: (37 commits) Back to -dev Package 2.1.0 PHPC-2555: Stop testing with MongoDB 4.0 (#1827) PHPC-2510 Install evergreen tools using git submodule (#1797) Bump to libmongoc 1.30.4 (#1822) Feature: Client Bulk Write (#1818) Mention Serializable/Unserializable types in upgrade guide (#1805) Back to -dev Package 2.0.0 Master is now 2.1-dev PHPC-2536: Remove run-ocsp-responder.sh (#1802) PHPC-2536: Migrate to common OCSP responder script (#1800) 1.x is now 1.22.0dev PHPC-2485: Remove WriteConcern and ReadPreference from execute method arginfo (#1783) PHPC-2497: BulkWriteException stub should inherit ServerException (#1784) PHPC-2441: Remove deprecated Manager constructor options (#1719) PHPC-990: Strict type validation for boolean URI options (#1713) PHPC-2440: Remove deprecated Query constructor options (#1707) PHPC-2459: Remove support for float arg in UTCDateTime ctor (#1709) Remove obsolete test ...
2 parents 41d273c + 1e72c4c commit 750a5e1

File tree

500 files changed

+7209
-13460
lines changed

Some content is hidden

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

500 files changed

+7209
-13460
lines changed

.evergreen/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ hosts.
1212

1313
[mongodb-labs/drivers-evergreen-tools](https://github.com/mongodb-labs/drivers-evergreen-tools)
1414
consists of common scripts used by many drivers (e.g. starting
15-
[mongo-orchestration](https://github.com/10gen/mongo-orchestration)). The PHP
16-
driver clones this during the build process.
15+
[mongo-orchestration](https://github.com/10gen/mongo-orchestration)). This package is installed as a Git submodule
16+
in the `tests` directory.

.evergreen/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ post:
2323
- func: "upload test results"
2424
- func: "stop mongo-orchestration"
2525
- func: "stop load balancer"
26+
- func: "stop OCSP responder"
2627
- func: "cleanup"
2728

2829
# These aliases define the default variant/tasks to test for pull requests and merge queue

.evergreen/config/functions.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ functions:
44
- command: git.get_project
55
params:
66
directory: "src"
7-
# Fetch the libmongoc submodule
7+
# Fetch the submodules
88
- command: shell.exec
99
params:
1010
working_dir: "src"
@@ -22,7 +22,7 @@ functions:
2222
CURRENT_VERSION=latest
2323
fi
2424
25-
export DRIVERS_TOOLS="$(pwd)/../drivers-tools"
25+
export DRIVERS_TOOLS="$(pwd)/tests/drivers-evergreen-tools"
2626
export PROJECT_DIRECTORY="$(pwd)"
2727
2828
# Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
@@ -72,15 +72,9 @@ functions:
7272
"prepare resources":
7373
- command: shell.exec
7474
params:
75+
working_dir: src
7576
script: |
7677
${PREPARE_SHELL}
77-
rm -rf $DRIVERS_TOOLS
78-
if [ "${project}" = "drivers-tools" ]; then
79-
# If this was a patch build, doing a fresh clone would not actually test the patch
80-
cp -R ${PROJECT_DIRECTORY}/ $DRIVERS_TOOLS
81-
else
82-
git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS
83-
fi
8478
echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" > $MONGO_ORCHESTRATION_HOME/orchestration.config
8579
8680
@@ -132,6 +126,9 @@ functions:
132126
script: |
133127
${PREPARE_SHELL}
134128
perl -p -i -e "s|/data/mci/[0-9a-z]+/src|${PROJECT_DIRECTORY}|g" Makefile
129+
for filename in $(find ${DRIVERS_TOOLS} -name \*.json); do
130+
perl -p -i -e "s|/data/mci/[0-9a-z]+/src|${PROJECT_DIRECTORY}|g" $filename
131+
done
135132
136133
"compile driver" :
137134
- command: shell.exec
@@ -192,17 +189,23 @@ functions:
192189
${PREPARE_SHELL}
193190
bash ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh
194191
195-
"run OCSP responder":
196-
- command: shell.exec
192+
"start OCSP responder":
193+
- command: subprocess.exec
197194
params:
195+
binary: bash
196+
background: true
198197
include_expansions_in_env:
199-
- TEST_COLUMN
200-
- CERT_TYPE
201-
- USE_DELEGATE
202-
shell: bash
198+
- SERVER_TYPE
199+
- OCSP_ALGORITHM
200+
args:
201+
- ${DRIVERS_TOOLS}/.evergreen/ocsp/setup.sh
202+
203+
"stop OCSP responder":
204+
- command: shell.exec
205+
params:
203206
script: |
204207
${PREPARE_SHELL}
205-
bash ${PROJECT_DIRECTORY}/.evergreen/run-ocsp-responder.sh
208+
bash ${DRIVERS_TOOLS}/.evergreen/ocsp/teardown.sh
206209
207210
"run tests":
208211
- command: shell.exec

.evergreen/config/generate-config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
'5.0',
2020
'4.4',
2121
'4.2',
22-
'4.0',
2322
];
2423

2524
// TODO: Change when PHP 8.4 is stable

.evergreen/config/generated/test-variant/libmongoc.yml

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

.evergreen/config/generated/test-variant/php-full.yml

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

.evergreen/config/generated/test/local.yml

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

0 commit comments

Comments
 (0)