← Back to issue list

All the unit tests start a fake parts server

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1611828
Type
issue
State
closed
Author
~elopio
Labels
verification-done
Created
Updated
Closed

Current evaluation

Fixed by modifying the unit test base class to conditionally start the fake parts server only when required, reducing suite execution time. Marked verification-done.

Suggested action:

No scores available.

Issue body

The base class for all unit tests is starting a local server for the parts index, even for the tests that don't need it. This makes the suite slower.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Fixed by modifying the unit test base class to conditionally start the fake parts server only when required, reducing suite execution time. Marked verification-done.
qwen/qwen3.6-35b-a3b Fixed and verified. Removed unnecessary fake parts server startup from the base test class, optimizing the unit test suite and reducing execution time.
qwen/qwen3.6-35b-a3b Fixed by removing the unnecessary fake parts server startup from the base test class, improving suite performance. Verified and closed.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#720 Start the fake parts server only in the tests that need it snapcraft merged Merged by @kyrofa to load remote parts lazily and start the fake parts server only in required tests. The change optimizes test execution across six files.
75%
#640 Setup the FakeParts store for all unit tests snapcraft merged Merged following two approvals. Configured the FakeParts fixture across five files to ensure unit tests properly initialize the remote parts cache via snapcraft update.
70%