tests depend on dpkg-architecture
Metadata
Current evaluation
Tests no longer depend on dpkg-architecture calls; ubuntu-core/snapcraft PR #314 was merged as commit 11c6e924e.
Resolution: closed resolved
Reason: PR #314 replaced the failing dpkg-architecture calls in integration tests and was merged into Snapcraft via commit 11c6e924e. The maintainer linked this resolving PR in the issue's final comment.
Evaluated by: mr-cal-bot
No scores available.
Issue body
======================================================================
ERROR: test_snap (test_snap.SnapTestCase)
test_snap.SnapTestCase.test_snap
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/tmp/adt-run.P9uO28/build.8Gs/snapcraft-2.2/integration_tests/test_snap.py", line 51, in test_snap
snap_file_path = 'assemble_1.0_{}.snap'.format(_get_deb_arch())
File "/tmp/adt-run.P9uO28/build.8Gs/snapcraft-2.2/integration_tests/test_snap.py", line 32, in _get_deb_arch
return _run_dpkg_architecture('-qDEB_BUILD_ARCH')
File "/tmp/adt-run.P9uO28/build.8Gs/snapcraft-2.2/integration_tests/test_snap.py", line 41, in _run_dpkg_architecture
['dpkg-architecture', arg], universal_newlines=True).strip()
File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 693, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1541, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'dpkg-architecture'
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Tests no longer depend on dpkg-architecture calls; ubuntu-core/snapcraft PR #314 was merged as commit 11c6e924e. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #314, which replaced direct dpkg-architecture calls in tests with Snapcraft architecture helpers. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed in merged canonical/snapcraft#314: integration tests now use Snapcraft’s architecture helpers instead of invoking dpkg-architecture directly, removing the missing-executable dependency. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed. Test failures caused by missing dpkg-architecture were fixed by removing the dependency and updating the test suite to handle architecture detection without external tools. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed by updating the test suite to remove the dependency on the missing dpkg-architecture command, resolving the integration test failure. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
ubuntu-core/snapcraft#314
(confidence 99%)
The merged PR replaced dpkg-architecture usage in the affected integration tests.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #314 Replace dpkg-architecure calls in tests | snapcraft | merged | PR #314 (sergiusens) merged, replacing tests' direct dpkg-architecture invocations with Snapcraft architecture helpers so the dependency is captured in snapcraft.yaml. Fixes LP bug #1544340. |