Enable PHP FFE evaluation metric system tests#7033
Draft
leoromanovsky wants to merge 10 commits into
Draft
Conversation
Contributor
|
|
|
a412f4f to
fbc9822
Compare
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 evaluation metrics need system-test coverage before DataDog/dd-trace-php#3911 can be treated as review-ready. The PHP runtime now records
feature_flag.evaluationsthrough native/libdatadog-sidecar code, so we need the shared FFE metric tests enabled against a locally built PHP tracer artifact rather than relying only on PHPT coverage.Design doc: https://docs.google.com/document/d/1NvMfTpZWLBlFmEFNjdnlMyeVpy5l7KD8qujGFco6w2w/edit?tab=t.0
Changes
This PR enables
tests/ffe/test_flag_eval_metrics.pyfor PHP atv1.21.0-devin the manifest only. It intentionally does not enable exposure tests; exposure validation is tracked separately in #7031 so each PHP milestone can be reviewed independently.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#3911 and the sidecar metric delivery support is implemented in DataDog/libdatadog#2052.
Decisions
The scope is deliberately one manifest activation. The shared metric tests cover the expected
feature_flag.evaluationsbehavior, including successful evaluations, missing flags, malformed/empty RC handling, disabled flags, type mismatches, targeting keys, and allocation metadata.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
a412f4f6), dd-trace-php metric branch now pushed asdc19ce479, andlibdatadogsubmodule96d9a7bae:cd /Users/leo.romanovsky/go/src/github.com/DataDog/dd-trace-php-ffe-metrics-restack ./tooling/bin/build-debug-artifact gnu-aarch64-8.2-nts \ /Users/leo.romanovsky/go/src/github.com/DataDog/system-tests-pr7033/binariescd /Users/leo.romanovsky/go/src/github.com/DataDog/system-tests-pr7033 DOCKER_CONFIG=/tmp/system-tests-docker-config-nocredsstore \ SYSTEM_TEST_BUILD_TIMEOUT=1800 \ ./build.sh --library php --weblog-variant php-fpm-8.2Result:
17 passed in 81.28s.Post-rebase verification: branch head is now
fbc98222a, stacked on the updated parent, enablingtests/ffe/test_flag_eval_metrics.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 reused the locally built arm64
datadog/system-tests:php-fpm-8.2.base-v1. This PR remains only the manifest activation.