Skip to content

Commit 2b06ec5

Browse files
committed
Merge branch 'master' into merge-v1.20-into-master-1725648094062
2 parents 99f3b77 + e5e6b61 commit 2b06ec5

File tree

1,069 files changed

+64612
-1669
lines changed

Some content is hidden

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

1,069 files changed

+64612
-1669
lines changed

.evergreen/config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,3 @@ include:
7171
- filename: .evergreen/config/generated/test/require-api-version.yml
7272
- filename: .evergreen/config/generated/test/csfle.yml
7373
- filename: .evergreen/config/generated/test-variant/modern-php-full.yml
74-
- filename: .evergreen/config/generated/test-variant/legacy-php-full.yml

.evergreen/config/build-task-groups.yml

+1-13
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,10 @@ task_groups:
1111
# Builds all versions of PHP
1212
- name: "build-all-php"
1313
# Keep this number in sync with the number of PHP versions to allow for parallel builds
14-
max_hosts: 4
14+
max_hosts: 3
1515
setup_task: *build_setup
1616
setup_task_can_fail_task: true
1717
setup_task_timeout_secs: 1800
1818
teardown_task: *build_teardown
1919
tasks:
2020
- ".build"
21-
22-
# Builds all versions of PHP that support OpenSSL 3 (PHP 8.1+)
23-
- name: "build-php-openssl3"
24-
# Keep this number in sync with the number of PHP versions to allow for parallel builds
25-
# Subtract 2 versions as PHP 7.4 and 8.0 are not built with OpenSSL 3
26-
max_hosts: 2
27-
setup_task: *build_setup
28-
setup_task_can_fail_task: true
29-
setup_task_timeout_secs: 1800
30-
teardown_task: *build_teardown
31-
tasks:
32-
- ".build !.php7.4 !.php8.0"

.evergreen/config/build-variants.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildvariants:
88
tags: ["build", "debian", "x64"]
99
run_on: debian12-small
1010
tasks:
11-
- name: "build-php-openssl3"
11+
- name: "build-all-php"
1212
- name: build-debian11
1313
display_name: "Build: Debian 11"
1414
tags: ["build", "debian", "x64", "pr", "tag"]
@@ -34,7 +34,7 @@ buildvariants:
3434
tags: ["build", "rhel", "x64", "pr", "tag"]
3535
run_on: rhel90-small
3636
tasks:
37-
- name: "build-php-openssl3"
37+
- name: "build-all-php"
3838
- name: build-rhel83-zseries
3939
display_name: "Build: RHEL 8.3 Zseries"
4040
tags: ["build", "rhel", "zseries", "tag"]
@@ -66,13 +66,13 @@ buildvariants:
6666
tags: ["build", "ubuntu", "x64", "pr", "tag"]
6767
run_on: ubuntu2204-small
6868
tasks:
69-
- name: "build-php-openssl3"
69+
- name: "build-all-php"
7070
- name: build-ubuntu2204-arm64
7171
display_name: "Build: Ubuntu 22.04 ARM64"
7272
tags: ["build", "ubuntu", "arm64", "tag"]
7373
run_on: ubuntu2204-arm64-small
7474
tasks:
75-
- name: "build-php-openssl3"
75+
- name: "build-all-php"
7676
- name: build-ubuntu2004
7777
display_name: "Build: Ubuntu 20.04 x64"
7878
tags: ["build", "ubuntu", "x64", "pr", "tag"]

.evergreen/config/generate-config.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,11 @@
22
<?php
33

44
// Supported PHP versions. Add new versions to the beginning of the list
5-
$modernPhpVersions = [
5+
$supportedPhpVersions = [
66
'8.3',
77
'8.2',
88
'8.1',
99
];
10-
$legacyPhpVersions = [
11-
'8.0',
12-
'7.4',
13-
];
14-
$supportedPhpVersions = array_merge($modernPhpVersions, $legacyPhpVersions);
1510

1611
$latestPhpVersion = max($supportedPhpVersions);
1712
$lowestPhpVersion = min($supportedPhpVersions);
@@ -59,8 +54,7 @@
5954
$allFiles[] = generateConfigs('tasks', 'test', 'mongodbVersion', 'csfle.yml', $csfleServerVersions);
6055

6156
// Test variants
62-
$allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'modern-php-full.yml', $modernPhpVersions);
63-
$allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'legacy-php-full.yml', $legacyPhpVersions);
57+
$allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'modern-php-full.yml', $supportedPhpVersions);
6458
// TODO: Re-enable when 1.20.0 is released
6559
// $allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'phpc.yml', [$latestPhpVersion]);
6660
// $allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'lowest.yml', [$lowestPhpVersion]);

.evergreen/config/generated/build/build-extension.yml

-84
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

-114
This file was deleted.

.evergreen/config/templates/test-variant/legacy-php-full.yml

-56
This file was deleted.

.gitattributes

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ tests export-ignore
44
benchmark export-ignore
55
docs export-ignore
66
examples export-ignore
7+
generator export-ignore
78
mongo-orchestration export-ignore
89
stubs export-ignore
910
tools export-ignore
@@ -14,6 +15,13 @@ phpunit.evergreen.xml export-ignore
1415
phpunit.xml.dist export-ignore
1516
psalm.xml.dist export-ignore
1617
psalm-baseline.xml export-ignore
18+
rector.php export-ignore
1719

1820
# Prevent generated build files from showing diffs in pull requests
1921
.evergreen/config/generated/** linguist-generated=true
22+
/src/Builder/Accumulator/*.php linguist-generated=true
23+
/src/Builder/Expression/*.php linguist-generated=true
24+
/src/Builder/Query/*.php linguist-generated=true
25+
/src/Builder/Projection/*.php linguist-generated=true
26+
/src/Builder/Stage/*.php linguist-generated=true
27+
/tests/Builder/*/Pipelines.php linguist-generated=true

.github/actions/setup/action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ inputs:
1111
description: "INI values to pass along to setup-php action"
1212
required: false
1313
default: ""
14+
working-directory:
15+
description: "The directory where composer.json is located, if it is not in the repository root."
16+
required: false
1417

1518
runs:
1619
using: composite
@@ -49,3 +52,4 @@ runs:
4952
# Revert when psalm supports PHP 8.4
5053
# composer-options: "--no-suggest"
5154
composer-options: "--no-suggest ${{ inputs.php-version == '8.4' && '--ignore-platform-req=php+' || '' }}"
55+
working-directory: "${{ inputs.working-directory }}"

0 commit comments

Comments
 (0)