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

Handle GitHub removing Py27 and move pytype from to Py3.8 to fix issues #93

Merged

Conversation

bernhardkaindl
Copy link
Collaborator

@bernhardkaindl bernhardkaindl commented Jun 13, 2023

Note: Because of the announcement of removal of Python 2.7 for setup-python in actions/setup-python#672, use a wrapper for setup-python which can build missing Python versions.

Commits:

@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Merging #93 (6c059b6) into master (6e930d1) will increase coverage by 3.23%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
+ Coverage   77.59%   80.83%   +3.23%     
==========================================
  Files          21       21              
  Lines        3468     3480      +12     
==========================================
+ Hits         2691     2813     +122     
+ Misses        777      667     -110     
Flag Coverage Δ
unittest 80.83% <ø> (+3.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 18 files with indirect coverage changes

@bernhardkaindl bernhardkaindl changed the title run-pytype.py: Empty the list of excludes and xfails CI: Use wrapper for setup-python and move pytype.py from Py3.10 to Py3.8 Jun 13, 2023
@bernhardkaindl bernhardkaindl changed the title CI: Use wrapper for setup-python and move pytype.py from Py3.10 to Py3.8 CI: Use wrapper for setup-python and move pytype from Py3.10 to Py3.8 Jun 13, 2023
run-pytype.py Outdated Show resolved Hide resolved
Copy link
Member

@psafont psafont left a comment

Choose a reason for hiding this comment

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

hopefully python2 can be dropped soon

.github/workflows/main.yml Outdated Show resolved Hide resolved
run-pytype.py Outdated Show resolved Hide resolved
run-pytype.py Outdated Show resolved Hide resolved
As pytype errors are fixed, clear excludes and xfails

Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
- pytype has several problems to import libraries when used on
  Python 3.10, therefore move it Python 3.8.
- tox.ini, GitHub CI: Remove builds for 3.7 and 3.9 builds
  because they showed intermittent pytest failures and
  we shoud not used them as new Python versions anyways.

Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
@bernhardkaindl bernhardkaindl force-pushed the pytype-no-xfails-no-excludes branch 7 times, most recently from 736de04 to afe42c7 Compare June 20, 2023 09:12
As GitHub removed Python 2.7 from the ubuntu-20.04 rootfs, use a
wrapper for setup-python which can build missing Python versions.

Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
- remove running pytest for py311-pyre: It means we run pytest for:
  tox -e py38-covcombine (Py3.8 and 2.7) -e py36-lint and -e py310-check
- run pyright after pyre to show annotations in GitHub code reviews

Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
@bernhardkaindl bernhardkaindl changed the title CI: Use wrapper for setup-python and move pytype from Py3.10 to Py3.8 Handle GitHub removing Py27 and move pytype from to Py3.8 to fix issues Jun 20, 2023
@bernhardkaindl bernhardkaindl merged commit e872c62 into xenserver:master Jun 20, 2023
7 checks passed
bernhardkaindl added a commit to rosslagerwall/python-libs that referenced this pull request May 8, 2024
…cks, fix saving all log messages (xenserver#92)

* CP-48447: Fix Python3 handling Exceptions from func_output calls
* CA-390127: Fix adding even the last log() messages to the output archive (xenserver#93)

Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants