Skip to content

Conversation

@Jongy
Copy link
Contributor

@Jongy Jongy commented Sep 17, 2022

This PR adds full tests for the Python versions matrix: (python version, libc, profiler type).

Based on #477

Add:

  • uwsgi test (uwsgi --pyrun) gets metadata okay (incl python_version)
  • Python 2 sys_maxunicode test

More lines-of-code for the same task, but the image generators are much more clear now. This code
has become a hassle to work with, and now it's simple again :)
Full matrix of feature tests for py-spy & PyPerf across all desired versions.
This is what I suggested in #287 and finally got around to implement. I rather have
these in place before performing any other changes on PyPerf/py-spy.
Base automatically changed from break-application-docker-images to master September 21, 2022 09:35
@Jongy Jongy requested a review from netaneld122 September 21, 2022 21:55
Copy link
Contributor

@netaneld122 netaneld122 left a comment

Choose a reason for hiding this comment

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

LGTM

assert profile.app_metadata is not None
assert os.path.basename(profile.app_metadata["execfn"]) == app
# searching for "python_version.", because ours is without the patchlevel.
assert profile.app_metadata["python_version"].startswith(f"Python {python_version}.")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This tests #472 (becase we get the Python version from uwsgis as well here)

@Jongy Jongy merged commit 3ba38a4 into master Sep 22, 2022
@Jongy Jongy deleted the python-version-tests branch September 22, 2022 08:00
@Jongy Jongy added the tests label Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants