Occasional pytest hauntings in functional2 caused by unnecessary xonsh pytest module #593

Closed
opened 2024-12-05 20:11:34 +00:00 by jade · 1 comment
Owner

Reported by @pennae:

================================== 165/169 ===================================
test:         lix:installcheck / functional2
start time:   19:11:31
duration:     9.74s
result:       exit status 3
command:      MALLOC_PERTURB_=57 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 PATH=/home/REDACTED/git/lix/lix/outpu
ts/out/bin:/nix/store/bjwl1aa44fmlbizc9c9c99l3hjb3a1a8-pre-commit-3.7.1/bin:/home/REDACTED/git/lix/lix/outputs/out/bin:/nix/store/izzwvk6cbbhsg3x5aqn33q9gnf3nbh2r-clang-tools-17.0.6/bin:/nix/store/p5441mp6wwpdh65q
amaixvd092cwr45h-bash-interactive-5.2p26/bin:/nix/store/11s5cpc18wj0k7k0kwpnwbbm0797ccm2-check-syscalls/bin:/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/bin:/nix/store/fbkpv9baalbf7bbjm314nidqc2
1dl39n-skopeo-1.15.1/bin:/nix/store/0x38dhvcw44di4p75sgmi2f52zfnxpqg-just-1.28.0/bin:/nix/store/am45cgcp6yr9i456yyk27gb6348skv9q-nixfmt-unstable-2024-07-12/bin:/nix/store/r797g0wxc3wyv81inpxy4vyryb2rz7pw-doxygen-
1.10.0/bin:/nix/store/vdh05ps03wbaka8gv8q1w9ys5ngwhlnc-clang-wrapper-17.0.6/bin:/nix/store/cmxvjk0wx47kznqs0ny84axypsajk08v-clang-17.0.6/bin:/nix/store/z5gvbj7p7dr89k42ncrl2mlv5v3ymjlp-glibc-2.39-52-bin/bin:/nix/
store/ysqx2xfzygv2rxl7nxnw48276z5ckppn-coreutils-9.5/bin:/nix/store/14v22l7hw88zm113zcigs9yyrqmf0f30-binutils-wrapper-2.41/bin:/nix/store/7v7g86ml0ri171gfcrs1d442px5bi1p3-binutils-2.41/bin:/nix/store/1zxywbbf60il
0la6bh8ly1jaw18gz2zg-rust-analyzer-2024-04-29/bin:/nix/store/mw94s5yw2j9aj93psy92n3bhb4vgk1gi-cargo-1.77.2/bin:/nix/store/wqj70g6d2iv65bljsyqpxbzx9wvi0mwy-rustc-wrapper-1.77.2/bin:/nix/store/xynbjhismzgygdl86sin3
bdkl3k8x1fh-rustfmt-1.77.2/bin:/nix/store/2wyd384q23klzv9qfsrylsknk0cj06qc-llvm-17.0.6-dev/bin:/nix/store/d2hxg9l2k4n0kykcxiqnn5ch9wbp25g2-ncurses-6.4-dev/bin:/nix/store/7ka1d6qli0bci8d1k9b7zw0jrd2s2q1k-ncurses-6
.4/bin:/nix/store/3hkd4gsxm8ck8lfw45gy714hrlx3w5gc-llvm-17.0.6/bin:/nix/store/qfnwrabwxpviws5pmdfx36x2ys4qnbks-clang-17.0.6-dev/bin:/nix/store/njj4snqcpa80rbn95gb13y6yzkmpnc9y-python3.11-yq-3.4.3/bin:/nix/store/l
mcf2ns2kvxg8mg1zx5ns5n0vl30gav8-python3.11-argcomplete-3.3.0/bin:/nix/store/pfv4raslwhi3101k342752v65zxkwrxq-python3-3.11.9/bin:/nix/store/p6lfvmdwkb9rqd8h4j6ydmx9qk27sc5z-python3.11-pre-commit-hooks-4.6.0/bin:/n
ix/store/hhlpyj59v29kzifcaccrs9p4bjs3wrvj-check-headers/bin:/nix/store/jx24inny8hdv56yfjq82c5vsdq67sk99-build-release-notes/bin:/nix/store/13qajm1dn78xrsxi2qn9xc6z4qm4xhac-treefmt/bin:/nix/store/5j3scf96z7dp224gl
msarkvbv06zqgn2-clangbuildanalyzer-1.5.0/bin:/nix/store/n4ryhj0lyq755l61r1136vpyj8bvbhyr-gdb-14.2/bin:/nix/store/sbsa1mhqrgqapn98mv4v9bis46b38a1l-rr-5.8.0/bin:/nix/store/8p3az3l199i3w6x9jn7zz5g9r6sy5p7c-python3.1
1-pytest-8.1.1/bin:/nix/store/faqinb3ipfsqhvihb2k9ap8k9n53y1bd-meson-1.4.1/bin:/nix/store/p5y20shjad8an1jhcby82sz843lirvwi-ninja-1.11.1/bin:/nix/store/mk7637n6h4d437gl5cplxvd3k2l66awd-cmake-3.29.2/bin:/nix/store/
6b9z4grs97g8ii3jb0zqs8akjbpr07v3-capnproto-1.0.2/bin:/nix/store/n6njr57g8cjky3xpciy84nzlz5955q2j-openssl-3.0.14-bin/bin:/nix/store/v6v8jan271vlh583b1k20ddw0kfhsz7s-lowdown-1.1.0/bin:/nix/store/qwqnl369j67x9wy3q62
1dwkk4flz40s9-mdbook-0.4.37/bin:/nix/store/bkayw2afd2jbvdiy6zv1nrn9s3n4li6b-mdbook-linkcheck-0.7.7/bin:/nix/store/gx6s21qcy4glnla7f3nvrawnfrw6g3jl-pkg-config-wrapper-0.29.2/bin:/nix/store/fya3qmsm9rqky5f2fblh2yjv
dp06f8wk-git-2.44.1/bin:/nix/store/xjmzjb7bbk7qs9myhjs1wg35wbxvhqi5-mercurial-6.6.3/bin:/nix/store/9rxqymz0cb33lix6l2vwhhy0rkjfv4dv-jq-1.7.1-bin/bin:/nix/store/jmnqypmvx9rzhhmr2x8v6gphry2h3gwg-lsof-4.99.3/bin:/ni
x/store/m8alhfav4r1n1vqa5w1hmi0z583wmq2p-util-linux-minimal-2.39.4-bin/bin:/nix/store/cy6j2yii4y9jlbqr10k190v0b3jdbwl3-patchelf-0.15.0/bin:/nix/store/9vfi8ql0l2a66njj03hz32712hxpz5an-compiler-rt-libc-17.0.6/bin:/
nix/store/8nfrh46nfknv0mzppf9sf2zhkvhxxb6j-curl-8.7.1-dev/bin:/nix/store/h3xqjzk1fkhj1i4h6whfpvkrfhrlqwkf-brotli-1.1.0/bin:/nix/store/7gdpbhhz5jy1h2b70aj0jmlzzrrc7l5b-libkrb5-1.21.3-dev/bin:/nix/store/lbp0rbrmvsh
6nc5r0in8nm8qzr0z0ss0-libkrb5-1.21.3/bin:/nix/store/cx74g5axh785mhdfalkbg02hdbq40a2x-nghttp2-1.61.0/bin:/nix/store/wq8jmlhbf0pl8vcay3axy5cgsj7m8762-libidn2-2.3.7-bin/bin:/nix/store/c9fwl83hq4646n31bn443cg2a0hiyvj
5-libpsl-0.21.5-bin/bin:/nix/store/86z7aqqvsc0aqxhvglz67x1gh8w425nq-zstd-1.5.6-bin/bin:/nix/store/4xr9868xjcvyqz6jjzrp5snr19afq3bf-zstd-1.5.6/bin:/nix/store/0yliz4s415p1apm9hkwxan5zww8hgcja-curl-8.7.1-bin/bin:/ni
x/store/fmk8lz57yy64hvz9rp58krlzb3q9df70-bzip2-1.0.8-bin/bin:/nix/store/5srqwq17md7w5ln001iaxhxpd0839d8r-xz-5.4.7-bin/bin:/nix/store/945my7vwxvv99ds4p9y25l5x2ql709qq-sqlite-3.45.3-bin/bin:/nix/store/yh0pb33c0p7vd
zyw4q60633amgcpxzi3-attr-2.5.2-bin/bin:/nix/store/228simhn18dkib2cd7nsdbbfjqqvks69-acl-2.3.2-bin/bin:/nix/store/yc7xipmlk27jryd4gs7j9wavvdc8zx6p-libarchive-3.7.4/bin:/nix/store/dwrkqr6cgc5cwar1av081zvdfqq5jmfd-li
bseccomp-2.5.5/bin:/nix/store/ngg6r2s4jzbmvc2pmzlpw05dmjgx63yb-busybox-static-x86_64-unknown-linux-musl-1.36.1/bin:/nix/store/cbcx3b89f1nj5n8nkxan4b29v7hdc11m-libcpuid-0.6.5/bin:/nix/store/ysqx2xfzygv2rxl7nxnw482
76z5ckppn-coreutils-9.5/bin:/nix/store/36rvynxwln7iz0qq3k1v3r1mna8bma8s-findutils-4.9.0/bin:/nix/store/0fw4a3z849azkhyjxnpxbygj4g5qhd0v-diffutils-3.10/bin:/nix/store/7xwbkzfrs6flyvjyvd23m8r2mlnycinq-gnused-4.9/bi
n:/nix/store/d9xr7s3z0r8rf0ba22q6ilqv68agymdb-gnugrep-3.11/bin:/nix/store/9fklixgxv2a9xxpbn504mpifnbz94rb5-gawk-5.2.2/bin:/nix/store/iz0gv4jb2b8bkb9krmha68b00b24p3rl-gnutar-1.35/bin:/nix/store/g14bdsvp1lqqhiyd9g8
8nyjhp16hs9wj-gzip-1.13/bin:/nix/store/fmk8lz57yy64hvz9rp58krlzb3q9df70-bzip2-1.0.8-bin/bin:/nix/store/3hnf34qxi3h6c62dw95crgxdxvibasml-gnumake-4.4.1/bin:/nix/store/5jw69mbaj5dg4l2bj58acg3gxywfszpj-bash-5.2p26/bi
n:/nix/store/f46k9pgiq88v6yh76wxb3dv1ggpn6fml-patch-2.7.6/bin:/nix/store/5srqwq17md7w5ln001iaxhxpd0839d8r-xz-5.4.7-bin/bin:/nix/store/j4aja22d2ngbpmi4vdpdd2dvp1hm7dvr-file-5.45/bin:/run/wrappers/bin:/home/REDACTED
/.nix-profile/bin:/nix/profile/bin:/home/REDACTED/.local/state/nix/profile/bin:/etc/profiles/per-user/REDACTED/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin UBSAN_OPTIONS=halt_on_error=1:abort_on
_error=1:print_summary=1:print_stacktrace=1 /nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/bin/python3 -m pytest -v -n auto --maxprocesses=12 --dist=loadscope /home/REDACTED/git/lix/lix/tests/funct
ional2
----------------------------------- stdout -----------------------------------
============================= test session starts ==============================
platform linux -- Python 3.11.9, pytest-8.1.1, pluggy-1.4.0 -- /nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/bin/python3.11
cachedir: .pytest_cache
rootdir: /home/REDACTED/git/lix/lix
plugins: xdist-3.5.0, xonsh-0.15.1
created: 12/12 workers
INTERNALERROR> def worker_internal_error(self, node, formatted_error):
INTERNALERROR>         """
INTERNALERROR>         pytest_internalerror() was called on the worker.
INTERNALERROR>     
INTERNALERROR>         pytest_internalerror() arguments are an excinfo and an excrepr, which can't
INTERNALERROR>         be serialized, so we go with a poor man's solution of raising an exception
INTERNALERROR>         here ourselves using the formatted message.
INTERNALERROR>         """
INTERNALERROR>         self._active_nodes.remove(node)
INTERNALERROR>         try:
INTERNALERROR> >           assert False, formatted_error
INTERNALERROR> E           AssertionError: Traceback (most recent call last):
INTERNALERROR> E               File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/main.py", line 281, in wrap_session
INTERNALERROR> E                 config._do_configure()
INTERNALERROR> E               File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/config/__init__.py", line 1121, in _do_configure
INTERNALERROR> E                 self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR> E               File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_hooks.py", line 523, in call_historic
INTERNALERROR> E                 res = self._hookexec(self.name, self._hookimpls.copy(), kwargs, False)
INTERNALERROR> E                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E               File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_manager.py", line 119, in _hookexec
INTERNALERROR> E                 return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E               File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 138, in _multicall
INTERNALERROR> E                 raise exception.with_traceback(exception.__traceback__)
INTERNALERROR> E               File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 102, in _multicall
INTERNALERROR> E                 res = hook_impl.function(*args)
INTERNALERROR> E                       ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E               File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/pytest/plugin.py", line 30, in pytest_configure
INTERNALERROR> E                 setup()
INTERNALERROR> E               File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/main.py", line 627, in setup
INTERNALERROR> E                 XSH.load(ctx=ctx, execer=execer)
INTERNALERROR> E               File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 649, in load
INTERNALERROR> E                 resetting_signal_handle(sig, flush_on_exit)
INTERNALERROR> E               File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 64, in resetting_signal_handle
INTERNALERROR> E                 signal.signal(sig, newh)
INTERNALERROR> E               File "/nix/store/pfv4raslwhi3101k342752v65zxkwrxq-python3-3.11.9/lib/python3.11/signal.py", line 58, in signal
INTERNALERROR> E                 handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
INTERNALERROR> E                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E             ValueError: signal only works in main thread of the main interpreter
INTERNALERROR> E           assert False
INTERNALERROR> 
INTERNALERROR> /nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xdist/dsession.py:200: AssertionError
[gw6] node down: Not properly terminated

replacing crashed worker gw6
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/main.py", line 285, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>                          ^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/main.py", line 339, in _main
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_hooks.py", line 501, in __call__
INTERNALERROR>     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_manager.py", line 119, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 138, in _multicall
INTERNALERROR>     raise exception.with_traceback(exception.__traceback__)
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 121, in _multicall
INTERNALERROR>     teardown.throw(exception)  # type: ignore[union-attr]
INTERNALERROR>     ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/logging.py", line 806, in pytest_runtestloop
INTERNALERROR>     return (yield)  # Run all the tests.
INTERNALERROR>             ^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 102, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xdist/dsession.py", line 123, in pytest_runtestloop
INTERNALERROR>     self.loop_once()
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xdist/dsession.py", line 148, in loop_once
INTERNALERROR>     call(**kwargs)
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xdist/dsession.py", line 238, in worker_errordown
INTERNALERROR>     self._active_nodes.remove(node)
INTERNALERROR> KeyError: <WorkerController gw6>

============================ no tests ran in 5.92s =============================
----------------------------------- stderr -----------------------------------
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/main.py", line 281, in wrap_session
INTERNALERROR>     config._do_configure()
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/config/__init__.py", line 1121, in _do_configure
INTERNALERROR>     self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_hooks.py", line 523, in call_historic
INTERNALERROR>     res = self._hookexec(self.name, self._hookimpls.copy(), kwargs, False)
INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_manager.py", line 119, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 138, in _multicall
INTERNALERROR>     raise exception.with_traceback(exception.__traceback__)
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 102, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/pytest/plugin.py", line 30, in pytest_configure
INTERNALERROR>     setup()
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/main.py", line 627, in setup
INTERNALERROR>     XSH.load(ctx=ctx, execer=execer)
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 649, in load
INTERNALERROR>     resetting_signal_handle(sig, flush_on_exit)
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 64, in resetting_signal_handle
INTERNALERROR>     signal.signal(sig, newh)
INTERNALERROR>   File "/nix/store/pfv4raslwhi3101k342752v65zxkwrxq-python3-3.11.9/lib/python3.11/signal.py", line 58, in signal
INTERNALERROR>     handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
INTERNALERROR>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> ValueError: signal only works in main thread of the main interpreter
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/main.py", line 281, in wrap_session
INTERNALERROR>     config._do_configure()
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/config/__init__.py", line 1121, in _do_configure
INTERNALERROR>     self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_hooks.py", line 523, in call_historic
INTERNALERROR>     res = self._hookexec(self.name, self._hookimpls.copy(), kwargs, False)
INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_manager.py", line 119, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 138, in _multicall
INTERNALERROR>     raise exception.with_traceback(exception.__traceback__)
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 102, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/pytest/plugin.py", line 30, in pytest_configure
INTERNALERROR>     setup()
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/main.py", line 627, in setup
INTERNALERROR>     XSH.load(ctx=ctx, execer=execer)
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 649, in load
INTERNALERROR>     resetting_signal_handle(sig, flush_on_exit)
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 64, in resetting_signal_handle
INTERNALERROR>     signal.signal(sig, newh)
INTERNALERROR>   File "/nix/store/pfv4raslwhi3101k342752v65zxkwrxq-python3-3.11.9/lib/python3.11/signal.py", line 58, in signal
INTERNALERROR>     handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
INTERNALERROR>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> ValueError: signal only works in main thread of the main interpreter
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/main.py", line 281, in wrap_session
INTERNALERROR>     config._do_configure()
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/config/__init__.py", line 1121, in _do_configure
INTERNALERROR>     self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_hooks.py", line 523, in call_historic
INTERNALERROR>     res = self._hookexec(self.name, self._hookimpls.copy(), kwargs, False)
INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_manager.py", line 119, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 138, in _multicall
INTERNALERROR>     raise exception.with_traceback(exception.__traceback__)
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 102, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/pytest/plugin.py", line 30, in pytest_configure
INTERNALERROR>     setup()
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/main.py", line 627, in setup
INTERNALERROR>     XSH.load(ctx=ctx, execer=execer)
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 649, in load
INTERNALERROR>     resetting_signal_handle(sig, flush_on_exit)
INTERNALERROR>   File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 64, in resetting_signal_handle
INTERNALERROR>     signal.signal(sig, newh)
INTERNALERROR>   File "/nix/store/pfv4raslwhi3101k342752v65zxkwrxq-python3-3.11.9/lib/python3.11/signal.py", line 58, in signal
INTERNALERROR>     handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
INTERNALERROR>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> ValueError: signal only works in main thread of the main interpreter
==============================================================================

This appears to be a bug in xonsh which we are not even intending to use with pytest. So we could certainly disable the xonsh pytest module and it would fix it.

This issue is documenting that we should do this.

Reported by @pennae: ``` ================================== 165/169 =================================== test: lix:installcheck / functional2 start time: 19:11:31 duration: 9.74s result: exit status 3 command: MALLOC_PERTURB_=57 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 PATH=/home/REDACTED/git/lix/lix/outpu ts/out/bin:/nix/store/bjwl1aa44fmlbizc9c9c99l3hjb3a1a8-pre-commit-3.7.1/bin:/home/REDACTED/git/lix/lix/outputs/out/bin:/nix/store/izzwvk6cbbhsg3x5aqn33q9gnf3nbh2r-clang-tools-17.0.6/bin:/nix/store/p5441mp6wwpdh65q amaixvd092cwr45h-bash-interactive-5.2p26/bin:/nix/store/11s5cpc18wj0k7k0kwpnwbbm0797ccm2-check-syscalls/bin:/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/bin:/nix/store/fbkpv9baalbf7bbjm314nidqc2 1dl39n-skopeo-1.15.1/bin:/nix/store/0x38dhvcw44di4p75sgmi2f52zfnxpqg-just-1.28.0/bin:/nix/store/am45cgcp6yr9i456yyk27gb6348skv9q-nixfmt-unstable-2024-07-12/bin:/nix/store/r797g0wxc3wyv81inpxy4vyryb2rz7pw-doxygen- 1.10.0/bin:/nix/store/vdh05ps03wbaka8gv8q1w9ys5ngwhlnc-clang-wrapper-17.0.6/bin:/nix/store/cmxvjk0wx47kznqs0ny84axypsajk08v-clang-17.0.6/bin:/nix/store/z5gvbj7p7dr89k42ncrl2mlv5v3ymjlp-glibc-2.39-52-bin/bin:/nix/ store/ysqx2xfzygv2rxl7nxnw48276z5ckppn-coreutils-9.5/bin:/nix/store/14v22l7hw88zm113zcigs9yyrqmf0f30-binutils-wrapper-2.41/bin:/nix/store/7v7g86ml0ri171gfcrs1d442px5bi1p3-binutils-2.41/bin:/nix/store/1zxywbbf60il 0la6bh8ly1jaw18gz2zg-rust-analyzer-2024-04-29/bin:/nix/store/mw94s5yw2j9aj93psy92n3bhb4vgk1gi-cargo-1.77.2/bin:/nix/store/wqj70g6d2iv65bljsyqpxbzx9wvi0mwy-rustc-wrapper-1.77.2/bin:/nix/store/xynbjhismzgygdl86sin3 bdkl3k8x1fh-rustfmt-1.77.2/bin:/nix/store/2wyd384q23klzv9qfsrylsknk0cj06qc-llvm-17.0.6-dev/bin:/nix/store/d2hxg9l2k4n0kykcxiqnn5ch9wbp25g2-ncurses-6.4-dev/bin:/nix/store/7ka1d6qli0bci8d1k9b7zw0jrd2s2q1k-ncurses-6 .4/bin:/nix/store/3hkd4gsxm8ck8lfw45gy714hrlx3w5gc-llvm-17.0.6/bin:/nix/store/qfnwrabwxpviws5pmdfx36x2ys4qnbks-clang-17.0.6-dev/bin:/nix/store/njj4snqcpa80rbn95gb13y6yzkmpnc9y-python3.11-yq-3.4.3/bin:/nix/store/l mcf2ns2kvxg8mg1zx5ns5n0vl30gav8-python3.11-argcomplete-3.3.0/bin:/nix/store/pfv4raslwhi3101k342752v65zxkwrxq-python3-3.11.9/bin:/nix/store/p6lfvmdwkb9rqd8h4j6ydmx9qk27sc5z-python3.11-pre-commit-hooks-4.6.0/bin:/n ix/store/hhlpyj59v29kzifcaccrs9p4bjs3wrvj-check-headers/bin:/nix/store/jx24inny8hdv56yfjq82c5vsdq67sk99-build-release-notes/bin:/nix/store/13qajm1dn78xrsxi2qn9xc6z4qm4xhac-treefmt/bin:/nix/store/5j3scf96z7dp224gl msarkvbv06zqgn2-clangbuildanalyzer-1.5.0/bin:/nix/store/n4ryhj0lyq755l61r1136vpyj8bvbhyr-gdb-14.2/bin:/nix/store/sbsa1mhqrgqapn98mv4v9bis46b38a1l-rr-5.8.0/bin:/nix/store/8p3az3l199i3w6x9jn7zz5g9r6sy5p7c-python3.1 1-pytest-8.1.1/bin:/nix/store/faqinb3ipfsqhvihb2k9ap8k9n53y1bd-meson-1.4.1/bin:/nix/store/p5y20shjad8an1jhcby82sz843lirvwi-ninja-1.11.1/bin:/nix/store/mk7637n6h4d437gl5cplxvd3k2l66awd-cmake-3.29.2/bin:/nix/store/ 6b9z4grs97g8ii3jb0zqs8akjbpr07v3-capnproto-1.0.2/bin:/nix/store/n6njr57g8cjky3xpciy84nzlz5955q2j-openssl-3.0.14-bin/bin:/nix/store/v6v8jan271vlh583b1k20ddw0kfhsz7s-lowdown-1.1.0/bin:/nix/store/qwqnl369j67x9wy3q62 1dwkk4flz40s9-mdbook-0.4.37/bin:/nix/store/bkayw2afd2jbvdiy6zv1nrn9s3n4li6b-mdbook-linkcheck-0.7.7/bin:/nix/store/gx6s21qcy4glnla7f3nvrawnfrw6g3jl-pkg-config-wrapper-0.29.2/bin:/nix/store/fya3qmsm9rqky5f2fblh2yjv dp06f8wk-git-2.44.1/bin:/nix/store/xjmzjb7bbk7qs9myhjs1wg35wbxvhqi5-mercurial-6.6.3/bin:/nix/store/9rxqymz0cb33lix6l2vwhhy0rkjfv4dv-jq-1.7.1-bin/bin:/nix/store/jmnqypmvx9rzhhmr2x8v6gphry2h3gwg-lsof-4.99.3/bin:/ni x/store/m8alhfav4r1n1vqa5w1hmi0z583wmq2p-util-linux-minimal-2.39.4-bin/bin:/nix/store/cy6j2yii4y9jlbqr10k190v0b3jdbwl3-patchelf-0.15.0/bin:/nix/store/9vfi8ql0l2a66njj03hz32712hxpz5an-compiler-rt-libc-17.0.6/bin:/ nix/store/8nfrh46nfknv0mzppf9sf2zhkvhxxb6j-curl-8.7.1-dev/bin:/nix/store/h3xqjzk1fkhj1i4h6whfpvkrfhrlqwkf-brotli-1.1.0/bin:/nix/store/7gdpbhhz5jy1h2b70aj0jmlzzrrc7l5b-libkrb5-1.21.3-dev/bin:/nix/store/lbp0rbrmvsh 6nc5r0in8nm8qzr0z0ss0-libkrb5-1.21.3/bin:/nix/store/cx74g5axh785mhdfalkbg02hdbq40a2x-nghttp2-1.61.0/bin:/nix/store/wq8jmlhbf0pl8vcay3axy5cgsj7m8762-libidn2-2.3.7-bin/bin:/nix/store/c9fwl83hq4646n31bn443cg2a0hiyvj 5-libpsl-0.21.5-bin/bin:/nix/store/86z7aqqvsc0aqxhvglz67x1gh8w425nq-zstd-1.5.6-bin/bin:/nix/store/4xr9868xjcvyqz6jjzrp5snr19afq3bf-zstd-1.5.6/bin:/nix/store/0yliz4s415p1apm9hkwxan5zww8hgcja-curl-8.7.1-bin/bin:/ni x/store/fmk8lz57yy64hvz9rp58krlzb3q9df70-bzip2-1.0.8-bin/bin:/nix/store/5srqwq17md7w5ln001iaxhxpd0839d8r-xz-5.4.7-bin/bin:/nix/store/945my7vwxvv99ds4p9y25l5x2ql709qq-sqlite-3.45.3-bin/bin:/nix/store/yh0pb33c0p7vd zyw4q60633amgcpxzi3-attr-2.5.2-bin/bin:/nix/store/228simhn18dkib2cd7nsdbbfjqqvks69-acl-2.3.2-bin/bin:/nix/store/yc7xipmlk27jryd4gs7j9wavvdc8zx6p-libarchive-3.7.4/bin:/nix/store/dwrkqr6cgc5cwar1av081zvdfqq5jmfd-li bseccomp-2.5.5/bin:/nix/store/ngg6r2s4jzbmvc2pmzlpw05dmjgx63yb-busybox-static-x86_64-unknown-linux-musl-1.36.1/bin:/nix/store/cbcx3b89f1nj5n8nkxan4b29v7hdc11m-libcpuid-0.6.5/bin:/nix/store/ysqx2xfzygv2rxl7nxnw482 76z5ckppn-coreutils-9.5/bin:/nix/store/36rvynxwln7iz0qq3k1v3r1mna8bma8s-findutils-4.9.0/bin:/nix/store/0fw4a3z849azkhyjxnpxbygj4g5qhd0v-diffutils-3.10/bin:/nix/store/7xwbkzfrs6flyvjyvd23m8r2mlnycinq-gnused-4.9/bi n:/nix/store/d9xr7s3z0r8rf0ba22q6ilqv68agymdb-gnugrep-3.11/bin:/nix/store/9fklixgxv2a9xxpbn504mpifnbz94rb5-gawk-5.2.2/bin:/nix/store/iz0gv4jb2b8bkb9krmha68b00b24p3rl-gnutar-1.35/bin:/nix/store/g14bdsvp1lqqhiyd9g8 8nyjhp16hs9wj-gzip-1.13/bin:/nix/store/fmk8lz57yy64hvz9rp58krlzb3q9df70-bzip2-1.0.8-bin/bin:/nix/store/3hnf34qxi3h6c62dw95crgxdxvibasml-gnumake-4.4.1/bin:/nix/store/5jw69mbaj5dg4l2bj58acg3gxywfszpj-bash-5.2p26/bi n:/nix/store/f46k9pgiq88v6yh76wxb3dv1ggpn6fml-patch-2.7.6/bin:/nix/store/5srqwq17md7w5ln001iaxhxpd0839d8r-xz-5.4.7-bin/bin:/nix/store/j4aja22d2ngbpmi4vdpdd2dvp1hm7dvr-file-5.45/bin:/run/wrappers/bin:/home/REDACTED /.nix-profile/bin:/nix/profile/bin:/home/REDACTED/.local/state/nix/profile/bin:/etc/profiles/per-user/REDACTED/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin UBSAN_OPTIONS=halt_on_error=1:abort_on _error=1:print_summary=1:print_stacktrace=1 /nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/bin/python3 -m pytest -v -n auto --maxprocesses=12 --dist=loadscope /home/REDACTED/git/lix/lix/tests/funct ional2 ----------------------------------- stdout ----------------------------------- ============================= test session starts ============================== platform linux -- Python 3.11.9, pytest-8.1.1, pluggy-1.4.0 -- /nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/bin/python3.11 cachedir: .pytest_cache rootdir: /home/REDACTED/git/lix/lix plugins: xdist-3.5.0, xonsh-0.15.1 created: 12/12 workers INTERNALERROR> def worker_internal_error(self, node, formatted_error): INTERNALERROR> """ INTERNALERROR> pytest_internalerror() was called on the worker. INTERNALERROR> INTERNALERROR> pytest_internalerror() arguments are an excinfo and an excrepr, which can't INTERNALERROR> be serialized, so we go with a poor man's solution of raising an exception INTERNALERROR> here ourselves using the formatted message. INTERNALERROR> """ INTERNALERROR> self._active_nodes.remove(node) INTERNALERROR> try: INTERNALERROR> > assert False, formatted_error INTERNALERROR> E AssertionError: Traceback (most recent call last): INTERNALERROR> E File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/main.py", line 281, in wrap_session INTERNALERROR> E config._do_configure() INTERNALERROR> E File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/config/__init__.py", line 1121, in _do_configure INTERNALERROR> E self.hook.pytest_configure.call_historic(kwargs=dict(config=self)) INTERNALERROR> E File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_hooks.py", line 523, in call_historic INTERNALERROR> E res = self._hookexec(self.name, self._hookimpls.copy(), kwargs, False) INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> E File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_manager.py", line 119, in _hookexec INTERNALERROR> E return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> E File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 138, in _multicall INTERNALERROR> E raise exception.with_traceback(exception.__traceback__) INTERNALERROR> E File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 102, in _multicall INTERNALERROR> E res = hook_impl.function(*args) INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> E File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/pytest/plugin.py", line 30, in pytest_configure INTERNALERROR> E setup() INTERNALERROR> E File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/main.py", line 627, in setup INTERNALERROR> E XSH.load(ctx=ctx, execer=execer) INTERNALERROR> E File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 649, in load INTERNALERROR> E resetting_signal_handle(sig, flush_on_exit) INTERNALERROR> E File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 64, in resetting_signal_handle INTERNALERROR> E signal.signal(sig, newh) INTERNALERROR> E File "/nix/store/pfv4raslwhi3101k342752v65zxkwrxq-python3-3.11.9/lib/python3.11/signal.py", line 58, in signal INTERNALERROR> E handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> E ValueError: signal only works in main thread of the main interpreter INTERNALERROR> E assert False INTERNALERROR> INTERNALERROR> /nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xdist/dsession.py:200: AssertionError [gw6] node down: Not properly terminated replacing crashed worker gw6 INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/main.py", line 285, in wrap_session INTERNALERROR> session.exitstatus = doit(config, session) or 0 INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/main.py", line 339, in _main INTERNALERROR> config.hook.pytest_runtestloop(session=session) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_hooks.py", line 501, in __call__ INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_manager.py", line 119, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 138, in _multicall INTERNALERROR> raise exception.with_traceback(exception.__traceback__) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 121, in _multicall INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr] INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/logging.py", line 806, in pytest_runtestloop INTERNALERROR> return (yield) # Run all the tests. INTERNALERROR> ^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 102, in _multicall INTERNALERROR> res = hook_impl.function(*args) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xdist/dsession.py", line 123, in pytest_runtestloop INTERNALERROR> self.loop_once() INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xdist/dsession.py", line 148, in loop_once INTERNALERROR> call(**kwargs) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xdist/dsession.py", line 238, in worker_errordown INTERNALERROR> self._active_nodes.remove(node) INTERNALERROR> KeyError: <WorkerController gw6> ============================ no tests ran in 5.92s ============================= ----------------------------------- stderr ----------------------------------- INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/main.py", line 281, in wrap_session INTERNALERROR> config._do_configure() INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/config/__init__.py", line 1121, in _do_configure INTERNALERROR> self.hook.pytest_configure.call_historic(kwargs=dict(config=self)) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_hooks.py", line 523, in call_historic INTERNALERROR> res = self._hookexec(self.name, self._hookimpls.copy(), kwargs, False) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_manager.py", line 119, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 138, in _multicall INTERNALERROR> raise exception.with_traceback(exception.__traceback__) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 102, in _multicall INTERNALERROR> res = hook_impl.function(*args) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/pytest/plugin.py", line 30, in pytest_configure INTERNALERROR> setup() INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/main.py", line 627, in setup INTERNALERROR> XSH.load(ctx=ctx, execer=execer) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 649, in load INTERNALERROR> resetting_signal_handle(sig, flush_on_exit) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 64, in resetting_signal_handle INTERNALERROR> signal.signal(sig, newh) INTERNALERROR> File "/nix/store/pfv4raslwhi3101k342752v65zxkwrxq-python3-3.11.9/lib/python3.11/signal.py", line 58, in signal INTERNALERROR> handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> ValueError: signal only works in main thread of the main interpreter INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/main.py", line 281, in wrap_session INTERNALERROR> config._do_configure() INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/config/__init__.py", line 1121, in _do_configure INTERNALERROR> self.hook.pytest_configure.call_historic(kwargs=dict(config=self)) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_hooks.py", line 523, in call_historic INTERNALERROR> res = self._hookexec(self.name, self._hookimpls.copy(), kwargs, False) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_manager.py", line 119, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 138, in _multicall INTERNALERROR> raise exception.with_traceback(exception.__traceback__) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 102, in _multicall INTERNALERROR> res = hook_impl.function(*args) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/pytest/plugin.py", line 30, in pytest_configure INTERNALERROR> setup() INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/main.py", line 627, in setup INTERNALERROR> XSH.load(ctx=ctx, execer=execer) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 649, in load INTERNALERROR> resetting_signal_handle(sig, flush_on_exit) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 64, in resetting_signal_handle INTERNALERROR> signal.signal(sig, newh) INTERNALERROR> File "/nix/store/pfv4raslwhi3101k342752v65zxkwrxq-python3-3.11.9/lib/python3.11/signal.py", line 58, in signal INTERNALERROR> handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> ValueError: signal only works in main thread of the main interpreter INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/main.py", line 281, in wrap_session INTERNALERROR> config._do_configure() INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/_pytest/config/__init__.py", line 1121, in _do_configure INTERNALERROR> self.hook.pytest_configure.call_historic(kwargs=dict(config=self)) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_hooks.py", line 523, in call_historic INTERNALERROR> res = self._hookexec(self.name, self._hookimpls.copy(), kwargs, False) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_manager.py", line 119, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 138, in _multicall INTERNALERROR> raise exception.with_traceback(exception.__traceback__) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/pluggy/_callers.py", line 102, in _multicall INTERNALERROR> res = hook_impl.function(*args) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/pytest/plugin.py", line 30, in pytest_configure INTERNALERROR> setup() INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/main.py", line 627, in setup INTERNALERROR> XSH.load(ctx=ctx, execer=execer) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 649, in load INTERNALERROR> resetting_signal_handle(sig, flush_on_exit) INTERNALERROR> File "/nix/store/qgyalqa3ckgsqixrh2xgvmsnj08dsj65-python3-3.11.9-env/lib/python3.11/site-packages/xonsh/built_ins.py", line 64, in resetting_signal_handle INTERNALERROR> signal.signal(sig, newh) INTERNALERROR> File "/nix/store/pfv4raslwhi3101k342752v65zxkwrxq-python3-3.11.9/lib/python3.11/signal.py", line 58, in signal INTERNALERROR> handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNALERROR> ValueError: signal only works in main thread of the main interpreter ============================================================================== ``` This appears to be a bug in xonsh which we are not even *intending* to use with pytest. So we could certainly disable the xonsh pytest module and it would fix it. This issue is documenting that we should do this.
jade added the
devx
E/easy
E/help wanted
testing/flakey
labels 2024-12-05 20:11:34 +00:00
jade self-assigned this 2024-12-05 22:12:37 +00:00
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/2278 ("tests/functional2: fix occasional pytest haunting")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/2278", "number": 2278, "kind": "commit message"}], "cl_meta": {"2278": {"change_title": "tests/functional2: fix occasional pytest haunting"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/2278](https://gerrit.lix.systems/c/lix/+/2278) ("tests/functional2: fix occasional pytest haunting")
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#593
No description provided.