[APMAPI-1225] Add a new experimental flag DD_TRACE_EXPERIMENTAL_RUNTIME_ID_ENABLED flag #3599
This file contains 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 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.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: gem update --system 3.5.23 # TODO: This is a workaround for a buggy rubygems in 3.4.0-preview2; remove once stable version 3.4 is out | |
- run: bundle exec rake compile spec:profiling:memcheck | |
test-asan: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- uses: ruby/setup-ruby@04c2e2b8e83fbca87e4c7ea9c16e82a1c029c074 # Adds 3.4-asan builds | |
with: | |
ruby-version: 3.4-asan | |
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!" |