-
Notifications
You must be signed in to change notification settings - Fork 402
54 lines (50 loc) · 1.81 KB
/
test-memory-leaks.yaml
File metadata and controls
54 lines (50 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.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!"