Skip to content

gh-160529: Fix profiler checks for synthetic frames and BusyBox - #160542

Merged
pablogsal merged 2 commits into
python:mainfrom
pablogsal:fix-160529-profiler-checks
Nov 24, 2026
Merged

pablogsal merged 2 commits into
python:mainfrom
pablogsal:fix-160529-profiler-checks

Conversation

@pablogsal

@pablogsal pablogsal commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

The collapsed-export format check rejects <unreadable frame>, <GC>, and <native> because these entries have no colon. The check now accepts those labels and retains the format requirement for ordinary entries.

The subprocess readiness check expects the executable name sleep, which causes a timeout when BusyBox provides the command. Compare executable file identity instead, so the check still waits for exec().

Fixes #160529.

@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Oct 23, 2026

@ivonastojanovic ivonastojanovic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! This should also fix #160334.

@pablogsal pablogsal added the needs backport to 3.15 bugs and security fixes label Oct 24, 2026
GriffinCanCode added a commit to GriffinCanCode/cpython that referenced this pull request Oct 29, 2026
ASan hit pythongh-160334 in the unchanged collapsed-stack profiler test.
The approved fix is tracked in pythongh-160542. Retry the same source
because this account cannot rerun upstream jobs.
@pablogsal

Copy link
Copy Markdown
Member Author

LGTM! Thanks for the review, Ivona!

@pablogsal
pablogsal enabled auto-merge (squash) November 24, 2026 12:33
@pablogsal
pablogsal merged commit 37b3e08 into python:main Nov 24, 2026
53 checks passed
@pablogsal
pablogsal deleted the fix-160529-profiler-checks branch November 24, 2026 13:14
@miss-islington-app

Copy link
Copy Markdown

Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Nov 24, 2026

Copy link
Copy Markdown

GH-162550 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_profiling is flaky

2 participants