Skip to content

Fix CI issues #1215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .evergreen/config/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ functions:
params:
script: |
${PREPARE_SHELL}
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} sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
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
# run-orchestration generates expansion file with MONGODB_URI and CRYPT_SHARED_LIB_PATH
- command: expansions.update
params:
Expand All @@ -152,18 +152,23 @@ functions:
params:
script: |
${PREPARE_SHELL}
sh ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh
${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh

"bootstrap mongohoused":
- command: shell.exec
params:
script: |
VARIANT=${VARIANT} DRIVERS_TOOLS="${DRIVERS_TOOLS}" sh ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/build-mongohouse-local.sh
cd ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake

DRIVERS_TOOLS="${DRIVERS_TOOLS}" \
./pull-mongohouse-image.sh
- command: shell.exec
params:
background: true
script: |
DRIVERS_TOOLS="${DRIVERS_TOOLS}" sh ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-local.sh
cd ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake

DRIVERS_TOOLS="${DRIVERS_TOOLS}" \
./run-mongohouse-image.sh

"create serverless instance":
- command: shell.exec
Expand Down Expand Up @@ -272,7 +277,7 @@ functions:
PHP_VERSION=${PHP_VERSION} \
SSL=${SSL} \
TESTS=${TESTS} \
sh ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
${PROJECT_DIRECTORY}/.evergreen/run-tests.sh

"run atlas data lake test":
- command: shell.exec
Expand All @@ -285,7 +290,7 @@ functions:

MONGODB_URI="mongodb://mhuser:pencil@127.0.0.1:27017" \
TESTS="atlas-data-lake" \
sh ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
${PROJECT_DIRECTORY}/.evergreen/run-tests.sh

"run serverless tests":
- command: shell.exec
Expand Down Expand Up @@ -318,7 +323,7 @@ functions:
CRYPT_SHARED_LIB_PATH=${CRYPT_SHARED_LIB_PATH} \
MONGODB_URI="${SERVERLESS_URI}" \
TESTS="serverless" \
sh ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
${PROJECT_DIRECTORY}/.evergreen/run-tests.sh

"cleanup":
- command: shell.exec
Expand Down
16 changes: 15 additions & 1 deletion .evergreen/config/test-variants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ buildvariants:
- ".sharded .local !.csfle !.3.6 !.4.0 !.4.2 !.4.4 !.5.0"
- ".loadbalanced .local !.csfle !.3.6 !.4.0 !.4.2 !.4.4 !.5.0"
- ".serverless"
- "test-atlas-data-lake"
- name: test-debian92-php82-local
tags: ["test", "debian", "x64"]
display_name: "Test: Debian 9.2, PHP 8.2"
Expand Down Expand Up @@ -156,3 +155,18 @@ buildvariants:
name: "build-php-8.2"
tasks:
- "run-benchmark"

# Run Atlas Data Lake Tests on Ubuntu
- name: test-ubuntu2204-php82-local
tags: ["test", "ubuntu", "x64"]
display_name: "Test: Ubuntu 22.04 x64, PHP 8.2"
run_on: ubuntu2204-small
expansions:
FETCH_BUILD_VARIANT: "build-ubuntu2204"
FETCH_BUILD_TASK: "build-php-8.2"
PHP_VERSION: "8.2"
depends_on:
- variant: "build-ubuntu2204"
name: "build-php-8.2"
tasks:
- "test-atlas-data-lake"
2 changes: 1 addition & 1 deletion tests/SpecTests/ClientSideEncryptionSpecTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ public function testOnDemandAwsCredentials(bool $shouldSucceed): void
];

if (! $shouldSucceed) {
$this->expectException(AuthenticationException::class);
$this->expectException(RuntimeException::class);
}

$dataKeyId = $clientEncryption->createDataKey('aws', $dataKeyOpts);
Expand Down
2 changes: 2 additions & 0 deletions tests/UnifiedSpecTests/UnifiedSpecTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class UnifiedSpecTest extends FunctionalTestCase
'valid-pass/createEntities-operation: createEntities operation' => 'CSOT is not yet implemented (PHPC-1760)',
'valid-pass/entity-cursor-iterateOnce: iterateOnce' => 'CSOT is not yet implemented (PHPC-1760)',
'valid-pass/matches-lte-operator: special lte matching operator' => 'CSOT is not yet implemented (PHPC-1760)',
// libmongoc always adds readConcern to aggregate command
'index-management/search index operations ignore read and write concern: listSearchIndexes ignores read and write concern' => 'libmongoc appends readConcern to aggregate command',
];

private static UnifiedTestRunner $runner;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"expectError": {
"isError": true,
"errorContains": "Search index commands are only supported with Atlas"
"errorContains": "Atlas"
}
}
],
Expand Down Expand Up @@ -102,7 +102,7 @@
},
"expectError": {
"isError": true,
"errorContains": "Search index commands are only supported with Atlas"
"errorContains": "Atlas"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"expectError": {
"isError": true,
"errorContains": "Search index commands are only supported with Atlas"
"errorContains": "Atlas"
}
}
],
Expand Down Expand Up @@ -89,7 +89,7 @@
},
"expectError": {
"isError": true,
"errorContains": "Search index commands are only supported with Atlas"
"errorContains": "Atlas"
}
}
],
Expand Down Expand Up @@ -138,7 +138,7 @@
},
"expectError": {
"isError": true,
"errorContains": "Search index commands are only supported with Atlas"
"errorContains": "Atlas"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"expectError": {
"isError": true,
"errorContains": "Search index commands are only supported with Atlas"
"errorContains": "Atlas"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"object": "collection0",
"expectError": {
"isError": true,
"errorContains": "Search index commands are only supported with Atlas"
"errorContains": "Atlas"
}
}
],
Expand Down Expand Up @@ -81,7 +81,7 @@
},
"expectError": {
"isError": true,
"errorContains": "Search index commands are only supported with Atlas"
"errorContains": "Atlas"
}
}
],
Expand Down Expand Up @@ -122,7 +122,7 @@
},
"expectError": {
"isError": true,
"errorContains": "Search index commands are only supported with Atlas"
"errorContains": "Atlas"
}
}
],
Expand Down
Loading