Repository navigation
Conversation
Contributor
|
|
🎉 All green!🧪 All tests passed 🔗 Commit SHA: 1c05831 | Docs | View more details | Give us feedback! |
This was referenced Nov 20, 2026
Exercise both package entry points over real HTTP, context-bound codec round trips, fingerprint mapping, scripted encoding and selection responses, opt-out acknowledgments, and transport failures. Reuse the shared mock with an isolated precomputed timeline and keep CI activation gated.
Pair the standalone fetch zero-event check with an explicitly tracked SDK evaluation on the same channel, and measure the pre-tracking fetch phase separately.
sameerank
force-pushed
the
sameerank/node-precomputed-fetch-system-tests
branch
from
November 21, 2026 00:08
13e2af6 to
6df409c
Compare
Load the tracer's vendored SDK entry points, observe the original request origin, and cover nested context snapshots plus opt-out validation. Exercise raw JSON:API bodies and transport fixtures in mock self-tests, and clarify activation dependencies.
sameerank
marked this pull request as ready for review
November 21, 2026 02:25
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. |
datadog-datadog-prod-us1
Bot
requested review from
leoromanovsky and
typotter
November 21, 2026 05:52
This branch has not been deployed
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
Add direct coverage for the Node
fetchPrecomputedConfiguration()helper introduced in the merged openfeature-js-client #462. Verify request mapping and fetched snapshot consumption, rather than local rules precomputation.Related PRs
precomputeConfiguration()main; independent of the other two PRsDatadogCoreProvider; codecs, lifecycle, updates, and opt-in exposure trackingmain; base for this PRfetchPrecomputedConfiguration()and consume them with the providerThese are complementary slices, not a three-PR stack. Merge #8604 before this PR, then retarget this PR to
main. #8267 can merge independently. This PR adds the fetch-specific slice; #8604 owns provider lifecycle and standalone codec coverage.Changes
precomputedresponse timeline and detached POST-body capture. Reuse the existing rules transport-fault machinery. Self-tests cover raw JSON:API bytes, malformed/invalid-UTF-8 bodies without response consumption, redirect destinations, and wrong content types. Existing JSON/protobuf timelines remain independent.missing_feature; other SDK adapters remainincomplete_test_app. Report under portable configuration feature #562.The mock's encoding, selection and opt-out outcomes are scripted: these tests pin SDK request mapping and response handling, not live Datadog evaluation, encoding negotiation, or rollout decisions. Future-only opt-out tests validate the helper/wire without asking the Node provider to implement that policy.
Activation And Remaining Work
The adapter loads the tracer's vendored root and
/rules-basedSDK bundles, matching #8604's provider probe. It bypasses the public tracer wrapper. Tracer-owned hook attachment and intake delivery are not part of this slice.Before enabling the tests:
dd-trace-js, including normal and vendored dependencies and the regenerated vendor bundle.Review of this gated fetch coverage does not require enabling the tests.
Local Validation
1404bdce4d515f6f6a1fe74ef94de068d56c7521), which includesmainat943fc3a6b66656bff8fced2d30c84b383c89a05c./rules-basedbundles using dd-trace-js's real Rspack runtime configuration, then ran the actual Python methods and Node adapter against the shared HTTP mock in a packed-like layout with no standalone Node SDK package available. The localdd-tracemetadata is a resolution anchor, not a full tracer installation. The full container-backed parametric server, public tracer wrapper, and intake delivery were not run../format.sh --checkpassed on a clean source snapshot, including mypy, Ruff, import policy, manifest/YAML validation, ShellCheck and the existing Node linter containers. JavaScript syntax checks passed.For a custom test build containing the required Node/Core dependency: