NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.14k forks source link

Kitty terminal build / test failure on macOS 12.4 (x86_64-darwin) #182308

Closed voidcontext closed 2 years ago

voidcontext commented 2 years ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build nixpkgs#kitty --inputs-from "nixpkgs/release-22.05"

Build log

Test failure:

======================================================================
FAIL: test_ssh_copy (kitty_tests.ssh.SSHKitten) (sh='zsh')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/private/tmp/nix-build-kitty-0.25.2.drv-0/source/kitty_tests/ssh.py", line 139, in test_ssh_copy
    self.ae(contents, {
    conf = 'copy simple-file\ncopy --dest=a/sfa simple-file\ncopy --glob g.*\ncopy --exclude */w.* d1\n'
    contents = {'g.2', 'd1/y', '.terminfo/kitty.terminfo', 'a/sfa', 'simple-file', '.local/share/kitty-ssh-kitten/kitty/version', '.local/share/kitty-ssh-kitten/kitty/bin/kitty', 'g.1', 'd1/d2/x'}
    copy = {'aa7ee352-d68e-4dfc-ad8d-8c8a7ecce56b': CopyInstruction(local_path='/private/tmp/nix-build-kitty-0.25.2.drv-0/tmpwqiwl5t0/simple-file', arcname='home/simple-file', exclude_patterns=()), '96227582-6363-49f9-a3c8-47c24cffce3f': CopyInstruction(local_path='/private/tmp/nix-build-kitty-0.25.2.drv-0/tmpwqiwl5t0/simple-file', arcname='home/a/sfa', exclude_patterns=()), 'b7ef7050-fff9-4ed1-9655-38b4c7329e95': CopyInstruction(local_path='/private/tmp/nix-build-kitty-0.25.2.drv-0/tmpwqiwl5t0/g.2', arcname='home/g.2', exclude_patterns=()), 'c4eb7a89-5171-40e7-82be-d710dba8beee': CopyInstruction(local_path='/private/tmp/nix-build-kitty-0.25.2.drv-0/tmpwqiwl5t0/g.1', arcname='home/g.1', exclude_patterns=()), 'd5be1ce3-9389-4f54-a634-6d7803a9f569': CopyInstruction(local_path='/private/tmp/nix-build-kitty-0.25.2.drv-0/tmpwqiwl5t0/d1', arcname='home/d1', exclude_patterns=('*/w.*',))}
    f = <_io.TextIOWrapper name='/private/tmp/nix-build-kitty-0.25.2.drv-0/tmp0ahmk0f7/a/sfa' mode='r' encoding='UTF-8'>
    local_home = '/private/tmp/nix-build-kitty-0.25.2.drv-0/tmpwqiwl5t0'
    remote_home = '/private/tmp/nix-build-kitty-0.25.2.drv-0/tmp0ahmk0f7'
    self = <kitty_tests.ssh.SSHKitten testMethod=test_ssh_copy>
    sh = 'python3'
    simple_data = 'rkjlhfwf9whoaa'
    tname = '.terminfo'
    touch = <function SSHKitten.test_ssh_copy.<locals>.touch at 0x105447ac0>
    w = 'a/sfa'
AssertionError: Items in the first set but not the second:
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/stat.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/abc.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/encodings/aliases.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/io.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/encodings/utf_8.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/_sitebuiltins.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/codecs.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/os.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/encodings/__init__.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/posixpath.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/genericpath.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/encodings/cp437.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/encodings/latin_1.cpython-38.pyc'
'Library/Caches/com.apple.python/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/_collections_abc.cpython-38.pyc'

----------------------------------------------------------------------
Ran 133 tests in 21.519s

FAILED (failures=1, skipped=4)

Full log: https://gist.github.com/voidcontext/fe0a4ef97b062bc970902007354e3f6e

Additional context

The package is broken in hydra (see #177074), therefore it is not possible to install kitty only if I build it locally.

Notify maintainers

@tex @rvolosatovs @Luflosi

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 21.5.0, macOS 10.16`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.9.1`
 - channels(root): `"nixpkgs"`
 - channels(gaborpihaj): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
Luflosi commented 2 years ago

This should be fixed now.