Enable PHP FFE exposure system tests#7031
Draft
leoromanovsky wants to merge 10 commits into
Draft
Conversation
|
This was referenced May 28, 2026
a27a887 to
f54c036
Compare
Contributor
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
PHP FFE exposure logging now lives in the native dd-trace-php/runtime path and needs the shared FFE exposure system-tests enabled so regressions are caught outside local dogfooding. The M1 evaluation PR only proves remote-config evaluation; this stacked PR adds the next validation layer for exposure emission and cache behavior.
Planning/reference doc: https://docs.google.com/document/d/1NvMfTpZWLBlFmEFNjdnlMyeVpy5l7KD8qujGFco6w2w/edit?tab=t.0
Changes
This PR enables
tests/ffe/test_exposures.pyfor PHP atv1.21.0-dev. It intentionally does not enable FFE evaluation-metric tests; those belong to a separate stacked PR for DataDog/dd-trace-php#3911 and #7033.The PR is stacked on #7003, which adds the PHP FFE scaffold and evaluation-test enablement. The PHP behavior being validated here is implemented in DataDog/dd-trace-php#3910 and the sidecar delivery/cache support is implemented in DataDog/libdatadog#2026.
Decisions
The scope is deliberately one manifest activation. The shared exposure tests already cover the required product behavior: event generation, multiple RC files, malformed/empty RC handling, same-subject deduplication, different-subject emission, allocation/variant changes,
doLog=false, missing flags, and empty targeting keys.The local proof uses a matched PHP 8.2 NTS artifact and the
php-fpm-8.2weblog, which matches the PHP 8.2 target Bob recommended for FFE system-test iteration.Related PRs
Validation
Local behavior validation before this conflict-resolution rebase (previous system-tests PR head
a27a887bb), dd-trace-php exposure branch now pushed as416749dd3, andlibdatadogsubmodule8be471fbc:cd /Users/leo.romanovsky/go/src/github.com/DataDog/dd-trace-php-ffe-runtime-first ./tooling/bin/build-debug-artifact gnu-aarch64-8.2-nts \ /Users/leo.romanovsky/go/src/github.com/DataDog/system-tests-pr7031/binariescd /Users/leo.romanovsky/go/src/github.com/DataDog/system-tests-pr7031 DOCKER_CONFIG=/tmp/system-tests-docker-config-nocredsstore \ SYSTEM_TEST_BUILD_TIMEOUT=1800 \ ./build.sh --library php --weblog-variant php-fpm-8.2Result:
11 passed in 78.22s.Post-rebase verification: branch head is now
f54c036f4, stacked on the updated parent, enablingtests/ffe/test_exposures.pyatv1.21.0-devto match #7003.PATH=/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH ./format.shpassed. The rebase only changed the manifest activation floor; the test behavior and local PHP artifact path above did not change.MacOS arm64 local-run note: the published PHP 8.2 base image inspected locally was amd64-only, so the local validation first built
datadog/system-tests:php-fpm-8.2.base-v1for arm64 using./utils/build/build_php_base_images.sh php-fpm-8_2. The temporary local base-image build tweak was reverted; this PR remains only the manifest activation.