Skip to content
Open
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: 1 addition & 1 deletion .gitlab/collect_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ set -eo pipefail
mkdir -p "${CI_PROJECT_DIR}/artifacts/core_dumps"
find . -type f -name "core*" -exec head -c 4 "{}" \; -exec echo " {}" \; | grep -a ^.ELF | cut -d' ' -f2 | xargs -I % -n 1 cp % "${CI_PROJECT_DIR}/artifacts/core_dumps" || true
mkdir -p "${CI_PROJECT_DIR}/artifacts/diffs"
find . -type f -name '*.diff' -not -path "*/vendor/*" -exec cp --parents '{}' "${CI_PROJECT_DIR}/artifacts/diffs" \; || true
find . -type f \( -name '*.diff' -o -name "*.mem" \) -not -path "*/vendor/*" -exec cp --parents '{}' "${CI_PROJECT_DIR}/artifacts/diffs" \; || true
mkdir -p "${CI_PROJECT_DIR}/artifacts/tests"
find . -type f -name '*.xml' -path "*/artifacts/tests/*" -exec cp '{}' "${CI_PROJECT_DIR}/artifacts/tests/" \; || true
31 changes: 30 additions & 1 deletion Cargo.lock

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

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RUN_TESTS_CMD := DD_SERVICE= DD_ENV= REPORT_EXIT_STATUS=1 TEST_PHP_SRCDIR=$(PROJ

C_FILES = $(shell find components components-rs ext src/dogstatsd zend_abstract_interface -name '*.c' -o -name '*.h' | awk '{ printf "$(BUILD_DIR)/%s\n", $$1 }' )
TEST_FILES = $(shell find tests/ext -name '*.php*' -o -name '*.inc' -o -name '*.json' -o -name '*.yaml' -o -name 'CONFLICTS' | awk '{ printf "$(BUILD_DIR)/%s\n", $$1 }' )
RUST_FILES = $(BUILD_DIR)/Cargo.toml $(BUILD_DIR)/Cargo.lock $(shell find components-rs -name '*.c' -o -name '*.rs' -o -name 'Cargo.toml' | awk '{ printf "$(BUILD_DIR)/%s\n", $$1 }' ) $(shell find libdatadog/{build-common,datadog-ffe,datadog-ipc,datadog-ipc-macros,datadog-live-debugger,datadog-live-debugger-ffi,datadog-remote-config,datadog-sidecar,datadog-sidecar-ffi,datadog-sidecar-macros,libdd-alloc,libdd-common,libdd-common-ffi,libdd-crashtracker,libdd-crashtracker-ffi,libdd-data-pipeline,libdd-ddsketch,libdd-dogstatsd-client,libdd-library-config,libdd-library-config-ffi,libdd-log,libdd-libunwind-sys,libdd-telemetry,libdd-telemetry-ffi,libdd-tinybytes,libdd-trace-*,spawn_worker,tools/{cc_utils,sidecar_mockgen},libdd-trace-*,Cargo.toml} \( -type l -o -type f \) \( -path "*/src*" -o -path "*/examples*" -o -path "*/libunwind*" -o -path "*Cargo.toml" -o -path "*/build.rs" -o -path "*/tests/dataservice.rs" -o -path "*/tests/service_functional.rs" \) -not -path "*/datadog-ipc/build.rs" -not -path "*/datadog-sidecar-ffi/build.rs")
RUST_FILES = $(BUILD_DIR)/Cargo.toml $(BUILD_DIR)/Cargo.lock $(shell find components-rs -name '*.c' -o -name '*.rs' -o -name 'Cargo.toml' | awk '{ printf "$(BUILD_DIR)/%s\n", $$1 }' ) $(shell find libdatadog/{build-common,datadog-ffe,datadog-ipc,datadog-ipc-macros,datadog-live-debugger,datadog-live-debugger-ffi,datadog-remote-config,datadog-sidecar,datadog-sidecar-ffi,datadog-sidecar-macros,libdd-alloc,libdd-capabilities,libdd-capabilities-impl,libdd-common,libdd-common-ffi,libdd-crashtracker,libdd-crashtracker-ffi,libdd-data-pipeline,libdd-ddsketch,libdd-dogstatsd-client,libdd-library-config,libdd-library-config-ffi,libdd-log,libdd-libunwind-sys,libdd-telemetry,libdd-telemetry-ffi,libdd-tinybytes,libdd-trace-*,spawn_worker,tools/{cc_utils,sidecar_mockgen},libdd-trace-*,Cargo.toml} \( -type l -o -type f \) \( -path "*/src*" -o -path "*/examples*" -o -path "*/libunwind*" -o -path "*Cargo.toml" -o -path "*/build.rs" -o -path "*/tests/dataservice.rs" -o -path "*/tests/service_functional.rs" \) -not -path "*/datadog-ipc/build.rs" -not -path "*/datadog-sidecar-ffi/build.rs")
ALL_OBJECT_FILES = $(C_FILES) $(RUST_FILES) $(BUILD_DIR)/Makefile
TEST_OPCACHE_FILES = $(shell find tests/opcache -name '*.php*' -o -name '.gitkeep' | awk '{ printf "$(BUILD_DIR)/%s\n", $$1 }' )
TEST_STUB_FILES = $(shell find tests/ext -type d -name 'stubs' -exec find '{}' -type f \; | awk '{ printf "$(BUILD_DIR)/%s\n", $$1 }' )
Expand Down Expand Up @@ -211,7 +211,7 @@ test_extension_ci: $(SO_FILE) $(TEST_FILES) $(TEST_STUB_FILES) $(BUILD_DIR)/run-
\
export TEST_PHP_JUNIT=$(JUNIT_RESULTS_DIR)/valgrind-extension-test.xml; \
export TEST_PHP_OUTPUT=$(JUNIT_RESULTS_DIR)/valgrind-run-tests.out; \
$(ALL_TEST_ENV_OVERRIDE) $(RUN_TESTS_CMD) -d extension=$(SO_FILE) -m -s $$TEST_PHP_OUTPUT $(BUILD_DIR)/$(TESTS) && ! grep -e '^LEAKED TEST SUMMARY' $$TEST_PHP_OUTPUT; \
DD_SPAWN_WORKER_STABLE_TRAMPOLINE=1 $(ALL_TEST_ENV_OVERRIDE) $(RUN_TESTS_CMD) -d extension=$(SO_FILE) -m -s $$TEST_PHP_OUTPUT $(BUILD_DIR)/$(TESTS) && ! grep -e '^LEAKED TEST SUMMARY' $$TEST_PHP_OUTPUT; \
)

