Skip to content
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
2 changes: 2 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ include:
- filename: .evergreen/config/generated/test/require-api-version.yml
- filename: .evergreen/config/generated/test/csfle.yml
- filename: .evergreen/config/generated/test-variant/modern-php-full.yml
- filename: .evergreen/config/generated/test-variant/phpc.yml
- filename: .evergreen/config/generated/test-variant/lowest.yml
5 changes: 2 additions & 3 deletions .evergreen/config/generate-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@

// Test variants
$allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'modern-php-full.yml', $supportedPhpVersions);
// TODO: Re-enable when 1.20.0 is released
// $allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'phpc.yml', [$latestPhpVersion]);
// $allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'lowest.yml', [$lowestPhpVersion]);
$allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'phpc.yml', [$latestPhpVersion]);
$allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'lowest.yml', [$lowestPhpVersion]);

echo "Generated config. Use the following list to import files:\n";
echo implode("\n", array_map('getImportConfig', $allFiles)) . "\n";
Expand Down
180 changes: 84 additions & 96 deletions .evergreen/config/generated/build/build-extension.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .evergreen/config/generated/test-variant/lowest.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions .evergreen/config/generated/test-variant/phpc.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 28 additions & 32 deletions .evergreen/config/templates/build/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,34 @@
vars:
PHP_VERSION: "%phpVersion%"
- func: "compile extension"
# TODO: remove once 1.20.0 is released
- func: "upload extension"
- name: "build-php-%phpVersion%-lowest"
tags: ["build", "php%phpVersion%", "lowest", "pr", "tag"]
commands:
- func: "locate PHP binaries"
vars:
PHP_VERSION: "%phpVersion%"
- func: "compile extension"
vars:
EXTENSION_VERSION: "1.20.0"
- func: "upload extension"
- name: "build-php-%phpVersion%-next-stable"
tags: ["build", "php%phpVersion%", "next-stable", "pr", "tag"]
commands:
- func: "locate PHP binaries"
vars:
PHP_VERSION: "%phpVersion%"
- func: "compile extension"
vars:
EXTENSION_BRANCH: "v1.20"
- func: "upload extension"
# TODO: re-enable once 1.20.0 is released
# - name: "build-php-%phpVersion%-lowest"
# tags: ["build", "php%phpVersion%", "lowest", "pr", "tag"]
# commands:
# - func: "locate PHP binaries"
# vars:
# PHP_VERSION: "%phpVersion%"
# - func: "compile extension"
# vars:
# EXTENSION_VERSION: "1.20.0"
# - func: "upload extension"
# - name: "build-php-%phpVersion%-next-stable"
# tags: ["build", "php%phpVersion%", "next-stable", "pr", "tag"]
# commands:
# - func: "locate PHP binaries"
# vars:
# PHP_VERSION: "%phpVersion%"
# - func: "compile extension"
# vars:
# EXTENSION_BRANCH: "v1.20.0"
# - func: "upload extension"
# - name: "build-php-%phpVersion%-next-minor"
# tags: ["build", "php%phpVersion%", "next-minor"]
# commands:
# - func: "locate PHP binaries"
# vars:
# PHP_VERSION: "%phpVersion%"
# - func: "compile extension"
# vars:
# EXTENSION_BRANCH: "master"
# - func: "upload extension"
- name: "build-php-%phpVersion%-next-minor"
tags: ["build", "php%phpVersion%", "next-minor"]
commands:
- func: "locate PHP binaries"
vars:
PHP_VERSION: "%phpVersion%"
- func: "compile extension"
vars:
EXTENSION_BRANCH: "v1.x"
- func: "upload extension"
4 changes: 1 addition & 3 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ on:

env:
PHP_VERSION: "8.2"
# TODO: change to "stable" once 1.20.0 is released
# DRIVER_VERSION: "stable"
DRIVER_VERSION: "mongodb/[email protected]"
DRIVER_VERSION: "stable"

jobs:
phpcs:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ on:

env:
PHP_VERSION: "8.2"
# TODO: change to "stable" once 1.20.0 is released
# DRIVER_VERSION: "stable"
DRIVER_VERSION: "mongodb/[email protected]"
DRIVER_VERSION: "stable"

jobs:
psalm:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ on:
- "feature/*"

env:
# TODO: change to "stable" once 1.20.0 is released
# DRIVER_VERSION: "stable"
DRIVER_VERSION: "mongodb/[email protected]"
DRIVER_VERSION: "stable"

jobs:
phpunit:
Expand Down
4 changes: 3 additions & 1 deletion tests/Operation/FindFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ function () use ($modifiers): void {
['modifiers' => $modifiers],
);

$operation->execute($this->getPrimaryServer());
$this->assertDeprecated(
fn () => $operation->execute($this->getPrimaryServer()),
);
},
function (array $event) use ($expectedSort): void {
$this->assertEquals($expectedSort, $event['started']->getCommand()->sort ?? null);
Expand Down
Loading