← Back to issue list

lxd-type-base spread test is flaky due to lxd timeouts

View original Github issue

Metadata

Project
snapcraft
Number
#4236
Type
issue
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Flaky lxd-type-base spread test (LXC stop 'context deadline exceeded') fixed by PR #4239, squash-merged as commit ab2c13576 'spread: improve resilience of lxd-type-base test'.

Resolution: closed resolved

Reason: The issue was closed by @sergiusens citing PR #4239, which was squash-merged to main as commit ab2c13576 ("spread: improve resilience of lxd-type-base test"), making the test tolerant of LXC stop timeouts.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Flaky lxd-type-base spread test (LXC stop 'context deadline exceeded') fixed by PR #4239, squash-merged as commit ab2c13576 'spread: improve resilience of lxd-type-base test'.
stealth/space-bunny-alpha — closed resolved Fixed the flaky lxd-type-base spread test by improving resilience to LXC stop timeouts; PR #4239 was squash-merged as ab2c13576.
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.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcore/snapcraft#4239 (confidence 95%)

    PR referenced in the closing comment; squash-merged as ab2c13576.

  • Related To: snapcore/snapcraft#6009 (confidence 70%)

    Commit d0f1b4394 'test: remove core20 spread tests' later removed the core20/lxd-type-base spread test altogether once core20 support was dropped.

Related issues

Issue Project State Summary Similarity
#4140 Flaky spread tests snapcraft closed Flaky LXD spread-test timeouts were addressed by PR #4141 and commit 4b20c8435, which improved the resilience of the core18 lxd-type-base test.
87%
#4239 spread: improve resilience of lxd-type-base test snapcraft merged PR #4239 was squash-merged as ab2c13576, making the lxd-type-base spread test more resilient to frequent lxc stop timeouts on Google runners.
84%
#5856 fix(spread): pack with lxd for core20 base tests snapcraft merged Merged PR #5856 (commit 66b9ae9f4) updated Spread core20-base tests to pack with LXD.
74%
#2983 tests: add LXD spread test snapcraft merged Merged PR #2983 as 4b8522a14, adding spread coverage that builds the LXD package with LXD and destructive/host providers; installation checks were deferred.
73%
#2631 spread tests: enable LXD build provider tests snapcraft merged Merged PR #2631 enabled LXD build-provider spread tests and reused early-prepared LXD setup, reducing repeated setup and image-download overhead.
72%
#694 tests(spread): use LXD from `5.21/candidate` rockcraft merged Merged PR #694 in commit 90bc9b34, pinning spread tests to LXD 5.21/candidate to restore main and strengthen LTS regression coverage.
71%
#467 test(spread): use LXD provider for spread tests imagecraft closed PR closed without merge; spread LXD provider changes were implemented across follow-up PRs (#483, #485, #486, #487, #488, #495)
71%
#1133 test(spread): make LXD refresh in prepare more reliable craft-application closed Closed unmerged; its LXD auto-refresh race fix was superseded by merged PR #1170 (commit fea3e835), which waits for active snap refreshes during spread prepare.
71%
#99 Broken spread tests on 20.04 and 22.04 imagecraft closed Ubuntu 20.04/22.04 spread failures were fixed by merged PR #110 (commit 00f1348), correcting legacy LXD client handling in spread setup.
71%
#6381 Openstack spread tests randomly fail with `Failed to run: /snap/lxd/current/sbin/lxd forkstart` snapcraft open Intermittent LXD 'forkstart' failures (<0.5%) in the OpenStack spread environment across craft repos; reproduced under heavy host memory/CPU pressure and reported upstream to canonical/lxd#18857, no snapcraft-side fix yet
71%