Skip to content

test(openfeature): add canonical FFE fixture tests - #8441

Draft
leoromanovsky wants to merge 11 commits into
masterfrom
leo.romanovsky/ffe-canonical-fixtures-20260512
Draft

test(openfeature): add canonical FFE fixture tests#8441
leoromanovsky wants to merge 11 commits into
masterfrom
leo.romanovsky/ffe-canonical-fixtures-20260512

Conversation

@leoromanovsky

@leoromanovsky leoromanovsky commented May 12, 2026

Copy link
Copy Markdown
Contributor

Motivation

Use the shared FFE fixture corpus. This prevents copied JavaScript fixtures from drifting from other SDKs.

Identical submodule-backed canonical-fixture implementations are already merged in dd-trace-java and dd-trace-go. The shared evaluator implementation is also merged in libdatadog.

Related migrations are open for Python, Ruby, and .NET.

Changes

  • Add DataDog/ffe-system-test-data as a submodule under the OpenFeature tests.
  • Load the canonical configuration and evaluation cases in the provider test suite.
  • Assert canonical values and reasons.
  • Initialize the submodule in the OpenFeature unit workflow.
  • Configure weekly Dependabot updates for the submodule.

Decisions

  • Reuse the shared fixture repository instead of maintaining tracer-specific copies.
  • Keep malformed flags isolated, return ERROR for missing flags, and classify temporal, static, and split allocations.

@codecov

codecov Bot commented May 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.55%. Comparing base (bde44cb) to head (780f5ad).

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #8441    +/-   ##
========================================
  Coverage   98.55%   98.55%            
========================================
  Files         966      966            
  Lines      139409   139583   +174     
  Branches    12389    12100   -289     
========================================
+ Hits       137396   137570   +174     
  Misses       2013     2013            
Flag Coverage Δ
aiguard 56.98% <ø> (-0.03%) ⬇️
aiguard-integration 55.88% <ø> (ø)
apm-bucket-0 57.23% <ø> (-0.03%) ⬇️
apm-bucket-1 63.36% <ø> (-0.02%) ⬇️
apm-bucket-2 62.20% <ø> (-0.03%) ⬇️
apm-bucket-3 59.79% <ø> (-0.03%) ⬇️
apm-capabilities-tracing 62.32% <ø> (ø)
apm-integrations-aerospike 56.27% <ø> (-0.03%) ⬇️
apm-integrations-confluentinc-kafka-javascript 61.16% <ø> (-0.03%) ⬇️
apm-integrations-couchbase 56.71% <ø> (-0.03%) ⬇️
apm-integrations-http 61.90% <ø> (-0.02%) ⬇️
apm-integrations-kafkajs 61.71% <ø> (-0.03%) ⬇️
apm-integrations-next 59.40% <ø> (-0.03%) ⬇️
apm-integrations-prisma 58.51% <ø> (-0.02%) ⬇️
appsec 72.12% <ø> (-0.02%) ⬇️
appsec-express_fastify_graphql 69.42% <ø> (-0.02%) ⬇️
appsec-integration 50.17% <ø> (-0.01%) ⬇️
appsec-kafka_ldapjs_lodash 63.40% <ø> (-0.02%) ⬇️
appsec-mongodb-core_mongoose_mysql 66.86% <ø> (-0.02%) ⬇️
appsec-next 56.66% <ø> (-0.02%) ⬇️
appsec-node-serialize_passport_postgres 66.28% <ø> (-0.02%) ⬇️
appsec-sourcing_stripe_template 64.71% <ø> (-0.02%) ⬇️
debugger 64.24% <ø> (-0.04%) ⬇️
instrumentations-bucket-0 51.70% <ø> (-0.03%) ⬇️
instrumentations-bucket-1 59.39% <ø> (-0.03%) ⬇️
instrumentations-bucket-10 60.87% <ø> (-0.02%) ⬇️
instrumentations-bucket-11 61.60% <ø> (-0.02%) ⬇️
instrumentations-bucket-12 51.72% <ø> (-0.03%) ⬇️
instrumentations-bucket-13 52.45% <ø> (-0.03%) ⬇️
instrumentations-bucket-14 51.67% <ø> (-0.03%) ⬇️
instrumentations-bucket-2 53.15% <ø> (-0.03%) ⬇️
instrumentations-bucket-3 53.50% <ø> (-0.03%) ⬇️
instrumentations-bucket-4 58.76% <ø> (-0.03%) ⬇️
instrumentations-bucket-5 50.32% <ø> (-0.02%) ⬇️
instrumentations-bucket-6 60.50% <ø> (-0.03%) ⬇️
instrumentations-bucket-7 58.10% <ø> (-0.03%) ⬇️
instrumentations-bucket-8 59.08% <ø> (-0.02%) ⬇️
instrumentations-bucket-9 57.44% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-couchbase 50.97% <ø> (-0.03%) ⬇️
instrumentations-integration-esbuild 34.24% <ø> (ø)
llmobs-ai_anthropic_bedrock 62.84% <ø> (-0.02%) ⬇️
llmobs-bucket-1 61.34% <ø> (-0.02%) ⬇️
llmobs-openai 61.74% <ø> (-0.02%) ⬇️
llmobs-openai-agents_vertex-ai 60.02% <ø> (-0.03%) ⬇️
llmobs-sdk 66.78% <ø> (-0.03%) ⬇️
master-coverage 98.55% <100.00%> (?)
openfeature 55.75% <72.98%> (+0.06%) ⬆️
openfeature-unit 53.44% <100.00%> (+0.17%) ⬆️
platform-core_esbuild_instrumentations-misc 41.26% <ø> (-0.02%) ⬇️
platform-integration 60.42% <ø> (ø)
platform-shimmer_unit-guardrails_webpack 38.92% <ø> (-0.02%) ⬇️
plugins-bucket-0 56.92% <ø> (-0.02%) ⬇️
plugins-bucket-1 54.03% <ø> (ø)
plugins-bucket-11 61.47% <ø> (-0.03%) ⬇️
plugins-bucket-17 61.29% <ø> (-0.03%) ⬇️
plugins-bucket-18 61.92% <ø> (-0.02%) ⬇️
plugins-bucket-19 61.31% <ø> (-0.03%) ⬇️
plugins-bucket-20 63.72% <ø> (-0.03%) ⬇️
plugins-bucket-4 58.31% <ø> (-0.03%) ⬇️
plugins-bullmq_cassandra_cookie 61.37% <ø> (-0.03%) ⬇️
plugins-cookie-parser_crypto_dd-trace-api 56.35% <ø> (-0.03%) ⬇️
plugins-fetch_fs_generic-pool 58.26% <ø> (+0.01%) ⬆️
plugins-google-cloud-pubsub_grpc_handlebars 64.14% <ø> (-0.03%) ⬇️
plugins-hapi_hono_ioredis 59.90% <ø> (-0.03%) ⬇️
plugins-knex_langgraph_ldapjs 55.07% <ø> (-0.03%) ⬇️
plugins-light-my-request_limitd-client_lodash 58.38% <ø> (-0.02%) ⬇️
plugins-mariadb_memcached_mercurius 61.29% <ø> (-0.02%) ⬇️
plugins-mongodb_mongodb-core_mongoose 59.26% <ø> (-0.03%) ⬇️
plugins-multer_mysql_mysql2 58.85% <ø> (-0.03%) ⬇️
plugins-nats_node-serialize_opensearch 60.39% <ø> (-0.03%) ⬇️
plugins-passport-http_pino_postgres 58.59% <ø> (-0.03%) ⬇️
plugins-process_pug_redis 57.39% <ø> (-0.03%) ⬇️
plugins-undici_url_valkey 58.02% <ø> (-0.03%) ⬇️
plugins-vm_winston_ws 59.59% <ø> (-0.03%) ⬇️
profiling 61.51% <ø> (-0.03%) ⬇️
serverless-aws-sdk-aws-sdk 55.13% <ø> (-0.02%) ⬇️
serverless-aws-sdk-base-inject-field 50.94% <ø> (-0.03%) ⬇️
serverless-aws-sdk-bedrockruntime 54.66% <ø> (-0.02%) ⬇️
serverless-aws-sdk-client 56.22% <ø> (-0.03%) ⬇️
serverless-aws-sdk-dynamodb 55.50% <ø> (-0.02%) ⬇️
serverless-aws-sdk-eventbridge 49.74% <ø> (-0.02%) ⬇️
serverless-aws-sdk-kinesis 59.08% <ø> (-0.02%) ⬇️
serverless-aws-sdk-lambda 57.23% <ø> (-0.02%) ⬇️
serverless-aws-sdk-s3 55.59% <ø> (-0.02%) ⬇️
serverless-aws-sdk-serverless-peer-service 59.34% <ø> (-0.02%) ⬇️
serverless-aws-sdk-sns 59.88% <ø> (-0.02%) ⬇️
serverless-aws-sdk-sqs 60.30% <ø> (-0.02%) ⬇️
serverless-aws-sdk-stepfunctions 55.42% <ø> (-0.02%) ⬇️
serverless-aws-sdk-util 51.47% <ø> (-0.03%) ⬇️
serverless-bucket-0 54.07% <ø> (ø)
serverless-bucket-1 58.85% <ø> (-0.03%) ⬇️
test-optimization-cucumber 71.01% <ø> (-0.06%) ⬇️
test-optimization-cypress 64.85% <ø> (+0.07%) ⬆️
test-optimization-jest 72.45% <ø> (+<0.01%) ⬆️
test-optimization-mocha 72.11% <ø> (+0.03%) ⬆️
test-optimization-playwright-playwright-atr 59.89% <ø> (-0.02%) ⬇️
test-optimization-playwright-playwright-efd 60.02% <ø> (+0.05%) ⬆️
test-optimization-playwright-playwright-final-status 60.18% <ø> (-0.02%) ⬇️
test-optimization-playwright-playwright-impacted-tests 59.72% <ø> (+0.13%) ⬆️
test-optimization-playwright-playwright-reporting 60.88% <ø> (-0.12%) ⬇️
test-optimization-playwright-playwright-test-management 60.70% <ø> (-0.11%) ⬇️
test-optimization-playwright-playwright-test-span 59.93% <ø> (-0.08%) ⬇️
test-optimization-selenium 59.08% <ø> (-0.16%) ⬇️
test-optimization-testopt 57.62% <ø> (+0.07%) ⬆️
test-optimization-vitest 73.33% <ø> (+0.03%) ⬆️
test-optimization-vitest-browser 58.96% <ø> (-0.02%) ⬇️
test-optimization-webdriverio 65.46% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 7.99 MB
Deduped: 8.65 MB
No deduping: 8.65 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.3 | 125.43 kB | 441.68 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented May 12, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🔄 Datadog auto-retried 1 job - 1 passed on retry View in Datadog

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 98.56% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 780f5ad | Docs | Datadog PR Page | Give us feedback!

