Integration tests are slow due to fixture ordering
Metadata
Current evaluation
Enhancement to reorder integration test fixtures for faster test execution by skipping early when snap installation is disabled
Suggested action: keep open
Reason: The issue is a valid enhancement suggestion about test fixture ordering that would improve test performance. The code pattern still exists in the current codebase (tests use both core22_lxd_instance and installed_snap fixtures), so the issue remains applicable. It was opened by a maintainer and has a label, indicating it has been acknowledged. However, it has been open for over 3 years with no comments or action, suggesting it's a low-priority optimization.
Impact:
40
Quick Win:
34.0
Staleness:
70
Complexity:
15
Confidence:
65
Support Request:
0
Issue body
The integration tests could be sped up by thoughtfully re-ordering the fixtures.
For example:
https://github.com/canonical/craft-providers/blob/427870dbea055f13dd38c92c203983e0fb16b8f6/tests/integration/actions/test_snap_installer.py#L26
First, `core20_lxd_instance` creates a LXD instance (which takes a long time), then `installed_snap` checks for the envvar `CRAFT_PROVIDERS_TESTS_ENABLE_SNAP_INSTALL`. If that envvar isn't true, then the test is skipped.
If `installed_snap` is the first fixture, the test could be skipped much quicker.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
40
Quick Win:
34.0
Staleness:
70
Complexity:
15
Confidence:
65
Support Request:
0
|
keep open | Enhancement to reorder integration test fixtures for faster test execution by skipping early when snap installation is disabled | |
| qwen/qwen3.6-35b-a3b |
Staleness:
70
Complexity:
15
Confidence:
85
Support Request:
0
|
keep open | Suggests reordering test fixtures to skip slow integration tests faster when environment conditions are not met. Open enhancement with no maintainer comments or activity in over a year. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
75
Complexity:
15
Confidence:
85
Support Request:
0
|
keep open | Optimizing integration test speed by reordering pytest fixtures to skip slow setup steps earlier. Open for ~3 years with recent activity, awaiting implementation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
45
Complexity:
20
Confidence:
85
Support Request:
0
|
needs triage | Optimization to reorder integration test fixtures to skip unnecessary setup faster. Currently open with no comments, labels, or assignee, awaiting initial assessment. |
Update history
No update history recorded yet.
Related issues
No related issues found above the similarity threshold.