Skip to content

Commit 7d472a7

Browse files
committed
Merge remote-tracking branch 'origin/master' into levi/panic_abort
2 parents d37bec3 + 255566e commit 7d472a7

File tree

114 files changed

+1057
-307
lines changed

Some content is hidden

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

114 files changed

+1057
-307
lines changed

.github/workflows/prof_correctness.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ jobs:
7979
mkdir -p profiling/tests/correctness/"$test_case"/
8080
export DD_PROFILING_OUTPUT_PPROF=$PWD/profiling/tests/correctness/"$test_case"/test.pprof
8181
php -d extension=$PWD/target/release/libdatadog_php_profiling.so profiling/tests/correctness/"$test_case".php
82-
if [ -f "$DD_PROFILING_OUTPUT_PPROF".1.lz4 ]; then
83-
echo "File $DD_PROFILING_OUTPUT_PPROF.1.lz4 should not exist!"
82+
if [ -f "$DD_PROFILING_OUTPUT_PPROF".1.zst ]; then
83+
echo "File $DD_PROFILING_OUTPUT_PPROF.1.zst should not exist!"
8484
exit 1;
8585
fi
8686
done

.gitlab/ci-images.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ CentOS:
2020
matrix:
2121
- PHP_VERSION:
2222
- base
23+
- php-8.5
2324
- php-8.4
2425
- php-8.3
2526
- php-8.2
@@ -47,6 +48,7 @@ Alpine:
4748
matrix:
4849
- PHP_VERSION:
4950
- base-alpine
51+
- 8.5-alpine
5052
- 8.4-alpine
5153
- 8.3-alpine
5254
- 8.2-alpine
@@ -74,6 +76,7 @@ Bookworm:
7476
matrix:
7577
- PHP_VERSION:
7678
- base
79+
- php-8.5
7780
- php-8.4
7881
- php-8.3
7982
- php-8.2
@@ -103,6 +106,7 @@ Buster:
103106
matrix:
104107
- PHP_VERSION:
105108
- base
109+
- php-8.5
106110
- php-8.4
107111
- php-8.3
108112
- php-8.2

.gitlab/generate-appsec.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132
- test8.3-release-zts
133133
- test8.4-release
134134
- test8.4-release-zts
135+
- test8.5-release
136+
- test8.5-release-zts
135137
before_script:
136138
<?php echo $ecrLoginSnippet, "\n"; ?>
137139
script:

.gitlab/generate-common.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"8.2" => "20220829",
1414
"8.3" => "20230831",
1515
"8.4" => "20240924",
16+
"8.5" => "20250925",
1617
];
1718

1819
$all_minor_major_targets = array_keys($php_versions_to_abi);

.gitlab/generate-package.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -506,14 +506,17 @@
506506
# Start the container
507507
docker run -v ${pwd}:C:\Users\ContainerAdministrator\app -d --name ${CONTAINER_NAME} ${IMAGE} ping -t localhost
508508

509-
# Build nts
510-
docker exec ${CONTAINER_NAME} powershell.exe "cd app; switch-php nts; C:\php\SDK\phpize.bat; .\configure.bat --enable-debug-pack; nmake; move x64\Release\php_ddtrace.dll extensions_x86_64\php_ddtrace-${ABI_NO}.dll; move x64\Release\php_ddtrace.pdb extensions_x86_64_debugsymbols\php_ddtrace-${ABI_NO}.pdb"
509+
# Build nts (fail fast on any step)
510+
docker exec ${CONTAINER_NAME} powershell.exe -Command "`$ErrorActionPreference='Stop'; `$PSNativeCommandUseErrorActionPreference=`$true; cd app; switch-php nts; & 'C:\\php\\SDK\\phpize.bat'; if (`$LASTEXITCODE -ne 0) { exit `$LASTEXITCODE }; .\\configure.bat --enable-debug-pack; if (`$LASTEXITCODE -ne 0) { exit `$LASTEXITCODE }; nmake; if (`$LASTEXITCODE -ne 0) { exit `$LASTEXITCODE }; Move-Item x64\\Release\\php_ddtrace.dll extensions_x86_64\\php_ddtrace-${ABI_NO}.dll -ErrorAction Stop; Move-Item x64\\Release\\php_ddtrace.pdb extensions_x86_64_debugsymbols\\php_ddtrace-${ABI_NO}.pdb -ErrorAction Stop"
511+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
511512

512-
# Reuse libdatadog build
513-
docker exec ${CONTAINER_NAME} powershell.exe "mkdir app\x64\Release_TS; mv app\x64\Release\target app\x64\Release_TS\target"
513+
# Reuse libdatadog build (fail if move fails)
514+
docker exec ${CONTAINER_NAME} powershell.exe -Command "`$ErrorActionPreference='Stop'; `$PSNativeCommandUseErrorActionPreference=`$true; New-Item -ItemType Directory -Force -Path 'app\\x64\\Release_TS' | Out-Null; Move-Item 'app\\x64\\Release\\target' 'app\\x64\\Release_TS\\target' -ErrorAction Stop"
515+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
514516

515-
# Build zts
516-
docker exec ${CONTAINER_NAME} powershell.exe "cd app; switch-php zts; C:\php\SDK\phpize.bat; .\configure.bat --enable-debug-pack; nmake; move x64\Release_TS\php_ddtrace.dll extensions_x86_64\php_ddtrace-${ABI_NO}-zts.dll; move x64\Release_TS\php_ddtrace.pdb extensions_x86_64_debugsymbols\php_ddtrace-${ABI_NO}-zts.pdb"
517+
# Build zts (fail fast on any step)
518+
docker exec ${CONTAINER_NAME} powershell.exe -Command "`$ErrorActionPreference='Stop'; `$PSNativeCommandUseErrorActionPreference=`$true; cd app; switch-php zts; & 'C:\\php\\SDK\\phpize.bat'; if (`$LASTEXITCODE -ne 0) { exit `$LASTEXITCODE }; .\\configure.bat --enable-debug-pack; if (`$LASTEXITCODE -ne 0) { exit `$LASTEXITCODE }; nmake; if (`$LASTEXITCODE -ne 0) { exit `$LASTEXITCODE }; Move-Item x64\\Release_TS\\php_ddtrace.dll extensions_x86_64\\php_ddtrace-${ABI_NO}-zts.dll -ErrorAction Stop; Move-Item x64\\Release_TS\\php_ddtrace.pdb extensions_x86_64_debugsymbols\\php_ddtrace-${ABI_NO}-zts.pdb -ErrorAction Stop"
519+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
517520

518521
# Try to stop the container, don't care if we fail
519522
try { docker stop -t 5 ${CONTAINER_NAME} } catch { }

.gitlab/generate-tracer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ function before_script_steps() {
654654
["8.2", "3.2.2"],
655655
["8.3", "3.3.2"],
656656
["8.4", "3.4.0"],
657+
// ["8.5", "3.5.0"], Xdebug not supported yet on 8.5
657658
];
658659
foreach ($xdebug_test_matrix as [$major_minor, $xdebug]):
659660
?>

Cargo.lock

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

0 commit comments

Comments
 (0)