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

[SDTEST-523] Expand test impact analysis with allocation tracing #197

Merged
merged 25 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1245ee7
fix service name for datadog sca
anmarchenko Jul 5, 2024
d11d74d
failing test as a base repro for the coverage limitation
anmarchenko Jul 5, 2024
7797a10
printing class names of the objects allocated during the test run
anmarchenko Jul 8, 2024
f007907
print filenames of objects instantiated during the test
anmarchenko Jul 8, 2024
a621640
heap allocation analysis: working POC that passes tests
anmarchenko Jul 8, 2024
dcc6f4b
skip anonymous classes
anmarchenko Jul 8, 2024
8a4b135
track classes already covered for the current test to skip computing …
anmarchenko Jul 8, 2024
5c737c0
Add unit tests that simulate issues encountered during integration te…
anmarchenko Jul 9, 2024
59df766
add setting for allocation tracing
anmarchenko Jul 10, 2024
ca32796
add use_allocation_tracing parameter for DDCov tool
anmarchenko Jul 10, 2024
955843c
rename some C functions, write more comments
anmarchenko Jul 10, 2024
b78f095
minor typo
anmarchenko Jul 10, 2024
2209587
finish comment
anmarchenko Jul 11, 2024
3fc3ac0
do not call CRuby API on NEWOBJ tracepoint, collect allocated classes…
anmarchenko Jul 12, 2024
4007592
move skipping anonymous classes to the tracepoint, add struct to tests
anmarchenko Jul 12, 2024
0b1618c
minor: comments, remove RUBY_T_DATA from the list of tracked object t…
anmarchenko Jul 12, 2024
912d9f4
use enum for threading mode
anmarchenko Jul 15, 2024
6e1d2e1
remove allocation_tracing_enabled field from dd_cov_data struct, set …
anmarchenko Jul 15, 2024
f076e90
if GC happens during DDCov allocation, it might segfault because klas…
anmarchenko Jul 15, 2024
df899ce
insert in hashtable without lookup
anmarchenko Jul 15, 2024
a020a39
pass dd_cov_data pointer directly to NEWOBJ tracepoint callback
anmarchenko Jul 15, 2024
d62aef2
simplify anonymoous class check with rb_mod_name
anmarchenko Jul 15, 2024
d318b3f
separate spec for Struct coverage, add spec for Data
anmarchenko Jul 15, 2024
9dde8c1
remove what should not have been committed
anmarchenko Jul 15, 2024
aebb1bf
use rb_protect to ignore exceptions instead of raise/rescue
anmarchenko Jul 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/datadog-sca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
with:
dd_api_key: ${{ secrets.DD_API_KEY }}
dd_app_key: ${{ secrets.DD_APP_KEY }}
dd_service: my-app
dd_service: datadog-ci-rb
dd_env: ci
dd_site: datadoghq.com
Loading
Loading