Repository navigation
Conversation
|
|
🎉 All green!🧪 All tests passed 🔗 Commit SHA: d6458fb | Docs | View more details | Give us feedback! |
Observe actual exposure diagnostics through child-process exit and clarify telemetry limits. Add strict boolean checks, continuation after flag errors, and valid experimentation opt-out coverage.
Pin the disabled opt-out default and cover fetch failures, invalid timestamps, and assignment metadata. Preserve HTTP status and original missing-export diagnostics, bind helper scripts to routes, and correct the endpoint documentation.
9ef7c05 to
d6458fb
Compare
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d6458fb6b8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
|
||
| assert "error" not in result, result | ||
| assert result["httpRequests"] == 0, result | ||
| assert result["exposureEvents"] == 0, result |
There was a problem hiding this comment.
Add an enabled control for the exposure-event observer
TEST-002: The new precomputation cases only assert that exposureEvents is zero; none exercises an exposure-producing SDK operation through this child's ffe:exposure:submit observer. A disconnected or incompatible diagnostic-channel subscription therefore passes every exposure assertion, leaving accidental exposure submission undetected. Add a paired enabled-SDK evaluation using the same build and capture path, and assert that the observer captures an exposure before relying on these zero counts.
AGENTS.md reference: AGENTS.md:L44-L46
Useful? React with 👍 / 👎.
Motivation
Extend the standalone rules-helper coverage merged in #8115 with local
precomputeConfiguration()coverage for the merged openfeature-js-client #448 (FFL-3536).Reports to Offline initialization and portable configuration helpers (#562).
Related PRs
precomputeConfiguration()main; independent of the other two PRsDatadogCoreProvider; codecs, lifecycle, updates, and opt-in exposure trackingmain; base for #8630fetchPrecomputedConfiguration()and consume them with the providerThese are complementary slices, not a three-PR stack. #8604 precedes #8630; this PR can merge independently. The other two PRs do not replace this PR's multi-context precomputation, partial-flag-error, and producer-policy coverage.
Changes
POST /ffe/precompute-configurationand its shared Python client method, reusing the existing fresh-process endpoint handling without initializing a tracer or OpenFeature provider.ffe:exposure:submituntil child-process exit: zero requests/exposures for local precomputation and exactly one request when fetching once for multiple contexts. Queued evaluation telemetry is not directly observed.Activation And Remaining Work
The new class remains
missing_featurein the Node manifest. The adapter importsdd-trace/openfeature/rules-based, so it requires the public tracer wrapper and its bundled SDK implementation, not just an updated standalone Node package. Existing non-Node file-level gates remain unchanged.An enabled-SDK positive control for this child's exposure observer remains follow-up coverage. Its zero-count assertions alone do not prove that the observer is connected to the SDK's exposure producer.
Before enabling the tests:
dd-trace-js, including the normal and vendored dependency updates and regenerated vendor bundle. EnsureconfigurationFromString,precomputeConfiguration, andConfigurationPrecomputeErrorare exported fromdd-trace/openfeature/rules-based.@slowplusmissing_featuremeans no automatic XPASS signal is expected. No release version is assumed here.For local testing with a containing custom tracer build:
Local Validation
mainata59bae5997634e9fcb05d0b7aa83136f3618321c, preserving the newer selection coverage/client APIs and manifest ordering.d50b38c2e4040946af79ec3d19f6483589a7ce13on Node 20.dd-trace/openfeature/rules-basedexport shim. It is not a full container-backed parametric or actual vendored-tracer integration run.ConfigurationFetchErrorhandling each failed the corresponding regression. Restoring the original adapter made the fetch-failure case pass again.configurationFromString is not a functiondiagnostic. These checks do not start the full tracer-instrumented parent server../format.sh --checkpassed on a clean archive with the exact fixes applied, including typing, import policy, Ruff, YAML/manifest validation, fixture checks, ShellCheck, and both Node linters. JavaScript syntax and whitespace checks passed.Historical Container Validation
The earlier container result below predates this rebase and the fourth precompute test. It is not evidence that the current branch passes against a released tracer:
b2a42f26ce9ece08e5d317563b4246163d5d0acfand the three pending public wrapper exports. This integration overlay is not committed and is not a released tracer build.