Investigation: Spread test failures are due to craft_providers snapd initialization issue
Metadata
Current evaluation
Documentation-only PR adding craft-providers-bug-report.md about spread test failures from a snapd socket-activation race in LXD containers. Inactive ~8.5 months; the recommended retry fix was merged upstream in craft-providers.
Suggested action: close stale
Reason: The PR is a +200/-0 single-file documentation change with no maintainer review and no activity since 2025-12-08 (263 days). Its purpose is moot: the bug report was filed upstream as canonical/craft-providers#870, and craft-providers main now contains commit e0f6bc7 'fix: retry "snap watch" (#899)' which wraps snap_watch in retry.retry_until_timeout inside _disable_and_wait_for_snap_refresh — exactly the retry-with-backoff fix this PR recommended, so the in-repo bug report document is no longer applicable.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
10
Quick Win:
9.0
Staleness:
85
Complexity:
10
Confidence:
82
|
close stale | Documentation-only PR adding craft-providers-bug-report.md about spread test failures from a snapd socket-activation race in LXD containers. Inactive ~8.5 months; the recommended retry fix was merged upstream in craft-providers. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
90
Complexity:
15
Confidence:
90
|
close stale | Investigation documentation for spread test failures pointing to craft-providers. Adds a bug report markdown file. Currently inactive and pending external resolution. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
90
Complexity:
10
Confidence:
90
|
close stale | Documents investigation into spread test failures caused by craft_providers snapd initialization. Adds a bug report markdown file. Currently inactive for 7 months. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
10
Confidence:
95
|
close stale | Documents investigation into spread test failures caused by craft_providers snapd initialization. Maintainer confirmed the proposed fix was ineffective and redirected the issue to an upstream bug report. PR is inactive and irrelevant to this repository. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
5
Confidence:
95
|
close stale | Investigation into spread test failures caused by snapd initialization errors in craft_providers LXD containers. Root cause identified upstream; bug report drafted with recommended retry logic. Awaiting upstream triage and assignment. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-providers#899
(confidence 85%)
Commit e0f6bc7 'fix: retry snap watch (#899)' adds retry_until_timeout around snap_watch in _disable_and_wait_for_snap_refresh, the exact fix this PR's bug report recommended for the 'daemon is stopping to wait for socket activation' error.
-
Related To:
canonical/craft-providers#870
(confidence 80%)
Upstream issue matching this PR's investigation: snapd socket-activation race during LXD container initialization, with the same recommended retry-based fix; the PR's bug report was filed there per @lengau's request.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3962 Setup snapd for snapcraft_legacy providers | snapcraft | merged | Merged a fix for failing spread tests caused by missing snapd sockets in LXD containers. The change adopts snapd initialization logic from craft-providers to properly start the service, resolving connection errors. Approved and passed CI. | |
| #2020691 Snapcraft spread tests should be tested with every provider | snapcraft (launchpad) | closed | Spread tests run inconsistently across LXD and Multipass providers due to differing base image contents. Suggests running tests on all providers to ensure compatibility. Currently untriaged and inactive for nearly 3 years. | |
| #806 Use `snapcraft test` for spread tests | craft-application | open | Dogfooding task to switch craft-application CI from running spread directly to using snapcraft test. Triaged; open PR #1038 stalled ~165 days with failing CI; workflow still runs spread directly at HEAD. |