-
Notifications
You must be signed in to change notification settings - Fork 63
Description
I am working on creating an official Debian package for KeepKey, but I need some help running the tests. Debian has a build system called pybuild that can automatically run upstream tests using pytest during the build. This makes sure that the program works correctly with all the dependencies packaged in Debian. There is also a second system called autopkgtest that can be run at any time against the Debian package, which can be run automatically whenever a dependency is updated in Debian to make sure it doesn't break KeepKey.
Usually this process is fairly automatic, but when I try to run the tests in the Debian environment, I just get a timeout error with no other information:
[...]
dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /builds/python-team/packages/python-keepkey/debian/output/source_dir/.pybuild/cpython3_3.13/build; python3.13 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0
rootdir: /builds/python-team/packages/python-keepkey/debian/output/source_dir
plugins: typeguard-4.4.2
collected 297 items
tests/test_basic.py Terminated
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=143: cd /builds/python-team/packages/python-keepkey/debian/output/source_dir/.pybuild/cpython3_3.13/build; python3.13 -m pytest tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
WARNING: step_script could not run to completion because the timeout was exceeded. For more control over job and script timeouts see: https://docs.gitlab.com/ee/ci/runners/configure_runners.html#set-script-and-after_script-timeouts
ERROR: Job failed: execution took longer than 1h0m0s seconds
In case it is useful, the build and test environment is setup by the debian/control file, which lists all the packages that are available during build and testing.
Source: python-keepkey
Section: python
Priority: optional
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Uploaders: Soren Stoutner <soren@debian.org>,
Manuel Guerra <ar.manuelguerra@gmail.com>
Build-Depends: debhelper-compat (= 13),
dh-sequence-python3,
python3-all,
python3-setuptools,
python3-dev,
libusb-1.0-0-dev,
libudev-dev,
python3-usb1,
python3-hid,
python3-mnemonic,
python3-protobuf,
python3-ecdsa,
python3-pytest <!nocheck>,
python3-semver <!nocheck>,
python3-requests <!nocheck>
Testsuite: autopkgtest-pkg-pybuild
Homepage: https://keepkey.com
Vcs-Git: https://salsa.debian.org/python-team/packages/python-keepkey.git
Vcs-Browser: https://salsa.debian.org/python-team/packages/python-keepkey
Rules-Requires-Root: no
Standards-Version: 4.7.2
Package: python3-keepkey
Architecture: any
Depends: ${python3:Depends},
${misc:Depends},
udev
Description: Python library for KeepKey Hardware Wallet
This package provides a Python library for communicating with the
KeepKey Hardware Wallet, a Bitcoin and cryptocurrency hardware wallet.
.
It's a modified version of python-trezor with changes to support KeepKey's
protocol and additional features.
.
Includes udev rules for KeepKey device access.
Package: keepkeyctl
Architecture: all
Depends: ${misc:Depends},
python3:any,
python3-keepkey (>= ${source:Version})
Section: utils
Description: Command line tool for KeepKey Hardware Wallet
This package provides the keepkeyctl command line interface
for interacting with KeepKey devices.
I need your help to successfully pass the tests and be able to officially have keepkey in Debian and all derived distributions.