← Back to issue list

Incompatible base detection is too strict for non-Ubuntu bases

View original Github issue

Metadata

Project
craft-application
Number
#455
Type
issue
State
closed
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

Closed and deferred to internal Jira ticket CRAFT-3374. No fix was merged. The strict base version matching for non-Ubuntu systems remains unresolved.

Suggested action:

No scores available.

Issue body

### Bug Description [_validate_build_plan](https://github.com/canonical/craft-application/blob/2bda2579de8a4f5733486914cd4d9c9383fbcb3e/craft_application/services/lifecycle.py#L422-L440) requires the base to be *exactly* the same, not just the same major version. While this is fine for Ubuntu, for bases like Debian and Almalinux this results in errors like: 2024-08-23 22:30:02.737 Almalinux 9 builds cannot be performed on this Almalinux 9.4 system. ### To Reproduce See: https://github.com/canonical/charmcraft/actions/runs/10532931826/job/29188508635?pr=1824 ### part yaml ```shell n/a ``` ### Relevant log output ```shell 2024-08-23 22:30:02.732 Initialising lifecycle manager in /root 2024-08-23 22:30:02.733 Project vars: {'version': 'unversioned'} 2024-08-23 22:30:02.733 Adopting part: None 2024-08-23 22:30:02.734 Using parallel build count of 1 from CPU count 2024-08-23 22:30:02.735 Called not implemented method 'YUMRepository.configure' with name 'charmcraft' 2024-08-23 22:30:02.737 Almalinux 9 builds cannot be performed on this Almalinux 9.4 system. 2024-08-23 22:30:02.737 Detailed information: Builds must be performed on a specific system to ensure that the final artefact's binaries are compatible with the intended execution environment. 2024-08-23 22:30:02.738 Recommended resolution: Run a managed build, or run on a compatible host. 2024-08-23 22:30:02.995 Emitter: Resuming control of the terminal ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed and deferred to internal Jira ticket CRAFT-3374. No fix was merged. The strict base version matching for non-Ubuntu systems remains unresolved.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 40
Confidence: 80
Support Request: 10
needs triage Validation logic requires exact base version match instead of major version, causing build failures on non-Ubuntu bases like Almalinux 9.4. Unlabelled with no maintainer response since September 2024.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 30
Confidence: 70
Support Request: 10
needs triage Base validation requires exact version match instead of major version, causing build failures on non-Ubuntu bases. Open and awaiting maintainer triage.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 30
Confidence: 75
Support Request: 0
needs triage validate_build_plan enforces exact base version matches, causing build failures on non-Ubuntu bases like Almalinux when minor versions differ. The issue remains open with an internal Jira ticket created but no recent developer activity.

Update history

Date Change
closed

Related issues

No related issues found above the similarity threshold.