@pr-commenter

pr-commenter Bot commented May 12, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-10 20:51:16

Comparing candidate commit 780f5ad in PR branch leo.romanovsky/ffe-canonical-fixtures-20260512 with baseline commit bde44cb in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 2322 metrics, 36 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

Unstable benchmarks

These benchmarks have a confidence interval too wide to call a change; treat them as noise rather than signal.

scenario:appsec-appsec-enabled-24

  • unstable execution_time [-214.017ms; +218.311ms] or [-7.890%; +8.048%]

scenario:appsec-appsec-enabled-26

  • unstable execution_time [-238.953ms; +234.437ms] or [-9.231%; +9.056%]

scenario:appsec-appsec-enabled-with-attacks-24

  • unstable execution_time [-156.054ms; +166.856ms] or [-5.002%; +5.348%]

scenario:appsec-appsec-enabled-with-attacks-26

  • unstable execution_time [-202.380ms; +171.908ms] or [-6.885%; +5.848%]

scenario:appsec-control-20

  • unstable execution_time [-139.370ms; +116.243ms] or [-8.352%; +6.966%]

scenario:appsec-control-24

  • unstable execution_time [-113.116ms; +110.724ms] or [-9.056%; +8.865%]

scenario:appsec-control-26

  • unstable execution_time [-114.131ms; +133.547ms] or [-9.178%; +10.739%]

scenario:appsec-iast-no-vulnerability-control-20

  • unstable execution_time [-12.406ms; +19.195ms] or [-4.844%; +7.495%]

scenario:appsec-iast-no-vulnerability-iast-enabled-always-active-20

  • unstable execution_time [-18.959ms; +10.274ms] or [-7.258%; +3.933%]

scenario:appsec-iast-no-vulnerability-iast-enabled-default-config-20

  • unstable execution_time [-17.200ms; +9.101ms] or [-6.635%; +3.511%]

scenario:appsec-iast-with-vulnerability-control-20

  • unstable execution_time [-29.564ms; +37.129ms] or [-5.357%; +6.727%]

scenario:appsec-iast-with-vulnerability-iast-enabled-default-config-20

  • unstable execution_time [-26.461ms; +32.901ms] or [-4.780%; +5.944%]

