[ruby] Enable FFE flag evaluation metrics tests [ruby@sameerank/FFL-1945/add-flag-eval-metrics]#6781
[ruby] Enable FFE flag evaluation metrics tests [ruby@sameerank/FFL-1945/add-flag-eval-metrics]#6781
Conversation
|
|
|
✨ Fix all issues with BitsAI or with Cursor
|
8092616 to
ac17848
Compare
ac17848 to
26cb77f
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 10bb7608c8
ℹ️ 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".
| gem 'faraday-follow_redirects', '~> 0.3' | ||
| # FFE related dependencies | ||
| gem 'openfeature-sdk', '~> 0.4' | ||
| gem 'openfeature-sdk', '~> 0.5' # v0.5.1+ required for provider hooks support |
There was a problem hiding this comment.
Constrain openfeature-sdk to 0.5.1-compatible versions
openfeature-sdk is declared as ~> 0.5, but this range also allows 0.6.x (and newer <1.0) releases. Since this change explicitly depends on provider hooks support from 0.5.1+, allowing 0.6.x can pull in a different API line during image builds and break the Datadog OpenFeature integration used by the FFE metrics tests. Pin this to the intended compatibility window (for example ~> 0.5.1 or >= 0.5.1, < 0.6).
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
This matches the upper bound that was previously in place (up to < 1.0), and the provided justification for limiting the minor version to < 0.6 contradicts our passing tests which use the latest available openfeature-sdk 0.6.5 version
https://github.com/DataDog/system-tests/actions/runs/24794277678/job/72560160287
Look for Using openfeature-sdk 0.6.5 in the "Build weblog" step during the bundle install output.
| rescue => e | ||
| Rails.logger.warn("Failed to flush OTel metrics: #{e.class}: #{e}") |
There was a problem hiding this comment.
I would suggest to surface exception as it will be better to see, this is testing app and suppose to highlight issues.
| begin | ||
| if defined?(::OpenTelemetry) && defined?(::OpenTelemetry::SDK::Metrics::MeterProvider) | ||
| meter_provider = ::OpenTelemetry.meter_provider | ||
| if meter_provider.is_a?(::OpenTelemetry::SDK::Metrics::MeterProvider) |
Motivation
Enable Ruby FFE (Feature Flagging and Experimentation) flag evaluation metrics tests for rails72 weblog, testing against dd-trace-rb PR DataDog/dd-trace-rb#5599.
Changes
test_flag_eval_metrics.pyin manifests/ruby.ymlopentelemetry-metrics-sdk,opentelemetry-exporter-otlp-metrics)openfeature-sdkto ~> 0.5 for provider hooks support/flushendpoint for proper test timingNotes
[ruby@sameerank/FFL-1945/add-flag-eval-metrics]from the PR title.Workflow
Reviewer checklist
tests/ormanifests/is modified ? I have the approval from R&P teambuild-XXX-imagelabel is present