← Back to issue list

tests: make parametrized unit test order determinable

View original Github issue

Metadata

Project
snapcraft
Number
#4641
Type
pull request
State
merged
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #4641 in commit 612288366, making parametrized unit-test ordering deterministic so pytest-xdist can use multicore systems.

Resolution: closed resolved

Reason: PR #4641 was approved and merged as commit 612288366. It made parametrized unit-test ordering deterministic, enabling pytest-xdist to distribute tests across multicore systems.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This allows running tests with `pytest-xdist` to take advantage of multicore systems - [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you successfully run `tox run -m lint`? - [x] Have you successfully run `tox run -e test-py310`? (supported versions: `py39`, `py310`, `py311`, `py312`) -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #4641 in commit 612288366, making parametrized unit-test ordering deterministic so pytest-xdist can use multicore systems.
stealth/space-bunny-alpha — closed resolved Merged PR #4641 made parametrized unit-test ordering deterministic, enabling pytest-xdist to use multicore systems.
qwen/qwen3.6-35b-a3b — — Merged changes that make parametrized unit test order determinable, enabling parallel execution via pytest-xdist. Approved by two reviewers, passed CI, and modified two files.
qwen3.6-35b-a3b-mtp-q6 — — Merged to enable deterministic ordering of parametrized unit tests, allowing parallel execution via pytest-xdist. The change passed all checks, maintaining coverage at 88.33%.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#320 tests: use pytest-xdist to run tests in parallel craft-providers merged Merged PR #320 as commit 35b06f4, adding pytest-xdist for parallel test execution and building on merged PR #319.
74%
#276 tests: make integration tests work with pytest-xdist craft-providers closed Parallel pytest-xdist integration testing was ultimately merged in PR #320 as commit 35b06f4, replacing the closed #276 proposal.
72%