build_tea: TEA_BUILD_TESTS=ON
Expand Down
3 changes: 3 additions & 0 deletions dockerfiles/ci/xfail_tests/7.0.list
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ ext/openssl/tests/streams_crypto_method.phpt
ext/openssl/tests/tlsv1.0_wrapper.phpt
ext/openssl/tests/tlsv1.1_wrapper.phpt
ext/openssl/tests/tlsv1.2_wrapper.phpt
ext/openssl/tests/sni_server.phpt
ext/openssl/tests/sni_server_key_cert.phpt
ext/openssl/tests/bug74796.phpt
ext/pdo/tests/pdo_023.phpt
ext/pdo/tests/pdo_030.phpt
ext/pdo_sqlite/tests/bug43831.phpt
Expand Down
3 changes: 3 additions & 0 deletions dockerfiles/ci/xfail_tests/7.2.list
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ ext/openssl/tests/tls_wrapper.phpt
ext/openssl/tests/tlsv1.0_wrapper.phpt
ext/openssl/tests/tlsv1.1_wrapper.phpt
ext/openssl/tests/tlsv1.2_wrapper.phpt
ext/openssl/tests/sni_server.phpt
ext/openssl/tests/sni_server_key_cert.phpt
ext/openssl/tests/bug74796.phpt
ext/pdo/tests/pdo_023.phpt
ext/pdo/tests/pdo_030.phpt
ext/pdo_sqlite/tests/bug43831.phpt
Expand Down
3 changes: 3 additions & 0 deletions dockerfiles/ci/xfail_tests/7.3.list
Original file line number Diff line number Diff line change
Expand Up @@ -422,3 +422,6 @@ ext/standard/tests/http/ghsa-hgf5-96fm-v528-002.phpt
ext/standard/tests/http/ghsa-hgf5-96fm-v528-001.phpt
ext/standard/tests/http/ignore_errors.phpt
ext/openssl/tests/bug79145.phpt
ext/openssl/tests/sni_server.phpt
ext/openssl/tests/sni_server_key_cert.phpt
ext/openssl/tests/bug74796.phpt
3 changes: 3 additions & 0 deletions dockerfiles/ci/xfail_tests/7.4.list
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ ext/openssl/tests/tlsv1.0_wrapper.phpt
ext/openssl/tests/tlsv1.1_wrapper.phpt
ext/openssl/tests/tlsv1.2_wrapper.phpt
ext/openssl/tests/tlsv1.3_wrapper.phpt
ext/openssl/tests/sni_server.phpt
ext/openssl/tests/sni_server_key_cert.phpt
ext/openssl/tests/bug74796.phpt
ext/pcntl/tests/pcntl_unshare_01.phpt
ext/pcntl/tests/pcntl_unshare_03.phpt
ext/pdo/tests/pdo_023.phpt
Expand Down
3 changes: 3 additions & 0 deletions dockerfiles/ci/xfail_tests/8.0.list
Original file line number Diff line number Diff line change
Expand Up @@ -566,3 +566,6 @@ ext/standard/tests/http/ghsa-hgf5-96fm-v528-001.phpt
ext/standard/tests/http/ignore_errors.phpt
ext/standard/tests/general_functions/proc_open02.phpt
ext/openssl/tests/bug79145.phpt
ext/openssl/tests/sni_server.phpt
ext/openssl/tests/sni_server_key_cert.phpt
ext/openssl/tests/bug74796.phpt
3 changes: 3 additions & 0 deletions dockerfiles/ci/xfail_tests/8.1.list
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ ext/openssl/tests/tlsv1.0_wrapper.phpt
ext/openssl/tests/tlsv1.1_wrapper.phpt
ext/openssl/tests/tlsv1.2_wrapper.phpt
ext/openssl/tests/tlsv1.3_wrapper.phpt
ext/openssl/tests/sni_server.phpt
ext/openssl/tests/sni_server_key_cert.phpt
ext/openssl/tests/bug74796.phpt
ext/pcntl/tests/pcntl_unshare_01.phpt
ext/pcntl/tests/pcntl_unshare_02.phpt
ext/pcntl/tests/pcntl_unshare_03.phpt
Expand Down
3 changes: 3 additions & 0 deletions dockerfiles/ci/xfail_tests/8.2.list
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ ext/openssl/tests/tlsv1.0_wrapper.phpt
ext/openssl/tests/tlsv1.1_wrapper.phpt
ext/openssl/tests/tlsv1.2_wrapper.phpt
ext/openssl/tests/tlsv1.3_wrapper.phpt
ext/openssl/tests/sni_server.phpt
ext/openssl/tests/sni_server_key_cert.phpt
ext/openssl/tests/bug74796.phpt
ext/pcntl/tests/pcntl_unshare_01.phpt
ext/pcntl/tests/pcntl_unshare_02.phpt
ext/pcntl/tests/pcntl_unshare_03.phpt
Expand Down
3 changes: 3 additions & 0 deletions dockerfiles/ci/xfail_tests/8.3.list
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ ext/openssl/tests/tlsv1.0_wrapper.phpt
ext/openssl/tests/tlsv1.1_wrapper.phpt
ext/openssl/tests/tlsv1.2_wrapper.phpt
ext/openssl/tests/tlsv1.3_wrapper.phpt
ext/openssl/tests/sni_server.phpt
ext/openssl/tests/sni_server_key_cert.phpt
ext/openssl/tests/bug74796.phpt
ext/pcntl/tests/pcntl_unshare_01.phpt
ext/pcntl/tests/pcntl_unshare_02.phpt
ext/pcntl/tests/pcntl_unshare_03.phpt
Expand Down
3 changes: 3 additions & 0 deletions dockerfiles/ci/xfail_tests/8.4.list
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ ext/openssl/tests/tlsv1.0_wrapper.phpt
ext/openssl/tests/tlsv1.1_wrapper.phpt
ext/openssl/tests/tlsv1.2_wrapper.phpt
ext/openssl/tests/tlsv1.3_wrapper.phpt
ext/openssl/tests/sni_server.phpt
ext/openssl/tests/sni_server_key_cert.phpt
ext/openssl/tests/bug74796.phpt
ext/pcntl/tests/pcntl_unshare_01.phpt
ext/pcntl/tests/pcntl_unshare_02.phpt
ext/pcntl/tests/pcntl_unshare_03.phpt
Expand Down
3 changes: 3 additions & 0 deletions dockerfiles/ci/xfail_tests/8.5.list
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ ext/openssl/tests/tlsv1.0_wrapper.phpt
ext/openssl/tests/tlsv1.1_wrapper.phpt
ext/openssl/tests/tlsv1.2_wrapper.phpt
ext/openssl/tests/tlsv1.3_wrapper.phpt
ext/openssl/tests/sni_server.phpt
ext/openssl/tests/sni_server_key_cert.phpt
ext/openssl/tests/bug74796.phpt
ext/pcntl/tests/pcntl_unshare_01.phpt
ext/pcntl/tests/pcntl_unshare_02.phpt
ext/pcntl/tests/pcntl_unshare_03.phpt
Expand Down
6 changes: 6 additions & 0 deletions dockerfiles/ci/xfail_tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,9 @@ Disabled on versions: `8.1+`.

