lxd-type-base spread test is flaky due to lxd timeouts
Metadata
Current evaluation
Resolved flaky spread test failures caused by LXD container stop timeouts. Closed via pull request #4239.
Suggested action: —
No scores available.
Issue body
### Bug Description
This spread test often breaks due to LXD timeouts when stopping the container.
This may be relevant: https://discuss.linuxcontainers.org/t/failed-to-begin-transaction-context-deadline-exceeded/13247/6
### To Reproduce
Run the Ubuntu 20.04 spread tests in CI
### Relevant log output
https://github.com/snapcore/snapcraft/actions/runs/5391823831/jobs/9792027057#step:4:11778
```
+ /snap/bin/lxc start snapcraft-core20
+ /snap/bin/lxc exec snapcraft-core20 cat /etc/os-release
+ MATCH VERSION_CODENAME=focal
+ /snap/bin/lxc stop snapcraft-core20
Error: Failed shutting down instance, status is "Running": context deadline exceeded
Try `lxc info --show-log snapcraft-core20` for more info
-----
.
```
### Additional context
_No response_
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Resolved flaky spread test failures caused by LXD container stop timeouts. Closed via pull request #4239. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved flaky LXD spread test timeouts during container shutdown by merging pull request #4239. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed via pull request #4239, which resolved the flaky LXD spread test failures caused by container stop timeouts. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Resolved flaky spread test failures caused by LXD container stop timeouts. Closed via merged pull request #4239. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Resolved by merging PR #4239, which addressed LXD container stop timeouts causing the flaky spread test and stabilized CI. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4239 spread: improve resilience of lxd-type-base test | snapcraft | merged | Merged via squash to improve resilience of the lxd-type-base test, fixing frequent lxc stop timeouts on Google runners. Approved by reviewers with passing CI checks. | |
| #262 tests: install docker after lxd | rockcraft | merged | Merged test changes to install Docker after LXD, resolving order-dependent failures and a race condition. A separate PR will address the remaining flaky spread test. | |
| #1133 test(spread): make LXD refresh in prepare more reliable | craft-application | open | Retry only the known LXD auto-refresh transient error in spread prepare to avoid hard failures. Has 1 unresolved review comment, 49 days of inactivity, and failing CI checks. | |
| #6381 Openstack spread tests randomly fail with `Failed to run: /snap/lxd/current/sbin/lxd forkstart` | snapcraft | open | Intermittent LXD forkstart failures on shared Openstack infrastructure affecting all craft repos' spread tests (<0.5% failure rate); being tracked upstream at LXD #18857. | |
| #2983 tests: add LXD spread test | snapcraft | merged | Merged after reviewer approval and passing CI checks. Added LXD spread test to verify LXD builds and installs. Modified two files with 29 added lines. | |
| #5856 fix(spread): pack with lxd for core20 base tests | snapcraft | merged | Merged after two approvals. Updates spread tests to pack with LXD for core20 base tests. CI passed with one non-blocking schema diff failure. Related core20 and snapd test failures were resolved in separate PRs. | |
| #694 tests(spread): use LXD from `5.21/candidate` | rockcraft | merged | Updated spread tests to use LXD from 5.21/candidate, resolving main branch breakage from overlay filesystem mounting regressions. Establishes a stable testing baseline against LTS regressions. Merged after approval and passing CI. |