ci(profiling): simplify profile suite test commands #21096
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 · 198 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 #21096"
general
weight: 0.35
gyuheon0h
Description
Simplifies the pytest commands of the
profile,profile-uwsgiandprofile-memallocsuites intests/profiling/suitespec.yml.tests/profiling/run.pyand callpytestdirectly. The wrapper used to apply gevent monkey-patching before pytest imported anything, whenDD_PROFILE_TEST_GEVENTwas set. That block was removed in #5105. Since then the wrapper has only re-run its argument withrunpy.run_module, so it behaves likepython -m pytest.--no-cov. Once #21087 is merged, pytest-cov no longer comes fromaddoptsinsetup.cfg, so there is nothing to disable.--benchmark-disablefromprofileandprofile-uwsgi. Neither suite runs a test that uses thebenchmarkfixture. The only one,test_memalloc_speed, is intests/profiling/collector/test_memalloc.py, whichprofileignores.profile-memallockeeps the flag.-v,--capture=no, the memalloc--ignores, and the ITR env vars stay as they are.Testing
scripts/lint suitespec-checkpasses.scripts/run-tests --listshows the new commands, and the environment hashes are unchanged, so no lockfiles need regenerating.Risks
This depends on #21087. If this PR merges first, the profiling suites start collecting coverage through the
--covoptions insetup.cfgaddoptsuntil #21087 lands. That would slow them down and could make timing-sensitive profiler tests flaky.Additional Notes
The command changes do not affect the environment hashes, so environments that are already built get reused.