test(ffe): wait for ready evaluation metric response#7090
Draft
leoromanovsky wants to merge 1 commit into
Draft
Conversation
Contributor
|
|
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
FFE metric tests can observe Remote Config ACK before the tracer has installed the UFC payload locally. The sidecar ACK confirms delivery to the sidecar, not that a request thread will immediately evaluate against the new config.
That made
Test_FFE_Eval_Metric_Basictoo sensitive to startup timing: it could issue one evaluation immediately after RC setup, then assert metrics from a response that was still effectively not-ready/default behavior.Changes
Decisions
This is intentionally separate from #7033. #7033 can stay focused on enabling the PHP metric test in the manifest, while this PR makes the shared metric test resilient to the RC ACK/install timing boundary.
Related PRs
Validation
Static validation on this branch:
python -m ruff check tests/ffe/test_flag_eval_metrics.py python -m ruff format --check tests/ffe/test_flag_eval_metrics.py python -m mypy tests/ffe/test_flag_eval_metrics.py DOCKER_CONFIG=/tmp/codex-docker-config-no-creds PATH=/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH ./format.shResult: all passed.
Behavior validation using the same test change while validating DataDog/dd-trace-php#3911 locally:
Result:
17 passed in 81.26s.