← Back to issue list

Snap configure hook timing out in CI

View original Github issue

Metadata

Project
charmcraft
Number
#1982
Type
issue
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Configure-hook CI timeouts were fixed by merged PR #1984 (commit 02539ab0), preventing hooks from triggering the slow implicit installation of LXD.

Resolution: closed resolved

Reason: PR #1984 was merged as commit 02539ab0 and explicitly fixes #1982 by checking whether LXD is installed before running the snap hooks.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description The `configure` hook will often time out in CI, as reported by @jnsgruk ### To Reproduce See: - https://github.com/jnsgruk/zinc-k8s-operator/actions/runs/11626972684/job/32379535656?pr=297 - https://github.com/jnsgruk/concierge/actions/runs/11627000431/job/32379648837#step:6:162 ### Environment GitHub CI (see above projects ### charmcraft.yaml ```yaml n/a ``` ### Relevant log output ```shell snap install charmcraft --channel latest/stable --classic 2024-11-01T09:08:42Z INFO Waiting for automatic snapd restart... error: cannot perform the following tasks: - Run configure hook of "charmcraft" snap if present (run hook "configure": <exceeded maximum runtime of 5m0s>) ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Configure-hook CI timeouts were fixed by merged PR #1984 (commit 02539ab0), preventing hooks from triggering the slow implicit installation of LXD.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR canonical/charmcraft#1984 (commit 02539ab0), which checks whether LXD is installed before snap hooks run, preventing the timeout.
qwen3.6-35b-a3b-mtp-q6 — — Closed without a code fix. Root cause identified: the lxc wrapper on Ubuntu 24.04 triggers a background LXD installation that exceeds the 5-minute timeout. Workaround: pre-install LXD or use Ubuntu 22.04. Internal ticket CRAFT-3625 tracks further resolution.
qwen/qwen3.6-35b-a3b — — Closed without a code fix after identifying the root cause: the lxc wrapper on Ubuntu 24.04 installs LXD, taking ~20 minutes and exceeding the 5-minute hook timeout. Resolved by recommending workarounds to preinstall LXD or use Ubuntu 22.04.
qwen/qwen3.6-35b-a3b — — Closed. Timeout caused by Ubuntu 24.04 lacking LXD, triggering a slow lxc wrapper installation. Workaround: pre-install LXD or use Ubuntu 22.04. Internal ticket CRAFT-3625 tracks the fix.
qwen3.6-35b-a3b-mtp-q6 — — Closed without a code fix. Root cause identified: the lxc wrapper on Ubuntu 24.04 installs LXD, exceeding the 5-minute hook timeout. Workaround: pre-install LXD or use Ubuntu 22.04.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#1984 (confidence 100%)

    Merged fix adding an early LXD installation check to prevent hook timeouts.

Related issues

Issue Project State Summary Similarity
#1987 Charmcraft snap fails to install due to a timeout on the configure hook charmcraft closed Resolved by merged PR #1984 (commit 02539ab0), which checks that LXD is installed before snap hooks call lxc, avoiding implicit LXD installation and configure-hook timeouts.
71%