scenario:debugger-line-probe-with-snapshot-default-24

  • unstable cpu_user_time [-990.680ms; +336.335ms] or [-12.353%; +4.194%]
  • unstable execution_time [-1007.328ms; +340.904ms] or [-11.520%; +3.899%]
  • unstable instructions [-8.6G instructions; +2.8G instructions] or [-13.206%; +4.221%]
  • unstable throughput [-142.659op/s; +371.813op/s] or [-3.844%; +10.019%]

scenario:debugger-line-probe-with-snapshot-minimal-26

  • unstable cpu_user_time [-2712.128ms; +4216.860ms] or [-28.410%; +44.172%]
  • unstable execution_time [-2887.627ms; +4467.972ms] or [-28.090%; +43.463%]
  • unstable instructions [-23.6G instructions; +37.5G instructions] or [-29.599%; +47.081%]
  • unstable max_rss_usage [-10.952MB; +14.191MB] or [-6.926%; +8.974%]
  • unstable throughput [-848.106op/s; +562.561op/s] or [-26.190%; +17.372%]

scenario:debugger-line-probe-without-snapshot-24

  • unstable cpu_user_time [-2.768s; +0.480s] or [-31.030%; +5.378%]
  • unstable execution_time [-2.775s; +0.458s] or [-28.881%; +4.765%]
  • unstable instructions [-23.8G instructions; +4.0G instructions] or [-32.616%; +5.535%]
  • unstable throughput [-150.943op/s; +780.059op/s] or [-4.309%; +22.270%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-273.705ms; +420.871ms] or [-5.809%; +8.932%]
  • unstable execution_time [-274.898ms; +422.430ms] or [-5.741%; +8.822%]
  • unstable throughput [-149842.777op/s; +98803.594op/s] or [-8.545%; +5.635%]

scenario:fs-subscribed-24

  • unstable execution_time [-14.454ms; +33.982ms] or [-3.575%; +8.406%]

scenario:plugin-aws-sdk-lambda-inject-with-context-24

  • unstable cpu_user_time [-108.886ms; +278.884ms] or [-2.849%; +7.296%]
  • unstable execution_time [-112.683ms; +281.267ms] or [-2.931%; +7.316%]

scenario:plugin-graphql-long-with-depth-off-26

  • unstable max_rss_usage [-40.277MB; +21.176MB] or [-21.247%; +11.171%]

scenario:plugin-graphql-long-with-depth-on-max-20

  • unstable cpu_user_time [-594.994ms; +575.202ms] or [-5.149%; +4.978%]
  • unstable execution_time [-604.310ms; +587.776ms] or [-5.128%; +4.988%]
  • unstable throughput [-3.447op/s; +3.535op/s] or [-5.048%; +5.178%]

scenario:plugin-mongodb-core-binary-hash-24

  • unstable execution_time [-144.353ms; +186.952ms] or [-4.981%; +6.451%]

@leoromanovsky
leoromanovsky force-pushed the leo.romanovsky/ffe-canonical-fixtures-20260512 branch from f3d8f67 to 43713f0 Compare July 30, 2026 01:34
gh-worker-dd-mergequeue-cf854d Bot pushed a commit to DataDog/dd-trace-go that referenced this pull request Jul 31, 2026
## Motivation

Use the shared FFE fixture corpus. This prevents copied Go fixtures from drifting from other SDKs.

The same migration is merged in [Java](DataDog/dd-trace-java#11355) and [libdatadog](DataDog/libdatadog#1979). Related migrations are open for [Python](DataDog/dd-trace-py#19390), [JavaScript](DataDog/dd-trace-js#8441), [Ruby](DataDog/dd-trace-rb#5742), and [.NET](DataDog/dd-trace-dotnet#8616).

## Changes and Decisions

- Add `DataDog/ffe-system-test-data` as an OpenFeature test submodule.
- Read all canonical configuration and evaluation cases from the submodule.
- Parse and validate flags independently so one invalid flag does not reject valid neighbors.
- Assert canonical values and reasons, including temporal defaults and missing-flag errors.
- Initialize submodules in Go test workflows and configure weekly Dependabot updates.

Co-authored-by: leo.romanovsky <leo.romanovsky@datadoghq.com>
@leoromanovsky leoromanovsky reopened this Aug 10, 2026
@leoromanovsky leoromanovsky changed the title Add canonical FFE fixture tests test(openfeature): add canonical FFE fixture tests Aug 10, 2026
@leoromanovsky
leoromanovsky marked this pull request as ready for review August 10, 2026 20:01
@leoromanovsky
leoromanovsky requested review from a team as code owners August 10, 2026 20:01
@leoromanovsky
leoromanovsky requested review from BridgeAR and removed request for a team August 10, 2026 20:01
@leoromanovsky
leoromanovsky requested review from dd-oleksii and pavlokhrebto and removed request for a team August 10, 2026 20:01

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 80676d91ef

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/dd-trace/src/openfeature/flagging_provider.js Outdated
Comment thread packages/dd-trace/src/openfeature/flagging_provider.js Outdated
}

