test: stabilize test_symbols_force_upload #18874
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 234 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.327
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #18874"
general
weight: 0.35
grantseltzer
<!-- dd-meta {"pullId":"ca1ffea5-0f40-424f-aa47-4b964e52eae3","source":"chat","resourceId":"93887992-255e-4157-87c1-e778a1c4a7b2","workflowId":"298b7755-78e0-4a25-855e-5c40e3c7c028","codeChangeId":"298b7755-78e0-4a25-855e-5c40e3c7c028","sourceType":"test-optimization"} -->
Description
Fixing
test_symbols_force_upload[py3.12]• Questions? Ask in #code-gen-flaky-testsMotivation
test_symbols_force_upload[py3.12]is flaky because this subprocess test implicitly requires empty stderr (err=""default), butddtrace-runoccasionally emits bootstrap warnings to stderr that are unrelated to the symbol upload assertions.Changes
tests/internal/symbol_db/test_symbols.pyto seterr=Noneontest_symbols_force_upload.Testing
scripts/run-tests tests/internal/symbol_db/test_symbols.py --listscripts/run-testswith the py3.12 internal venv hash; blocked by local podman/docker CNI/network setup in this sandbox.python -m pytest -q tests/internal/symbol_db/test_symbols.py -k test_symbols_force_upload(4 runs) was attempted as fallback, but could not load test environment due missing native test extensions in this sandbox.ruff format tests/internal/symbol_db/test_symbols.pyruff check --fix tests/internal/symbol_db/test_symbols.pyRisks
Low. This change only affects subprocess stderr expectations for one flaky test and does not modify production code.
Additional Notes
This keeps the test focused on symbol DB behavior instead of failing on non-deterministic bootstrap logging noise from
ddtrace-run.---
PR by Bits - View session in Datadog
Comment @datadog to request changes