Revert "Merge pull request #5594 from DataDog/apmlp-1090-remove-jruby… #4
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
| name: Test for memory leaks | |
| on: # yamllint disable-line rule:truthy | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| # Default permissions for all jobs | |
| permissions: {} | |
| jobs: | |
| test-memcheck: | |
| runs-on: ubuntu-24.04 | |
| env: | |
| BUNDLE_GEMFILE: gemfiles/ruby-3.4.gemfile | |
| BUNDLE_FROZEN: "true" | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ruby/setup-ruby@a30dfa457ad68707b8b910ac3a244714b61c0626 # v1.320.0 | |
| with: | |
| ruby-version: 3.4.1 | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| bundler: latest | |
| cache-version: v2 # bump this to invalidate cache | |
| - run: sudo apt-get update && (sudo apt-get install -y valgrind || sleep 5 && sudo apt-get install -y valgrind) && valgrind --version | |
| - run: bundle exec rake compile spec:profiling:memcheck spec:core_with_libdatadog_api_memcheck | |
| test-asan: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ruby/setup-ruby@a30dfa457ad68707b8b910ac3a244714b61c0626 # v1.320.0 | |
| with: | |
| ruby-version: asan-release | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| bundler: latest | |
| cache-version: v2 # bump this to invalidate cache | |
| - run: bundle exec rake spec:profiling:main | |
| env: | |
| RUBY_FREE_AT_EXIT: 1 | |
| LSAN_OPTIONS: verbosity=0:log_threads=1:suppressions=${{ github.workspace }}/suppressions/lsan.supp | |
| ASAN_OPTIONS: detect_leaks=1 | |
| complete: | |
| name: Test for memory leaks (complete) | |
| runs-on: ubuntu-24.04 | |
| needs: | |
| - test-memcheck | |
| - test-asan | |
| steps: | |
| - run: echo "DONE!" |