oamg / convert2rhel

A tool to automate converting Oracle/CentOS/Scientific/Rocky/Alma Linux and CentOS Stream to Red Hat Enterprise Linux
GNU General Public License v3.0
104 stars 84 forks source link

chore: add concurrent pytest runs #1388

Closed Venefilyn closed 2 months ago

Venefilyn commented 2 months ago

This adds concurrent pytest runs through pytest-xdist and automatically decides how many processes it can start. Overall speeding up the tests to around the slowest test to execute at the moment rather than having to wait 10x that amount

Ref: https://pytest-xdist.readthedocs.io/en/stable/distribution.html

Note: the latest release of pytest-xdist that supports py27 is 1.34.0

Jira Issues:

-

Checklist

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.52%. Comparing base (065ff23) to head (10218cc). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1388 +/- ## ======================================= Coverage 96.52% 96.52% ======================================= Files 70 70 Lines 5065 5065 Branches 881 881 ======================================= Hits 4889 4889 Misses 98 98 Partials 78 78 ``` | [Flag](https://app.codecov.io/gh/oamg/convert2rhel/pull/1388/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=oamg) | Coverage Δ | | |---|---|---| | [centos-linux-7](https://app.codecov.io/gh/oamg/convert2rhel/pull/1388/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=oamg) | `92.01% <ø> (ø)` | | | [centos-linux-8](https://app.codecov.io/gh/oamg/convert2rhel/pull/1388/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=oamg) | `92.88% <ø> (ø)` | | | [centos-linux-9](https://app.codecov.io/gh/oamg/convert2rhel/pull/1388/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=oamg) | `92.92% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=oamg#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

has-bot commented 2 months ago

This PR does not require integration tests to be run.


Comment generated by an automation.

Log | Bot Usage