New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.5.0: pytest is failing in 8 units because unexpected hash values #8099
Comments
@kloczek how did you decide on the versions to install in the build env? Can you match the versions from our |
Yep, I'm guessing it's a |
Happy to leave this issue open though as a reminder to rework these tests - the fact that they break every time we upgrade |
As I wrote I;m building module as rpm package. My build infra deploys build env for exact package inside freshly spawned LXC zone in which are installed packaged as rpm packages python modules listed in rpm spec file BuildRequires (+its dependencies) downloaded from my distribution repository. BuildRequires: python3dist(build)
BuildRequires: python3dist(hatch-fancy-pypi-readme)
BuildRequires: python3dist(hatchling)
BuildRequires: python3dist(installer)
BuildRequires: python3dist(wheel)
# CheckRequires:
BuildRequires: python3dist(annotated-types)
BuildRequires: python3dist(cloudpickle)
BuildRequires: python3dist(dirty-equals)
BuildRequires: python3dist(email-validator)
BuildRequires: python3dist(faker)
BuildRequires: python3dist(hypothesis)
BuildRequires: python3dist(mypy)
BuildRequires: python3dist(pydantic-core)
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pytest-benchmark)
#BuildRequires: python3dist(pytest-examples)
BuildRequires: python3dist(pytest-mock) On above list %check
%pytest %{!?with_failing_tests: \
--deselect tests/benchmarks/test_north_star.py::test_north_star_dump_json \
--deselect tests/benchmarks/test_north_star.py::test_north_star_dump_python \
--deselect tests/benchmarks/test_north_star.py::test_north_star_json_dumps \
--deselect tests/benchmarks/test_north_star.py::test_north_star_json_loads \
--deselect tests/benchmarks/test_north_star.py::test_north_star_validate_json \
--deselect tests/benchmarks/test_north_star.py::test_north_star_validate_json_strict \
--deselect tests/benchmarks/test_north_star.py::test_north_star_validate_python \
--deselect tests/benchmarks/test_north_star.py::test_north_star_validate_python_strict \
--ignore tests/test_docs.py \
} If you need more details please let me know. |
@davidhewitt let's pair next week on changing these tests 👍 |
Initial Checks
Description
Looks like 8 units are failing because unexpected hash values.
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
Python, Pydantic & OS Version
Here is list of installed modules in build env
The text was updated successfully, but these errors were encountered: