Skip to content

Commit f3a285a

Browse files
authored
PHPC-2433: Test PHP 8.4 on Evergreen (#1721)
* PHPC-2433: Test PHP 8.4 on Evergreen * Skip PHP 8.4 on RHEL PPC/Zseries
1 parent 78fd15c commit f3a285a

File tree

5 files changed

+106
-4
lines changed

5 files changed

+106
-4
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ task_groups:
1919
tasks:
2020
- ".build"
2121

22+
# TODO: Remove task group once PHP 8.4 is available on PPC and Zseries
23+
- name: "build-all-php-except-8.4"
24+
# Keep this number in sync with the number of PHP versions to allow for parallel builds
25+
max_hosts: 4
26+
setup_task: *build_setup
27+
setup_task_can_fail_task: true
28+
setup_task_timeout_secs: 1800
29+
teardown_task: *build_teardown
30+
tasks:
31+
- ".build !.php8.4"
32+
2233
# Builds all versions of PHP that support OpenSSL 3 (PHP 8.1+)
2334
- name: "build-php-openssl3"
2435
# Keep this number in sync with the number of PHP versions to allow for parallel builds

.evergreen/config/build-variants.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ buildvariants:
2929
tags: ["build", "rhel", "zseries", "tag"]
3030
run_on: rhel8-zseries-small
3131
tasks:
32-
- name: "build-all-php"
32+
# TODO: Re-enable PHP 8.4 once it's available on PPC and Zseries
33+
- name: "build-all-php-except-8.4"
3334
- name: build-rhel8-arm64
3435
display_name: "Build: RHEL 8 ARM64"
3536
tags: ["build", "rhel", "arm64", "tag"]
@@ -41,7 +42,8 @@ buildvariants:
4142
tags: ["build", "rhel", "power8", "tag"]
4243
run_on: rhel8-power-large
4344
tasks:
44-
- name: "build-all-php"
45+
# TODO: Re-enable PHP 8.4 once it's available on PPC and Zseries
46+
- name: "build-all-php-except-8.4"
4547
- name: build-rhel8
4648
display_name: "Build: RHEL 8 x64"
4749
tags: ["build", "rhel", "x64", "pr", "tag"]

.evergreen/config/generate-config.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
// Supported PHP versions. Add new versions to the beginning of the list
55
$modernPhpVersions = [
6+
'8.4',
67
'8.3',
78
'8.2',
89
'8.1',
@@ -26,7 +27,9 @@
2627
'4.0',
2728
];
2829

29-
$latestPhpVersion = max($supportedPhpVersions);
30+
// TODO: Change when PHP 8.4 is stable
31+
// $latestPhpVersion = max($supportedPhpVersions);
32+
$latestPhpVersion = '8.3';
3033

3134
// Only test the latest PHP version for libmongoc
3235
$libmongocBuildPhpVersions = [ $latestPhpVersion ];
@@ -112,4 +115,3 @@ function generateConfigs(
112115

113116
return '.evergreen/config' . $filename;
114117
}
115-

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

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

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

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

0 commit comments

Comments
 (0)