Package: src:kas
Version: 4.8.2-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202510/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:kas, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild --with bash-completion
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --with python3 --buildsystem=pybuild --with bash-completion
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make -C docs man
make[2]: Entering directory '/<<PKGBUILDDIR>>/docs'
Generate kas-container usage documentation

[... snipped ...]

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/kas.py:198: in kas
    plugin.run(args)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/plugins/checkout.py:62: 
in run
    macro.run(ctx, args.skip)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libcmds.py:116: in run
    if _run_single(cmd[0]) and cmd[1]:
       ^^^^^^^^^^^^^^^^^^^
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libcmds.py:110: in 
_run_single
    command.execute(ctx)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libcmds.py:402: in execute
    ssh_setup_agent()
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libkas.py:395: in 
ssh_setup_agent
    (_, output) = run_cmd(['ssh-agent', '-s'], env=env,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cmd = ['ssh-agent', '-s']
cwd = 
'/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_noenv_0/test_ssh_agent_setup'
env = {'LANG': 'en_US.UTF-8', 'LANGUAGE': 'en_US:en', 'LC_ALL': 'en_US.UTF-8', 
'http_proxy': 'http://127.0.0.1:9/', ...}
fail = True, capture_stderr = False

    def run_cmd(cmd, cwd, env=None, fail=True, capture_stderr=False):
        """
            Runs a command synchronously.
        """
        env = env or get_context().environ
        cmdstr = ' '.join(cmd)
        logging.debug('%s$ %s', cwd, cmdstr)
    
        try:
            ret = subprocess_run(cmd, env=env, cwd=cwd, stdout=PIPE, 
stderr=PIPE)
            if ret.returncode and fail:
>               raise CommandExecError(cmd, ret.returncode)
E               kas.kasusererror.CommandExecError: Command "ssh-agent -s" 
failed with error 255

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libkas.py:196: 
CommandExecError
----------------------------- Captured stdout call -----------------------------
Generating public/private ecdsa key pair.
Your identification has been saved in 
/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_noenv_0/id_ecdsa_test
Your public key has been saved in 
/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_noenv_0/id_ecdsa_test.pub
The key fingerprint is:
SHA256:5yIEMuT2S0UUyfUr2r5xP7IkIJHkiIfFeW8GcLGaZYI sbuild@sbuild
The key's randomart image is:
+---[ECDSA 256]---+
| .+o++++.        |
| Bo=o+o  .       |
|E O.Oo.   .      |
| o X ++    .     |
|  o +oo S o      |
|   . + + +       |
|    . o = +      |
|       o *...    |
|        o..o..   |
+----[SHA256]-----+
----------------------------- Captured stderr call -----------------------------
2025-10-10 13:33:28 - INFO     - __main__.py 4.8.2 started
2025-10-10 13:33:28 - INFO     - __main__.py 4.8.2 started
2025-10-10 13:33:28 - ERROR    - Command "ssh-agent -s" failed with error 255
2025-10-10 13:33:28 - ERROR    - Command "ssh-agent -s" failed with error 255
------------------------------ Captured log call -------------------------------
INFO     root:kas.py:184 __main__.py 4.8.2 started
INFO     root:repos.py:306 Using 
/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_noenv_0/test_ssh_agent_setup
 as root for repository this
INFO     root:shell.py:116 To start the default build, run: bitbake -c build 
core-image-minimal
__________________________ test_ssh_agent_setup[work] __________________________

monkeykas = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0988a98ad0>
tmpdir = local('/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_work_0')
capsys = <_pytest.capture.CaptureFixture object at 0x7f0988a65bf0>

    @pytest.mark.dirsfromenv
    def test_ssh_agent_setup(monkeykas, tmpdir, capsys):
        conf_dir = str(tmpdir / 'test_ssh_agent_setup')
        shutil.copytree('tests/test_environment_variables', conf_dir)
        monkeykas.chdir(conf_dir)
    
        SSH_AUTH_SOCK = '/tmp/ssh-KLTafE/agent.64708'
    
        with monkeykas.context() as mp:
            envfile = tmpdir / 'env'
            mp.setenv('SSH_AUTH_SOCK', SSH_AUTH_SOCK)
            kas.kas(['shell', '-c', f'env > {envfile}', 'test.yml'])
            env = _get_env_from_file(envfile)
            assert env['SSH_AUTH_SOCK'] == SSH_AUTH_SOCK
    
        with monkeykas.context() as mp:
            mp.setenv('SSH_AUTH_SOCK', SSH_AUTH_SOCK)
            mp.setenv('SSH_PRIVATE_KEY', 'id_rsa')
            with pytest.raises(ArgsCombinationError):
                kas.kas(['checkout', 'test.yml'])
    
        privkey_file = f'{tmpdir}/id_ecdsa_test'
        genkey_cmd = ['ssh-keygen', '-f', privkey_file, '-N', '', '-t', 'ecdsa']
        subprocess.check_call(genkey_cmd)
        # ensure we also get the info messages
        log = kas.logging.getLogger()
        log.setLevel(kas.logging.INFO)
        # flush the captured output
        capsys.readouterr()
        with monkeykas.context() as mp:
            mp.setenv('SSH_PRIVATE_KEY_FILE', privkey_file)
>           kas.kas(['checkout', 'test.yml'])

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/tests/test_environment_variables.py:94:
 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/kas.py:198: in kas
    plugin.run(args)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/plugins/checkout.py:62: 
in run
    macro.run(ctx, args.skip)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libcmds.py:116: in run
    if _run_single(cmd[0]) and cmd[1]:
       ^^^^^^^^^^^^^^^^^^^
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libcmds.py:110: in 
_run_single
    command.execute(ctx)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libcmds.py:402: in execute
    ssh_setup_agent()
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libkas.py:395: in 
ssh_setup_agent
    (_, output) = run_cmd(['ssh-agent', '-s'], env=env,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cmd = ['ssh-agent', '-s']
cwd = 
'/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_work_0/test_ssh_agent_setup'
env = {'LANG': 'en_US.UTF-8', 'LANGUAGE': 'en_US:en', 'LC_ALL': 'en_US.UTF-8', 
'http_proxy': 'http://127.0.0.1:9/', ...}
fail = True, capture_stderr = False

    def run_cmd(cmd, cwd, env=None, fail=True, capture_stderr=False):
        """
            Runs a command synchronously.
        """
        env = env or get_context().environ
        cmdstr = ' '.join(cmd)
        logging.debug('%s$ %s', cwd, cmdstr)
    
        try:
            ret = subprocess_run(cmd, env=env, cwd=cwd, stdout=PIPE, 
stderr=PIPE)
            if ret.returncode and fail:
>               raise CommandExecError(cmd, ret.returncode)
E               kas.kasusererror.CommandExecError: Command "ssh-agent -s" 
failed with error 255

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libkas.py:196: 
CommandExecError
----------------------------- Captured stdout call -----------------------------
Generating public/private ecdsa key pair.
Your identification has been saved in 
/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_work_0/id_ecdsa_test
Your public key has been saved in 
/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_work_0/id_ecdsa_test.pub
The key fingerprint is:
SHA256:gWrcKnduhpQ5GwuME0ph7VtI4H2iSgrU1r5Yyk9AQmg sbuild@sbuild
The key's randomart image is:
+---[ECDSA 256]---+
|.oo              |
|+Eoo.  .         |
|o++*.o. .        |
|o.=+++   .       |
|+* .*=. S        |
|O +o@..          |
|o..*oO.          |
|   o*oo          |
|     +.          |
+----[SHA256]-----+
----------------------------- Captured stderr call -----------------------------
2025-10-10 13:33:28 - INFO     - __main__.py 4.8.2 started
2025-10-10 13:33:28 - INFO     - __main__.py 4.8.2 started
2025-10-10 13:33:28 - ERROR    - Command "ssh-agent -s" failed with error 255
2025-10-10 13:33:28 - ERROR    - Command "ssh-agent -s" failed with error 255
------------------------------ Captured log call -------------------------------
INFO     root:kas.py:184 __main__.py 4.8.2 started
INFO     root:repos.py:306 Using 
/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_work_0/test_ssh_agent_setup 
as root for repository this
INFO     root:shell.py:116 To start the default build, run: bitbake -c build 
core-image-minimal
_______________________ test_ssh_agent_setup[workbuild] ________________________

monkeykas = <_pytest.monkeypatch.MonkeyPatch object at 0x7f098853a4d0>
tmpdir = local('/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_workbuild0')
capsys = <_pytest.capture.CaptureFixture object at 0x7f0988552f90>

    @pytest.mark.dirsfromenv
    def test_ssh_agent_setup(monkeykas, tmpdir, capsys):
        conf_dir = str(tmpdir / 'test_ssh_agent_setup')
        shutil.copytree('tests/test_environment_variables', conf_dir)
        monkeykas.chdir(conf_dir)
    
        SSH_AUTH_SOCK = '/tmp/ssh-KLTafE/agent.64708'
    
        with monkeykas.context() as mp:
            envfile = tmpdir / 'env'
            mp.setenv('SSH_AUTH_SOCK', SSH_AUTH_SOCK)
            kas.kas(['shell', '-c', f'env > {envfile}', 'test.yml'])
            env = _get_env_from_file(envfile)
            assert env['SSH_AUTH_SOCK'] == SSH_AUTH_SOCK
    
        with monkeykas.context() as mp:
            mp.setenv('SSH_AUTH_SOCK', SSH_AUTH_SOCK)
            mp.setenv('SSH_PRIVATE_KEY', 'id_rsa')
            with pytest.raises(ArgsCombinationError):
                kas.kas(['checkout', 'test.yml'])
    
        privkey_file = f'{tmpdir}/id_ecdsa_test'
        genkey_cmd = ['ssh-keygen', '-f', privkey_file, '-N', '', '-t', 'ecdsa']
        subprocess.check_call(genkey_cmd)
        # ensure we also get the info messages
        log = kas.logging.getLogger()
        log.setLevel(kas.logging.INFO)
        # flush the captured output
        capsys.readouterr()
        with monkeykas.context() as mp:
            mp.setenv('SSH_PRIVATE_KEY_FILE', privkey_file)
>           kas.kas(['checkout', 'test.yml'])

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/tests/test_environment_variables.py:94:
 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/kas.py:198: in kas
    plugin.run(args)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/plugins/checkout.py:62: 
in run
    macro.run(ctx, args.skip)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libcmds.py:116: in run
    if _run_single(cmd[0]) and cmd[1]:
       ^^^^^^^^^^^^^^^^^^^
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libcmds.py:110: in 
_run_single
    command.execute(ctx)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libcmds.py:402: in execute
    ssh_setup_agent()
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libkas.py:395: in 
ssh_setup_agent
    (_, output) = run_cmd(['ssh-agent', '-s'], env=env,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cmd = ['ssh-agent', '-s']
cwd = 
'/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_workbuild0/test_ssh_agent_setup'
env = {'LANG': 'en_US.UTF-8', 'LANGUAGE': 'en_US:en', 'LC_ALL': 'en_US.UTF-8', 
'http_proxy': 'http://127.0.0.1:9/', ...}
fail = True, capture_stderr = False

    def run_cmd(cmd, cwd, env=None, fail=True, capture_stderr=False):
        """
            Runs a command synchronously.
        """
        env = env or get_context().environ
        cmdstr = ' '.join(cmd)
        logging.debug('%s$ %s', cwd, cmdstr)
    
        try:
            ret = subprocess_run(cmd, env=env, cwd=cwd, stdout=PIPE, 
stderr=PIPE)
            if ret.returncode and fail:
>               raise CommandExecError(cmd, ret.returncode)
E               kas.kasusererror.CommandExecError: Command "ssh-agent -s" 
failed with error 255

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build/kas/libkas.py:196: 
CommandExecError
----------------------------- Captured stdout call -----------------------------
Generating public/private ecdsa key pair.
Your identification has been saved in 
/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_workbuild0/id_ecdsa_test
Your public key has been saved in 
/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_workbuild0/id_ecdsa_test.pub
The key fingerprint is:
SHA256:Zz/XOn+q81VFfs9/oNQlZqXtdOnFz+ySCVw8TSArsWU sbuild@sbuild
The key's randomart image is:
+---[ECDSA 256]---+
|          . E ..+|
|           = + X.|
|          o . O.%|
|           o =.XB|
|        S o + o.O|
|         o o o *o|
|            + = *|
|            .o.+o|
|            .+++o|
+----[SHA256]-----+
----------------------------- Captured stderr call -----------------------------
2025-10-10 13:33:29 - INFO     - __main__.py 4.8.2 started
2025-10-10 13:33:29 - INFO     - __main__.py 4.8.2 started
2025-10-10 13:33:29 - ERROR    - Command "ssh-agent -s" failed with error 255
2025-10-10 13:33:29 - ERROR    - Command "ssh-agent -s" failed with error 255
------------------------------ Captured log call -------------------------------
INFO     root:kas.py:184 __main__.py 4.8.2 started
INFO     root:repos.py:306 Using 
/tmp/pytest-of-sbuild/pytest-0/test_ssh_agent_setup_workbuild0/test_ssh_agent_setup
 as root for repository this
INFO     root:shell.py:116 To start the default build, run: bitbake -c build 
core-image-minimal
=========================== short test summary info ============================
FAILED tests/test_environment_variables.py::test_ssh_agent_setup[noenv] - kas...
FAILED tests/test_environment_variables.py::test_ssh_agent_setup[work] - kas....
FAILED tests/test_environment_variables.py::test_ssh_agent_setup[workbuild]
================= 3 failed, 51 passed, 53 deselected in 24.39s =================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_kas/build; python3.13 -m pytest -m "not 
online" -k "not test_menu" -v
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 
returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to