test: skip core dumps in tests that crash on purpose #21684
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 199 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.317
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #21684"
general
weight: 0.35
gyuheon0h
Description
Since #21097, CI collects every core dump from test jobs and uploads it as an artifact. Tests that crash on purpose fill this with noise:
test_faulthandler_traceback_on_segfaultleaves a 30-40 MB core on mostprofilingshards, and thecrashtrackersuite leaves about 1.2 GB per run.This sets
RLIMIT_COREto 0 in each process right before it crashes on purpose, so any core left incore-dumps/points to an unexpected crash. The parent test process keeps its limit.tests/crashtracker/test_crashtracker.py: the forked children and subprocess scripts that segfault or raise SIGSEGV/SIGBUS. Forked children call a newdisable_core_dumps()helper intests/crashtracker/utils.py.tests/profiling/test_faulthandler.py::test_faulthandler_traceback_on_segfault.The core limit doesn't change signal handling, so faulthandler output, crash reports and exit codes stay the same. CI collection scripts and
coredump_smokeare untouched.Testing
Local testrunner container (
ulimit -c unlimited,core_pattern=core), Python 3.12,scripts/run-tests:test_crashtracker_simple*andtest_faulthandler_traceback_on_segfaulteach leave acore(46 MB and 37 MB).crashtrackersuite (38 passed) andtest_faulthandler.py(19 passed) leave no core.Risks
None, test-only.
Additional Notes
Jira: PROF-16192
[PROF-16192]: https://datadoghq.atlassian.net/browse/PROF-16192?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