tests: add representative fixture suite#1720
Open
ZeliardM wants to merge 10 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1720 +/- ##
=======================================
Coverage 93.21% 93.21%
=======================================
Files 157 157
Lines 9819 9819
Branches 1005 1005
=======================================
Hits 9153 9153
Misses 472 472
Partials 194 194 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ZeliardM
marked this pull request as ready for review
July 10, 2026 20:01
Collaborator
Author
|
Maintainer action required after this PR is merged: please update the branch-protection/ruleset required check from The existing Python 3.13 Ubuntu extras check is present again in the representative matrix for compatibility, but the new intended required gate is the exhaustive Python 3.14 Ubuntu job with all extras. The workflow order is now:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
devdependencies from generic feature unit teststests/README.mdWhy
The test suite has 203 captured device fixtures and previously expanded most generic behavior tests across every matching fixture. Device fixtures accounted for 22,182 of 23,066 collected cases, and 56 generic functions running against all 183 primary fixtures produced 11,163 cases by themselves.
The old CI matrix executed the complete suite approximately 16 times?roughly 369,000 pytest case executions per commit. Fixture growth automatically multiplied that workload and repeatedly exposed Windows/xdist instability.
Generic compatibility behavior does not need every firmware response on every operating system and Python version. Fixture-specific parsing and behavior still need exhaustive validation. This change separates those responsibilities instead of trying to make Windows execute the entire combinatorial suite reliably.
Fixture tiers
--fixture-set representativeretains all non-fixture parametrization and selects up to six diverse fixtures independently for each broadly parametrized test. Protocols present in a pool receive a reserved representative before a deterministic greedy set-cover pass selects additional capability-diverse fixtures. Pools of six or fewer fixtures are unchanged, preserving focused regression parametrization.--fixture-set allbypasses selection and remains the default for localuv run pytest, preserving existing exhaustive behavior unless representative mode is explicitly requested.Tests can use
@pytest.mark.all_fixturesto remain exhaustive in representative mode or@pytest.mark.fixture_representatives(limit)to request a broader per-test representative pool.CI structure
The required execution order is:
Perform Lint Checks (3.14)Preform Full Test Suite (3.14)on Ubuntu with all extras and--fixture-set allThe representative matrix uses
fail-fast: false, so all platform/version results remain visible if one combination fails. All Windows shard planning, batching, temp coverage, and artifact coordination are removed.The representative tier currently contains 3,259 cases and the exhaustive tier contains 22,708. Expected PR execution falls from roughly 369,000 cases to approximately 74,900 while retaining one complete fixture-expanded run and representative all-extras coverage on every supported Python version.
Required-check configuration
After merge, a maintainer with repository settings access must update the branch-protection/ruleset required check from
Python 3.13 on ubuntu-latest (extras)toPreform Full Test Suite (3.14). The existing Python 3.13 Ubuntu extras check remains present in the representative matrix, but the intended required gate is now the exhaustive full-suite job.Validation
git diff --checkpass