Skip to content
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

FAILED tests/cli/env/test_create.py::test_features - AssertionError: assert 1 == 2 #1942

Open
9999years opened this issue Mar 21, 2025 · 1 comment

Comments

@9999years
Copy link

9999years commented Mar 21, 2025

hatch tests fail on macOS in Nixpkgs at hatch-v1.14:

>           assert len(requirements) == 4
E           AssertionError: assert 3 == 4
E            +  where 3 = len(['-e file:///private/tmp/nix-build-hatch-1.14.0.drv-0/tmpe4hfwroa/my-app', 'my-app0 @ file:///private/tmp/nix-build-hatch-1.14.0.drv-0/tmpe4hfwroa/my-app0', 'my-app1 @ file:///private/tmp/nix-build-hatch-1.14.0.drv-0/tmpe4hfwroa/my-app1'])
/private/tmp/nix-build-hatch-1.14.0.drv-0/source/tests/cli/env/test_create.py:1572: AssertionError
------------------------------ Captured log call -------------------------------
INFO     virtualenv.discovery.builtin:builtin.py:76 find interpreter for spec PythonSpec()
INFO     virtualenv.discovery.builtin:builtin.py:83 proposed PythonInfo(spec=CPython3.12.9.final.0-64, exe=/nix/store/ibnllhp7pc88kgcrxa2gddxcbyl0vngk-python3-3.12.9/bin/python3.12, platform=darwin, version='3.12.9 (main, Feb  4 2025, 14:38:38) [Clang 19.1.7 ]', encoding_fs_io=utf-8-utf-8)
DEBUG    virtualenv.discovery.builtin:builtin.py:85 accepted PythonInfo(spec=CPython3.12.9.final.0-64, exe=/nix/store/ibnllhp7pc88kgcrxa2gddxcbyl0vngk-python3-3.12.9/bin/python3.12, platform=darwin, version='3.12.9 (main, Feb  4 2025, 14:38:38) [Clang 19.1.7 ]', encoding_fs_io=utf-8-utf-8)
INFO     virtualenv.discovery.builtin:builtin.py:76 find interpreter for spec PythonSpec(major=3, minor=12, free_threaded=False)
INFO     virtualenv.discovery.builtin:builtin.py:83 proposed PythonInfo(spec=CPython3.12.9.final.0-64, exe=/nix/store/ibnllhp7pc88kgcrxa2gddxcbyl0vngk-python3-3.12.9/bin/python3.12, platform=darwin, version='3.12.9 (main, Feb  4 2025, 14:38:38) [Clang 19.1.7 ]', encoding_fs_io=utf-8-utf-8)
DEBUG    virtualenv.discovery.builtin:builtin.py:85 accepted PythonInfo(spec=CPython3.12.9.final.0-64, exe=/nix/store/ibnllhp7pc88kgcrxa2gddxcbyl0vngk-python3-3.12.9/bin/python3.12, platform=darwin, version='3.12.9 (main, Feb  4 2025, 14:38:38) [Clang 19.1.7 ]', encoding_fs_io=utf-8-utf-8)
=========================== short test summary info ============================
FAILED tests/cli/env/test_create.py::test_features - AssertionError: assert 1 == 2
FAILED tests/cli/env/test_create.py::test_sync_dynamic_dependencies - AssertionError: assert 3 == 4
================= 2 failed, 1455 passed, 53 skipped in 28.57s ==================

Build logs upstream: https://hydra.nixos.org/build/292934410

The build started failing when some dependencies changed, maybe that's related?

• The set of input derivation names do not match:
    - cargo-1.83.0
    - git-2.47.1
    - python3.12-binary-1.0.0
    - python3.12-httpx-0.27.2
    - python3.12-keyring-25.4.1
    - python3.12-setuptools-75.3.0
    - python3.12-virtualenv-20.26.6
    + cargo-1.84.0
    + git-2.47.2
    + python3.12-binary-1.0.1
    + python3.12-httpx-0.28.1
    + python3.12-keyring-25.6.0
    + python3.12-setuptools-75.8.0
    + python3.12-virtualenv-20.29.1

I'm not sure what the failure means here; it looks like an element starting with binary== is missing from the list of requirements. If it's an issue with our packaging feel free to close this.

9999years added a commit to 9999years/nixpkgs that referenced this issue Mar 21, 2025
Failing since e4b6440, previously
succeeding at 00769b0.

Possibly related to dependency versions:

```
$ nix-diff /nix/store/74dgxcwrwq83xrnk6fa76l293na95qz3-hatch-1.14.0.drv /nix/store/v659sh5rj1aqsl17nhqbmfsffw2f4rdv-hatch-1.14.0.drv
- /nix/store/74dgxcwrwq83xrnk6fa76l293na95qz3-hatch-1.14.0.drv:{out}
+ /nix/store/v659sh5rj1aqsl17nhqbmfsffw2f4rdv-hatch-1.14.0.drv:{out}
• The builders do not match
    - /nix/store/iv1k5wr7hbxm51qmdn6l2inq7rd2vfhk-bash-5.2p37/bin/bash
    + /nix/store/x7m765hh1m4yikg9spw18lxldddvdnd0-bash-5.2p37/bin/bash
• The set of input derivation names do not match:
    - cargo-1.83.0
    - git-2.47.1
    - python3.12-binary-1.0.0
    - python3.12-httpx-0.27.2
    - python3.12-keyring-25.4.1
    - python3.12-setuptools-75.3.0
    - python3.12-virtualenv-20.26.6
    + cargo-1.84.0
    + git-2.47.2
    + python3.12-binary-1.0.1
    + python3.12-httpx-0.28.1
    + python3.12-keyring-25.6.0
    + python3.12-setuptools-75.8.0
    + python3.12-virtualenv-20.29.1
...
```

See: pypa/hatch#1942
@9999years
Copy link
Author

I'm going to disable these tests upstream: NixOS/nixpkgs#391968

andrew-field pushed a commit to andrew-field/alterware that referenced this issue Mar 23, 2025
Failing since e4b6440, previously
succeeding at 00769b0.

Possibly related to dependency versions:

```
$ nix-diff /nix/store/74dgxcwrwq83xrnk6fa76l293na95qz3-hatch-1.14.0.drv /nix/store/v659sh5rj1aqsl17nhqbmfsffw2f4rdv-hatch-1.14.0.drv
- /nix/store/74dgxcwrwq83xrnk6fa76l293na95qz3-hatch-1.14.0.drv:{out}
+ /nix/store/v659sh5rj1aqsl17nhqbmfsffw2f4rdv-hatch-1.14.0.drv:{out}
• The builders do not match
    - /nix/store/iv1k5wr7hbxm51qmdn6l2inq7rd2vfhk-bash-5.2p37/bin/bash
    + /nix/store/x7m765hh1m4yikg9spw18lxldddvdnd0-bash-5.2p37/bin/bash
• The set of input derivation names do not match:
    - cargo-1.83.0
    - git-2.47.1
    - python3.12-binary-1.0.0
    - python3.12-httpx-0.27.2
    - python3.12-keyring-25.4.1
    - python3.12-setuptools-75.3.0
    - python3.12-virtualenv-20.26.6
    + cargo-1.84.0
    + git-2.47.2
    + python3.12-binary-1.0.1
    + python3.12-httpx-0.28.1
    + python3.12-keyring-25.6.0
    + python3.12-setuptools-75.8.0
    + python3.12-virtualenv-20.29.1
...
```

See: pypa/hatch#1942
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant