← Back to issue list

Make tests platform-agnostic

View original Github issue

Metadata

Project
craft-parts
Number
#1255
Type
issue
State
open
Author
bepri
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed
—

Current evaluation

Make craft-parts tests architecture-agnostic so they can run on arm64/s390x/ppc64el instead of hardcoded "amd64". QA workflow now already tests several arches; residual hardcoded arch assumptions and skips remain.

Suggested action: keep open

Reason: Triaged enhancement authored by maintainer bepri, and lengau added concrete scope ("we should update the QA workflow to include at least... ubuntu-24.04-arm, ppc64el, s390x"). Partial progress already landed — qa.yaml now lists ubuntu-22.04/24.04-arm and ["noble", "s390x", "ppc64el", "edge"], with commits a20b49d1 (#1311) and a85b4349 (#1568) — but genuine residue remains, e.g. test_chisel_lifecycle.py still carries `skipif(platform.machine() == "ppc64el")` citing #1301 and test_dotnet.py skips on non-x86_64, so the goal is not yet met and the issue must stay open.

Evaluated by: mr-cal-bot

Impact: 48 Quick Win: 14 Complexity: 55 Confidence: 78 Actionability: 65

Issue body

### What needs to get done Some tests depend on being run strictly on an AMD64 architecture - they should be changed to work on any arch. ### Why it needs to get done Currently we can't run tests on other supported architectures due to hardcoded strings like `"amd64"` in tests.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 48
Quick Win: 14
Complexity: 55
Confidence: 78
Actionability: 65
keep open Make craft-parts tests architecture-agnostic so they can run on arm64/s390x/ppc64el instead of hardcoded "amd64". QA workflow now already tests several arches; residual hardcoded arch assumptions and skips remain.
qwen/qwen3.6-35b-a3b
Impact: 45
Quick Win: 20
Complexity: 40
Confidence: 75
Actionability: 75
keep open Enhancement to make tests platform-agnostic by removing hardcoded 'amd64' strings so tests can run on any architecture.
qwen/qwen3.8-27b
Impact: 45
Quick Win: 20
Staleness: 60
Complexity: 55
Confidence: 72
Support Request: 0
keep open Tests have hardcoded amd64 strings preventing execution on other architectures. CI runners for arm/s390x/ppc64el have been added, but 45 hardcoded amd64 references remain in test files. Triaged, no recent activity in ~12 months.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 45
Confidence: 80
Support Request: 5
keep open Enhancement to remove hardcoded AMD64 architecture dependencies in tests, enabling cross-platform execution. Issue is triaged but inactive for over 321 days with pending CI runner updates.
qwen3.6-35b-a3b-mtp-q6
Staleness: 70
Complexity: 45
Confidence: 85
Support Request: 0
keep open Enhancement to remove hardcoded AMD64 dependencies in tests and update CI runners for cross-architecture support. Currently triaged and awaiting implementation.

Update history

No update history recorded yet.

Related work

  • Blocked By: craft-parts#1301 (confidence 85%)

    tests/integration/lifecycle/test_chisel_lifecycle.py skipif reason explicitly cites 'https://github.com/canonical/craft-parts/issues/1301'; that open chisel/manifest digest bug still blocks green ppc64el test runs.

  • Related To: craft-parts#1568 (confidence 70%)

    Commit a85b4349 'ci: use ubuntu-22.04-arm runners' already added the multi-arch CI runners lengau asks for here, satisfying part of the request.

Related issues

No related issues found above the similarity threshold.