This test checks PHP's handling of excessively large QName prefix in SoapVar (a stress test for edge cases). With ddtrace loaded, the additional memory overhead causes the test to be killed before it can complete, due to hitting memory limits during the stress test.

## `ext/openssl/tests/sni_server.phpt`, `ext/openssl/tests/sni_server_key_cert.phpt`, `ext/openssl/tests/bug74796.phpt`

Disabled on all versions.

These are loopback TLS tests that do not check `SKIP_ONLINE_TESTS` and fail due to CI pod networking producing flakiness. The failures are unrelated to the tracer.

2 changes: 1 addition & 1 deletion libdatadog
Submodule libdatadog updated 133 files
18 changes: 17 additions & 1 deletion tests/ext/crashtracker_segfault.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,22 @@ $rr->waitForRequest(function ($request) {
%A{
"message": {
%A
"data_schema_version": "1.6",
"error": {
"is_crash": true,
"kind": "UnixSignal",
"message": "Process terminated with SI_USER (SIGSEGV)",
"thread_name": "%s",
"source_type": "Crashtracking",
"stack": {
"format": "Datadog Crashtracker 1.0",
"frames": [
%A
],
"incomplete": false
}
},
"experimental": {
"runtime_stack": {
"format": "Datadog Runtime Callback 1.0",
"frames": [
Expand All @@ -94,7 +110,7 @@ $rr->waitForRequest(function ($request) {
}
]
}
%A
},
"files": {
%A
},
Expand Down