function loadFixtureCases () {
const fixtureFiles = fs.readdirSync(fixtureCaseDir).filter(file => file.endsWith('.json')).sort()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make the fixture suite usable after a normal checkout

After a normal non-recursive clone—or when using a GitHub source archive—the new submodule directory has no evaluation-cases child, so this readdirSync throws ENOENT while the spec is loading and npm run test:openfeature cannot run at all. Only the dedicated CI checkout initializes the submodule, and no repository setup command or documentation initializes it for developers; add the initialization to the normal setup path or provide an actionable fixture bootstrap before loading the suite.

Useful? React with 👍 / 👎.

Comment thread packages/dd-trace/src/openfeature/flagging_provider.js Outdated
@leoromanovsky
leoromanovsky marked this pull request as draft August 10, 2026 20:14
sinon.assert.notCalled(mockChannel.publish)
})

it('preserves TYPE_MISMATCH when the requested type differs from the flag type', async () => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are these needed if they were in the fixtures?

})
}

function integerFlagConfiguration (value) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why

leoromanovsky added a commit to DataDog/dd-trace-dotnet that referenced this pull request Aug 14, 2026
## Motivation

Use the shared FFE fixture corpus so the .NET evaluator is checked
against the same behavior as the other tracer implementations. This
reduces fixture drift and gives us a repeatable way to expose and
correct evaluator bugs when new canonical cases are added.

The same fixture corpus is used by
[Java](DataDog/dd-trace-java#11355),
[libdatadog](DataDog/libdatadog#1979),
[Go](DataDog/dd-trace-go#4753),
[Python](DataDog/dd-trace-py#19390),
[JavaScript](DataDog/dd-trace-js#8441), and
[Ruby](DataDog/dd-trace-rb#5742).

## Changes

- Replace the legacy copied fixtures with a generated, checked-in
snapshot from `DataDog/ffe-system-test-data`.
- Record the exact upstream commit in `SOURCE.md`.
- Add a script that fetches, validates, and copies the canonical
configuration and evaluation cases.
- Add a weekly and manually dispatchable workflow that opens a signed
draft dependency PR only when fixture contents have changed.
- Parse flags independently so malformed flags do not reject valid
neighbors.
- Return `FLAG_NOT_FOUND` for missing flags and classify temporal,
static, and split allocations.
- Assert canonical values and reasons through the existing .NET
unit-test suite.

## Fixture update flow

When we add or change shared evaluator behavior, I imagine the flow
working like this:

1. Add the new configuration and evaluation cases to
[`DataDog/ffe-system-test-data`](https://github.com/DataDog/ffe-system-test-data)
and review the expected behavior there.
2. The weekly updater, or a manually dispatched run for a specific ref,
fetches the canonical repository and compares its fixture contents with
the checked-in .NET snapshot.
3. If nothing changed, the workflow exits without opening or updating a
PR.
4. If fixtures changed, the workflow copies them into this repository,
records the source commit, and opens a signed draft PR with the normal
dependency labels.
5. The .NET unit tests run against the updated cases. New tests may
intentionally fail when they catch an evaluator bug or unsupported
behavior.
6. Address those evaluator failures in the same dependency PR, keeping
the fixture expectations unchanged unless the shared expectation itself
is incorrect.
7. Merge the update once the .NET evaluator satisfies the new canonical
cases.

This keeps new behavior explicit and reviewable: fixture changes land in
the canonical repository first, and each tracer then gets a visible
compatibility PR rather than silently changing at build time.

## Decisions

- `DataDog/ffe-system-test-data` remains the canonical source of shared
evaluator behavior.
- Keep the generated snapshot checked in so local and CI unit tests do
not require network access or submodule initialization.
- Use a scheduled dependency-update workflow instead of a git submodule.
- Treat failures introduced by new canonical fixtures as useful
regression signals and fix the evaluator as part of accepting the
update.
- Do not create a PR when the canonical fixture contents are unchanged,
even if the upstream repository has unrelated commits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant