Skip to content

bug: deltakit-decode tests fails on DeprecationWarning #165

Description

@nelimee

Bug Description

See this job failing:

FAILED deltakit-decode/tests/unit/utils/test_derivation_tools.py::TestDerivationTools::test_generate_expectation_data_throws_warn_if_both_bool_true[samples0] - DeprecationWarning: This process (pid=2338) is multi-threaded, use of fork() may lead to deadlocks in the child.
FAILED deltakit-decode/tests/unit/utils/test_derivation_tools.py::TestDerivationTools::test_generate_expectation_values_raises_warning_if_num_processes_0_or_less_than_negative_1[0] - DeprecationWarning: This process (pid=2338) is multi-threaded, use of fork() may lead to deadlocks in the child.
FAILED deltakit-decode/tests/unit/utils/test_derivation_tools.py::TestDerivationTools::test_generate_expectation_values_raises_warning_if_num_processes_0_or_less_than_negative_1[-2] - DeprecationWarning: This process (pid=2338) is multi-threaded, use of fork() may lead to deadlocks in the child.
FAILED deltakit-decode/tests/unit/utils/test_derivation_tools.py::TestDerivationTools::test_generate_expectation_values_raises_warning_if_num_processes_0_or_less_than_negative_1[-3] - DeprecationWarning: This process (pid=2338) is multi-threaded, use of fork() may lead to deadlocks in the child.
FAILED deltakit-decode/tests/unit/utils/test_derivation_tools.py::TestDerivationTools::test_generate_expectation_values_raises_warning_if_num_processes_0_or_less_than_negative_1[-10] - DeprecationWarning: This process (pid=2338) is multi-threaded, use of fork() may lead to deadlocks in the child.

Minimal Reproducible Example (MRE)

Make sure that all the tests are running when running pytest in the main deltakit repository by replacing

# deltakit/pyproject.toml
testpaths = ["./tests/"]

by

# deltakit/pyproject.toml
testpaths = [
  "./tests/",
  "./deltakit-circuit/tests/",
  "./deltakit-core/tests/",
  "./deltakit-decode/tests/",
  "./deltakit-explorer/tests/",
]
uv sync --all-packages --python 3.13 --resolution lowest-direct --group test
uv run --python 3.13 --no-sync pytest

Actual behaviour

With the above changes,

uv run --python 3.13 --no-sync pytest

fails but

uv run --python 3.13 --no-sync pytest deltakit-decode/tests

runs without any issue. This hints to tests in other deltakit sub-packages being part of the problem.

Expected behaviour

Tests are passing without any issue.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions