Skip to content

Tests fail on Packit #4979

@evverx

Description

@evverx

It's more of a downstream issue but since it's triggered upstream from time to time I'll file it here so as not to forget about it.

With #4975 merged all the jobs started failing because the downstream import check in the spec file isn't aware of scapy.arch.windows.sspi and fails with

Failed to import: scapy.arch.windows.sspi
    + /usr/bin/python3 -sP /usr/lib/rpm/redhat/import_all_modules.py \
      -f /builddir/build/BUILD/scapy-2.7.0-build/scapy-2.7.0-1.20260423030854887593.pr2.57.g5d1727ff.fc43.x86_64-pyproject-modules \
      -e scapy.arch.bpf.core -e scapy.arch.bpf.supersocket -e scapy.arch.windows \
      -e scapy.arch.windows.native -e scapy.arch.windows.structures \
      -e scapy.contrib.cansocket_python_can -e scapy.tools.generate_bluetooth \
      -e scapy.tools.generate_ethertypes -e scapy.tools.generate_manuf \
      -e scapy.tools.scapy_pyannotate -e scapy.libs.winpcapy
    ...
    Check import: scapy.arch.windows.sspi
    Traceback (most recent call last):
      File "/usr/lib/rpm/redhat/import_all_modules.py", line 106, in import_modules
        importlib.import_module(module)
        ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
      File "/usr/lib64/python3.14/importlib/__init__.py", line 88, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
               ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...
      File "/builddir/build/BUILD/scapy-2.7.0-build/BUILDROOT/usr/lib/python3.14/site-packages/scapy/arch/windows/__init__.py", line 18, in <module>
        import winreg
    ModuleNotFoundError: No module named 'winreg'
    ...
    Failed to import: scapy.arch.windows.sspi
    error: Bad exit status from /var/tmp/rpm-tmp.PD6vNW (%check)
        Bad exit status from /var/tmp/rpm-tmp.PD6vNW (%check)

I'll send a patch removing the downstream import check from the spec file in .packit.yml.

The test also fail on big endian machines with

###(015)=[failed] Configuration conf.use_pcap

>>> if not conf.use_pcap:
...     assert not conf.iface.provider.libpcap
...     conf.use_pcap = True
...     assert conf.iface.provider.libpcap
...     for iface in conf.ifaces.values():
...         assert iface.provider.libpcap or iface.is_valid() == False
...     conf.use_pcap = False
...     assert not conf.iface.provider.libpcap
... 
AssertionError

I tracked it down and it's because pcap_findalldevs fails with

b'eth0: SIOCETHTOOL(ETHTOOL_GLINK) ioctl failed: Inappropriate ioctl for device'

It started failing because fedora-copr/copr#4219 was temporarily addressed by switching to VMs in https://forge.fedoraproject.org/infra/ansible/pulls/3232. I'm not sure that environment is suitable for running the scapy tests currently so I'd just turn off the big-endian jobs for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions