Bug#979838: twisted: autopkgtest regression in testing: No such file or directory: 'ckeygen'

2021-02-12 Thread Sergio Durigan Junior
On Monday, January 11 2021, Paul Gevers wrote:

> autopkgtest [09:30:22]: test unit-tests-3: [---
> Traceback (most recent call last):
>   File
> "/usr/lib/python3/dist-packages/twisted/conch/test/test_ckeygen.py",
> line 86, in test_keygeneration
> self._testrun('ecdsa', '384')
>   File
> "/usr/lib/python3/dist-packages/twisted/conch/test/test_ckeygen.py",
> line 75, in _testrun
> subprocess.call(args)
>   File "/usr/lib/python3.9/subprocess.py", line 349, in call
> with Popen(*popenargs, **kwargs) as p:
>   File "/usr/lib/python3.9/subprocess.py", line 947, in __init__
> self._execute_child(args, executable, preexec_fn, close_fds,
>   File "/usr/lib/python3.9/subprocess.py", line 1819, in _execute_child
> raise child_exception_type(errno_num, err_msg, err_filename)
> builtins.FileNotFoundError: [Errno 2] No such file or directory: 'ckeygen'
> Traceback (most recent call last):
>   File
> "/usr/lib/python3/dist-packages/twisted/conch/test/test_ckeygen.py",
> line 105, in test_runBadKeytype
> subprocess.check_call(
>   File "/usr/lib/python3/dist-packages/twisted/trial/_synctest.py", line
> 352, in __exit__
> self._testCase.fail(
> twisted.trial.unittest.FailTest: builtins.FileNotFoundError raised
> instead of CalledProcessError:
>  Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/twisted/trial/_asynctest.py",
> line 111, in _run
> d = defer.maybeDeferred(
>   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
> 151, in maybeDeferred
> result = f(*args, **kw)
>   File "/usr/lib/python3/dist-packages/twisted/internet/utils.py", line
> 217, in runWithWarningsSuppressed
> result = f(*a, **kw)
>   File
> "/usr/lib/python3/dist-packages/twisted/conch/test/test_ckeygen.py",
> line 105, in test_runBadKeytype
> subprocess.check_call(
> ---  ---
>   File
> "/usr/lib/python3/dist-packages/twisted/conch/test/test_ckeygen.py",
> line 105, in test_runBadKeytype
> subprocess.check_call(
>   File "/usr/lib/python3.9/subprocess.py", line 368, in check_call
> retcode = call(*popenargs, **kwargs)
>   File "/usr/lib/python3.9/subprocess.py", line 349, in call
> with Popen(*popenargs, **kwargs) as p:
>   File "/usr/lib/python3.9/subprocess.py", line 947, in __init__
> self._execute_child(args, executable, preexec_fn, close_fds,
>   File "/usr/lib/python3.9/subprocess.py", line 1819, in _execute_child
> raise child_exception_type(errno_num, err_msg, err_filename)
> builtins.FileNotFoundError: [Errno 2] No such file or directory: 'ckeygen'
>

After some hours debugging/backporting fixes from upstream, I have
something that finally works.

Instead of going ahead and just uploading, I decided to open a MR first
because of the soft freeze (and also because the changes are
non-trivial).  Here's the link:

https://salsa.debian.org/python-team/packages/twisted/-/merge_requests/4

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/


signature.asc
Description: PGP signature


Bug#979838: twisted: autopkgtest regression in testing: No such file or directory: 'ckeygen'

2021-01-11 Thread Paul Gevers
Source: twisted
Version: 18.9.0-3
X-Debbugs-CC: debian...@lists.debian.org
Severity: serious
User: debian...@lists.debian.org
Usertags: regression

Dear maintainer(s),

With a not so recent change (March 2019) in testing the autopkgtest of
your package started to fail. I copied some of the output at the bottom
of this report. Can you please investigate the situation and fix it?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

https://ci.debian.net/data/autopkgtest/testing/amd64/t/twisted/9444048/log.gz

autopkgtest [09:30:22]: test unit-tests-3: [---
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/twisted/conch/test/test_ckeygen.py",
line 86, in test_keygeneration
self._testrun('ecdsa', '384')
  File
"/usr/lib/python3/dist-packages/twisted/conch/test/test_ckeygen.py",
line 75, in _testrun
subprocess.call(args)
  File "/usr/lib/python3.9/subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.9/subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1819, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
builtins.FileNotFoundError: [Errno 2] No such file or directory: 'ckeygen'
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/twisted/conch/test/test_ckeygen.py",
line 105, in test_runBadKeytype
subprocess.check_call(
  File "/usr/lib/python3/dist-packages/twisted/trial/_synctest.py", line
352, in __exit__
self._testCase.fail(
twisted.trial.unittest.FailTest: builtins.FileNotFoundError raised
instead of CalledProcessError:
 Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/twisted/trial/_asynctest.py",
line 111, in _run
d = defer.maybeDeferred(
  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
151, in maybeDeferred
result = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/twisted/internet/utils.py", line
217, in runWithWarningsSuppressed
result = f(*a, **kw)
  File
"/usr/lib/python3/dist-packages/twisted/conch/test/test_ckeygen.py",
line 105, in test_runBadKeytype
subprocess.check_call(
---  ---
  File
"/usr/lib/python3/dist-packages/twisted/conch/test/test_ckeygen.py",
line 105, in test_runBadKeytype
subprocess.check_call(
  File "/usr/lib/python3.9/subprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.9/subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.9/subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1819, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
builtins.FileNotFoundError: [Errno 2] No such file or directory: 'ckeygen'



OpenPGP_signature
Description: OpenPGP digital signature