ValueError: '26.10' is not a valid BuilddBaseAlias on `ensure_guest_compatible()`
Metadata
Current evaluation
Fixed by merged PR #980 (commit 628f199): ensure_guest_compatible() now skips validation for unknown Ubuntu bases, allowing devel releases instead of raising ValueError.
Resolution: closed resolved
Reason: Merged PR canonical/craft-providers#980, commit 628f199, changed compatibility checking to ignore unknown Ubuntu releases instead of converting their VERSION_ID to BuilddBaseAlias. This directly fixes the devel-base failure reported in #979.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Bug Description
This issue is related to #969, but with a different constraint. The context here is using `build-base: devel` in Rockcraft. This is a 'supported' build-base value in the sense that we accept it on the project level, so it's weird that this would then raise an error that effectively means we actually can't use `build-base: devel`.
Another argument is that `ensure_guest_compatible()` is only meant to check the very narrow case of focal host on plucky+ guest, so arguably it shouldn't fail on other configurations.
### To Reproduce
A rockcraft project with:
```yaml
base: base
build-base: devel
```
### part yaml
```shell
```
### Relevant log output
```shell
2026-06-22 09:04:15.228 File "/snap/rockcraft/4543/lib/python3.12/site-packages/craft_application/commands/lifecycle.py", line 123, in _run_manager_for_build_plan
2026-06-22 09:04:15.228 provider.run_managed(build, bool(fetch_service_policy))
2026-06-22 09:04:15.228 File "/snap/rockcraft/4543/lib/python3.12/site-packages/craft_application/services/provider.py", line 574, in run_managed
2026-06-22 09:04:15.228 with self.instance(
2026-06-22 09:04:15.228 File "/snap/rockcraft/current/usr/lib/python3.12/contextlib.py", line 137, in __enter__
2026-06-22 09:04:15.228 return next(self.gen)
2026-06-22 09:04:15.228 ^^^^^^^^^^^^^^
2026-06-22 09:04:15.228 File "/snap/rockcraft/4543/lib/python3.12/site-packages/craft_application/services/provider.py", line 263, in instance
2026-06-22 09:04:15.228 with provider.launched_environment(
2026-06-22 09:04:15.228 File "/snap/rockcraft/current/usr/lib/python3.12/contextlib.py", line 137, in __enter__
2026-06-22 09:04:15.228 return next(self.gen)
2026-06-22 09:04:15.228 ^^^^^^^^^^^^^^
2026-06-22 09:04:15.228 File "/snap/rockcraft/4543/lib/python3.12/site-packages/craft_providers/lxd/lxd_provider.py", line 242, in launched_environment
2026-06-22 09:04:15.228 bases.ensure_guest_compatible(
2026-06-22 09:04:15.228 File "/snap/rockcraft/4543/lib/python3.12/site-packages/craft_providers/bases/checks.py", line 115, in ensure_guest_compatible
2026-06-22 09:04:15.228 guest_base_alias = BuilddBaseAlias(guest_os_release.get("VERSION_ID"))
2026-06-22 09:04:15.228 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-06-22 09:04:15.228 File "/snap/rockcraft/current/usr/lib/python3.12/enum.py", line 757, in __call__
2026-06-22 09:04:15.228 return cls.__new__(cls, value)
2026-06-22 09:04:15.228 ^^^^^^^^^^^^^^^^^^^^^^^
2026-06-22 09:04:15.228 File "/snap/rockcraft/current/usr/lib/python3.12/enum.py", line 1171, in __new__
2026-06-22 09:04:15.228 raise ve_exc
2026-06-22 09:04:15.228 ValueError: '26.10' is not a valid BuilddBaseAlias
2026-06-22 09:04:15.228 Full execution log: '/home/tiago.nobrega@canonical.com/.local/state/rockcraft/log/rockcraft-20260622-090034.957094.log'
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #980 (commit 628f199): ensure_guest_compatible() now skips validation for unknown Ubuntu bases, allowing devel releases instead of raising ValueError. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #980 (commit 628f199): ensure_guest_compatible() now skips validation for unknown Ubuntu releases such as devel instead of raising ValueError. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed after triage and syncing to internal Jira ticket CRAFT-5227. No code fix or pull request was merged to resolve the ValueError when using build-base: devel. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed and triaged for internal tracking via Jira ticket CRAFT-5227. No explicit resolution or fix was documented in the provided context. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-providers#980
(confidence 100%)
Merged fix titled "fix: don't fail on unknown ubuntu bases" landed as commit 628f199.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #969 BuilddBaseAlias enum lookup raises bare ValueError — should raise a typed error | craft-providers | open | Resolved: compatibility checks now catch unknown host and guest Ubuntu VERSION_IDs and skip validation instead of leaking BuilddBaseAlias ValueError; no typed error was added. |