Skip to content

bug: CI failures #313

Description

@jsimbadev

Contributor License Agreement

  • A Contributor Licence Agreement signature is required for any first PR contribution. Further information can be found in our contributing guidelines.

Bug Description

On raising a PR Tests are failing with this error

_ ERROR collecting deltakit-explorer/tests/unit/circuits/test_tableau_functions.py _
ImportError while importing test module '/home/runner/work/deltakit/deltakit/deltakit-explorer/tests/unit/circuits/test_tableau_functions.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/metadata/__init__.py:397: in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   StopIteration

During handling of the above exception, another exception occurred:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
deltakit-explorer/tests/unit/circuits/test_tableau_functions.py:105: in <module>
    CURRENT_STIM_VERSION = Version(version("stim"))
                                   ^^^^^^^^^^^^^^^
/usr/lib/python3.12/importlib/metadata/__init__.py:889: in version
    return distribution(distribution_name).version
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.12/importlib/metadata/__init__.py:862: in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.12/importlib/metadata/__init__.py:399: in from_name
    raise PackageNotFoundError(name)
E   importlib.metadata.PackageNotFoundError: No package metadata was found for stim
=========================== short test summary info ============================
ERROR deltakit-explorer/tests/unit/circuits/test_tableau_functions.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!

pip audit failure

Name  Version ID              Fix Versions
----- ------- --------------- ------------
click 8.1.8   PYSEC-2026-2132 8.3.3
Error: Process completed with exit code 1.

Minimal Reproducible Example

This failure doesn't occur when tests are ran locally, to repo, attempt a PR against current main with HEAD ffaccf9
@rolandriver

Actual behaviour

No response

Expected behaviour

This failure shouldn't run in CI.
Local and CI should also be in alignment

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue that reports a discrepancy between actual and documented behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions