When running the test suite on a musl system (as of 3adae6c0dfd5c20dfe9bf6bae19b44a696c22a43), I'm getting the following test failures (running only backend tests):
In all cases, the tests are failing because they assume linux_x86_64 ABI tag, while they are getting musllinux_1_2_x86_64 instead, e.g.:
best_matching_tag = next(sys_tags())
tag = f'{best_matching_tag.interpreter}-{best_matching_tag.abi}-{best_matching_tag.platform}'
> assert expected_artifact == str(build_path / f'{builder.project_id}-{tag}.whl')
E AssertionError: assert '/tmp/tmpbjjn...ux_x86_64.whl' == '/tmp/tmpbjjn..._2_x86_64.whl'
E
E Skipping 44 identical leading characters in diff, use -v to show
E - 312-cp312-musllinux_1_2_x86_64.whl
E ? ---- ----
E + 312-cp312-linux_x86_64.whl
/home/mgorny2/hatch/tests/backend/builders/test_wheel.py:2457: AssertionError
I've reproduced this by creating a systemd-nspawn container and unpacking a Gentoo amd64 musl stage3 into it. Then, within the git checkout I've created a venv and installed:
When running the test suite on a musl system (as of 3adae6c0dfd5c20dfe9bf6bae19b44a696c22a43), I'm getting the following test failures (running only backend tests):
In all cases, the tests are failing because they assume
linux_x86_64
ABI tag, while they are gettingmusllinux_1_2_x86_64
instead, e.g.:I've reproduced this by creating a
systemd-nspawn
container and unpacking a Gentoo amd64 musl stage3 into it. Then, within the git checkout I've created a venv and installed:Original bug report: https://bugs.gentoo.org/935896