Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEBUG-3249 remove usage of OpenStruct in DI #4274

Merged
merged 9 commits into from
Jan 10, 2025
Merged

DEBUG-3249 remove usage of OpenStruct in DI #4274

merged 9 commits into from
Jan 10, 2025

Conversation

p-datadog
Copy link
Member

@p-datadog p-datadog commented Jan 9, 2025

What does this PR do?
Removes usage of OpenStruct in dynamic instrumentation.

Adds ostruct as dependency for :test group, since OpenStruct is used in the test suite.

Removes ostruct dependency in all groups as added in #4271.

Motivation:
Fixing the ostruct warning produced by rubygems

Change log entry
None

Additional Notes:
I added explicit requires of ostruct to tests that use it.

How to test the change?

Copy link

github-actions bot commented Jan 9, 2025

Thank you for updating Change log entry section 👏

Visited at: 2025-01-09 23:56:20 UTC

@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Jan 9, 2025

Datadog Report

Branch report: ostruct-dep
Commit report: 387f88e
Test service: dd-trace-rb

✅ 0 Failed, 22124 Passed, 1477 Skipped, 5m 2.3s Total Time

@codecov-commenter
Copy link

codecov-commenter commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.71%. Comparing base (12add3a) to head (387f88e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4274      +/-   ##
==========================================
- Coverage   97.72%   97.71%   -0.02%     
==========================================
  Files        1354     1354              
  Lines       82418    82421       +3     
  Branches     4220     4220              
==========================================
- Hits        80544    80538       -6     
- Misses       1874     1883       +9     

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

@pr-commenter
Copy link

pr-commenter bot commented Jan 9, 2025

Benchmarks

Benchmark execution time: 2025-01-10 18:59:53

Comparing candidate commit 387f88e in PR branch ostruct-dep with baseline commit 12add3a in branch master.

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

@p-datadog p-datadog marked this pull request as ready for review January 9, 2025 23:56
@p-datadog p-datadog requested review from a team as code owners January 9, 2025 23:56
@ivoanjo ivoanjo linked an issue Jan 10, 2025 that may be closed by this pull request
Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

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

Marked request changes as the warning is actually still emitted with the current version ;)

lib/datadog/di/transport.rb Show resolved Hide resolved
ruby-2.5.gemfile Outdated Show resolved Hide resolved
Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

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

👍 LGTM Thanks for the second pass :)

lib/datadog/di/transport.rb Show resolved Hide resolved
p and others added 3 commits January 10, 2025 13:19
* master:
  [🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/12712388067
  Align simplcov version usage
  Instructions for running integration tests (#4260)
  Fix another checksum
  [🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/12711409236
  Move rubocop group
  [NO-TICKET] Disable flaky barrier spec
  Remove obsolete code from gateway watchers
  reduce the matrix
  reduce matrix
  skiping k8s profiling for ruby
  test needs k8s
  add 7.57.0
  reduce the matrix
  new k8s scenarios added
  K8s lib injection tests new scenarios
@p-datadog p-datadog merged commit c856145 into master Jan 10, 2025
388 checks passed
@p-datadog p-datadog deleted the ostruct-dep branch January 10, 2025 22:09
@github-actions github-actions bot added this to the 2.9.0 milestone Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: ostruct gem warning with Ruby 3.4
6 participants