Repository navigation
test(profiling): cover asyncio task stack stitching - #21949
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
Conversation
Add regression tests for task stacks: a suspended task must not inherit a running sibling's frames, a running parent's sync frames must follow its suspended child's frames, and uvloop.run's wrapper must not appear in running task stacks.
Codeowners resolved asResolved from the full PR diff against |
Dependency direction analysis
|
Showing a running parent's sync frames under a suspended child is questionable, so don't lock it in here.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
/merge |
|
View all feedbacks in Devflow UI.
It will be processed automatically as soon as GitHub reports it as mergeable. View in MergeQueue UI.
The expected merge time in
Build pipeline has failing jobs for 91335d3: What to do next?
This build will be kept for 3h more. During that period, you can retry the pipeline or the failing jobs and then re-run the same command! |
There was a problem hiding this comment.
More details
Both regression checks require captured task stacks, preventing missing profiler samples from silently satisfying the sibling-frame and uvloop-wrapper assertions. No actionable defect was identified.
🤖 Bits Code Review · Commit 6a36254
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
Description
Adds regression tests for two task stack properties the profiler already handles on
main:uvloop.rundon't include itswrapperframe.These guard upcoming changes to task stack collection in #19085, where earlier revisions broke both.
Testing
The new tests in
tests/profiling/collector/test_asyncio_task_stacks.pypass onmainwith CPython 3.12 and uvloop. The uvloop test skips when uvloop isn't installed.Risks
None. Test-only.
Additional Notes
No release note because this only adds tests. JIRA: PROF-14213.