Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_perf_profiler test failure if installed perf version string contains commit hash #132038

Open
itamaro opened this issue Apr 3, 2025 · 0 comments
Assignees
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@itamaro
Copy link
Contributor

itamaro commented Apr 3, 2025

Bug report

Bug description:

In some installations, the installed perf version string may contain a commit hash, for example:

>perf --version
perf version 6.12.9.g242e6068fd5c

this causes the test_perf_profiler to fail with:

ValueError: invalid literal for int() with base 10: 'g242e6068fd5c'

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

@itamaro itamaro added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Apr 3, 2025
@itamaro itamaro self-assigned this Apr 3, 2025
AA-Turner pushed a commit that referenced this issue Apr 3, 2025
…132039)

Should work also if the version string includes a commit hash, like `perf version 6.12.9.g242e6068fd5c`
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Apr 4, 2025
…obust (pythonGH-132039)

Should work also if the version string includes a commit hash, like `perf version 6.12.9.g242e6068fd5c`
(cherry picked from commit b6c92ec)

Co-authored-by: Itamar Oren <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant