← Back to issue list

Setup the FakeParts store for all unit tests

View original Github issue

Metadata

Project
snapcraft
Number
#640
Type
pull request
State
merged
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #640 as a119759b8, adding FakeParts setup to five unit-test files so remote-parts tests initialize a consistent cache.

Resolution: closed resolved

Reason: PR #640 was merged into snapcraft with commit a119759b8, establishing the FakeParts fixture for all affected unit tests.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Now that we run snapcraft update by deftault to get an initial remote parts cache, most (not all) test require the FakeParts fixture to be setup. LP: #1600273 Signed-off-by: Sergio Schvezov sergio.schvezov@ubuntu.com

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #640 as a119759b8, adding FakeParts setup to five unit-test files so remote-parts tests initialize a consistent cache.
stealth/space-bunny-alpha — closed resolved PR #640 merged as commit a119759b8, setting up the FakeParts store in five unit-test files so tests consistently initialize the remote-parts cache (LP #1600273).
stealth/space-bunny-alpha — closed resolved Merged PR #640 (commit a119759b8) sets up the FakeParts store in five unit test files so tests no longer need the real remote parts cache. Approved by kyrofa and come-maiz, LP: #1600273.
stealth/space-bunny-alpha — closed resolved Merged in commit a119759b8, setting up FakeParts across five unit-test files so tests consistently initialize the remote-parts cache.
qwen/qwen3.6-35b-a3b — — Merged following two approvals. Configured the FakeParts fixture across five files to ensure unit tests properly initialize the remote parts cache via snapcraft update.
qwen3.6-35b-a3b-mtp-q6 — — Merged after two approvals. Configures the FakeParts fixture for all unit tests to support the default snapcraft update remote parts cache, resolving LP #1600273.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#604 (confidence 90%)

    The preceding remote-parts cache update work motivated consistent FakeParts setup in unit tests.

Related issues

Issue Project State Summary Similarity
#1600273 Add missing FakeParts snapcraft (launchpad) closed Missing FakeParts fixtures implemented via snapcore/snapcraft PR #640, merged as commit a119759b8 "Setup the FakeParts store for all unit tests"; maintainer sergiusens closed the bug pointing to that PR.
80%
#720 Start the fake parts server only in the tests that need it snapcraft merged Merged PR #720 in commit dd5116ade, making remote-part loading lazy and starting the fake parts server only for tests that require it.
74%
#1611828 All the unit tests start a fake parts server snapcraft (launchpad) closed Fixed in snapcraft#720 via commit dd5116ade, which starts the fake parts server only for unit tests that need it; the fix was reviewed and verified.
72%