DataDog / datadog-ci-rb

Ruby library for Datadog test visibility
https://docs.datadoghq.com/continuous_integration/tests/ruby
Other
8 stars 4 forks source link

[SDTEST-744] add memory leaks tests with ruby_memcheck #246

Closed anmarchenko closed 2 weeks ago

anmarchenko commented 2 weeks ago

What does this PR do? Adds https://github.com/Shopify/ruby_memcheck gem to automatically find and report memory leaks using valgrind. This PR mostly copies the setup from dd-trace-rb which was done in https://github.com/DataDog/dd-trace-rb/pull/3852

Motivation Prevent memory leaks from the native extension

How to test the change? Github Actions workflow is added

codecov-commenter commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.86%. Comparing base (c12ad86) to head (157b0d8).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #246 +/- ## ======================================= Coverage 98.86% 98.86% ======================================= Files 279 279 Lines 13603 13603 Branches 637 637 ======================================= Hits 13449 13449 Misses 154 154 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.