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

gh-132038: Make perf version check in test_perf_profiler more robust #132039

Merged
merged 2 commits into from
Apr 3, 2025

Conversation

itamaro
Copy link
Contributor

@itamaro itamaro commented Apr 3, 2025

Should work also if the version string includes a commit hash, like perf version 6.12.9.g242e6068fd5c

Should work also if the version string includes a commit hash, like `perf version 6.12.9.g242e6068fd5c`
@@ -501,7 +501,7 @@ def _is_perf_version_at_least(major, minor):
version = output.split()[2]
version = version.split("-")[0]
version = version.split(".")
version = tuple(map(int, version))
version = tuple(map(int, version[:2]))
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps add a note to the comment at the start of the function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

@AA-Turner AA-Turner merged commit b6c92ec into python:main Apr 3, 2025
38 checks passed
@AA-Turner
Copy link
Member

@itamaro backports?

@itamaro
Copy link
Contributor Author

itamaro commented Apr 3, 2025

@itamaro backports?

yeah we can backport to 3.13. not relevant to 3.12.
do I need to add a backport label on the issue or the PR?

@itamaro itamaro added the needs backport to 3.13 bugs and security fixes label Apr 4, 2025
@miss-islington-app
Copy link

Thanks @itamaro for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request 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]>
@bedevere-app
Copy link

bedevere-app bot commented Apr 4, 2025

GH-132058 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Apr 4, 2025
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.

2 participants