Skip to content

Commit 5eb0977

Browse files
derickrjmikola
authored andcommitted
PHPC-864: Add storage engines to Evergreen matrix
1 parent 668d4e2 commit 5eb0977

File tree

5 files changed

+69
-1
lines changed

5 files changed

+69
-1
lines changed

.evergreen/config.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ functions:
326326
params:
327327
script: |
328328
${PREPARE_SHELL}
329-
MONGODB_VERSION=${VERSION} PROJECT_DIRECTORY=${PROJECT_DIRECTORY} DRIVERS_TOOLS=${DRIVERS_TOOLS} CONFIG=${CONFIG} TOPOLOGY=${TOPOLOGY} sh ${PROJECT_DIRECTORY}/.evergreen/run-orchestration.sh
329+
MONGODB_VERSION=${VERSION} PROJECT_DIRECTORY=${PROJECT_DIRECTORY} DRIVERS_TOOLS=${DRIVERS_TOOLS} CONFIG=${CONFIG} TOPOLOGY=${TOPOLOGY} STORAGE_ENGINE=${STORAGE_ENGINE} sh ${PROJECT_DIRECTORY}/.evergreen/run-orchestration.sh
330330
# run-orchestration generates expansion file with the MONGODB_URI for the cluster
331331
- command: expansions.update
332332
params:
@@ -642,6 +642,23 @@ axes:
642642
display_name: "Ubuntu 16.04 ARM64"
643643
run_on: ubuntu1604-arm64-large
644644

645+
- id: storage-engine
646+
display_name: Storage
647+
values:
648+
- id: mmapv1
649+
display_name: MMAPv1
650+
variables:
651+
STORAGE_ENGINE: "mmapv1"
652+
- id: wiredtiger
653+
display_name: WiredTiger
654+
variables:
655+
STORAGE_ENGINE: "wiredtiger"
656+
- id: inmemory
657+
display_name: InMemory
658+
variables:
659+
STORAGE_ENGINE: "inmemory"
660+
661+
645662
buildvariants:
646663

647664
- matrix_name: "tests-php5"
@@ -732,3 +749,9 @@ buildvariants:
732749
- name: "test-replicaset-single"
733750
- name: "test-sharded"
734751
- name: "test-sharded-rs"
752+
753+
- matrix_name: "mongo-40-storage-engines"
754+
matrix_spec: {"os-php7": "debian92-test", "versions": "4.0", "php-versions": "7.2", "storage-engine": "*"}
755+
display_name: "${versions}/${php-versions}/${os-php7} — ${storage-engine}"
756+
tasks:
757+
- name: "test-standalone"

.evergreen/run-orchestration.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ if [ "standalone" = "${TOPOLOGY}" ]; then
3131
END_POINT="servers"
3232
fi
3333

34+
# Storage engine config files take precedence over the CONFIG variable, and
35+
# only exist for plain standalone
36+
if [ ! -z "$STORAGE_ENGINE" ]; then
37+
CONFIG="engine-$STORAGE_ENGINE"
38+
fi
39+
3440
export ORCHESTRATION_URL="http://localhost:8889/v1/${END_POINT}"
3541

3642
# Replace $TRAVIS_BUILD_DIR variable in orchestration file
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"id" : "STANDALONE",
3+
"name": "mongod",
4+
"procParams": {
5+
"storageEngine": "inMemory",
6+
"ipv6": true,
7+
"journal": true,
8+
"port": 2000,
9+
"bind_ip_all": true,
10+
"logpath": "/tmp/MO/STANDALONE-INMEMORY/mongod.log",
11+
"setParameter": {"enableTestCommands": 1}
12+
}
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"id" : "STANDALONE",
3+
"name": "mongod",
4+
"procParams": {
5+
"storageEngine": "mmapv1",
6+
"ipv6": true,
7+
"journal": true,
8+
"port": 2000,
9+
"bind_ip_all": true,
10+
"logpath": "/tmp/MO/STANDALONE-MMAPV1/mongod.log",
11+
"setParameter": {"enableTestCommands": 1}
12+
}
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"id" : "STANDALONE",
3+
"name": "mongod",
4+
"procParams": {
5+
"storageEngine": "wiredTiger",
6+
"ipv6": true,
7+
"journal": true,
8+
"port": 2000,
9+
"bind_ip_all": true,
10+
"logpath": "/tmp/MO/STANDALONE-WIREDTIGER/mongod.log",
11+
"setParameter": {"enableTestCommands": 1}
12+
}
13+
}

0 commit comments

Comments
 (0)