Run unit tests on Travis with mock armhf
Metadata
Current evaluation
Merged PR #1316 as commit b1e2a0e11, running Travis unit tests with platform.machine mocked as armhf to expose architecture-specific failures.
Resolution: closed resolved
Reason: PR #1316 was merged as commit b1e2a0e11. It added armhf machine mocking for Travis tests and incorporated the requested fixes for the resulting failing tests.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Since **Travis** doesn't run tests on _architectures_ other than **amd64** certain failures such as [bug 1690294](https://bugs.launchpad.net/snapcraft/+bug/1690294) only show up in autopkgtest runs. By mocking **platform.machine** globally they can be caught.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1316 as commit b1e2a0e11, running Travis unit tests with platform.machine mocked as armhf to expose architecture-specific failures. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1316 (commit b1e2a0e11) to mock platform.machine in Travis unit tests, exercising armhf and catching architecture-specific failures. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged to enable Travis armhf unit tests by globally mocking platform.machine. This catches cross-architecture failures previously only visible in autopkgtest. Reviewers approved the testing enhancement despite minor implementation feedback. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to add mocked armhf tests to Travis CI, catching architecture-specific failures. Incorporated feedback to mock _get_platform_machine instead of globally patching platform.machine, and fixed failing tests before integration. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft (launchpad)#1690294
(confidence 90%)
The architecture-specific failure cited in the PR motivated the new mocked-armhf test coverage.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1690294 arm LXD unit tests are failing | snapcraft (launchpad) | closed | Fixed by PRs #1315 and #1316, updating LXD platform mocking and running unit tests with mocked armhf. | |
| #1178 tests: make the kernel unit tests architecture independent. | snapcraft | merged | Merged PR #1178 in commit b2a31b957, making kernel unit tests mock architecture so they behave consistently on ARM. | |
| #1292 tests: fix the recording tests to work in multiple architectures | snapcraft | merged | PR #1292 merged into master (commit 0b00c6ce0): recording tests fixed to work across architectures, after #1291 began failing; maintainer noted Travis only runs amd64 so arm coverage comes from nightly autopkg runs. | |
| #945 Fix unittests in armhf | snapcraft | merged | Merged PR #945 as commit 073332b9b, making Snapcraft unit tests architecture-agnostic so they pass on armhf. |