-
-
Notifications
You must be signed in to change notification settings - Fork 17.6k
Closed
Labels
0.kind: bugSomething is brokenSomething is broken
Description
Nixpkgs version
- Staging
Describe the bug
I was trying to build a package on my vps, which runs on Debian, Fd related tests seems to be failing. This may be only on non-nixos system?
nix-build -A python3Packages.watchdog
watchdog> =================================== FAILURES ===================================
watchdog> ________________________________ test_select_fd ________________________________
watchdog>
watchdog> p = <bound method Helper.joinpath of Helper(tmp='/build/pytest-of-nixbld/pytest-0/test_select_fd0', emitters=[], event_queue=<queue.Queue object at 0x7ffff54d1d00>)>
watchdog> event_queue = <queue.Queue object at 0x7ffff54d1d00>
watchdog> start_watching = <bound method Helper.start_watching of Helper(tmp='/build/pytest-of-nixbld/pytest-0/test_select_fd0', emitters=[], event_queue=<queue.Queue object at 0x7ffff54d1d00>)>
watchdog>
watchdog> def test_select_fd(p: P, event_queue: TestEventQueue, start_watching: StartWatching) -> None:
watchdog> # We open a file 2048 times to ensure that we exhaust 1024 file
watchdog> # descriptors, the limit of a select() call.
watchdog> path = p("new_file")
watchdog> with open(path, "a"):
watchdog> pass
watchdog> with ExitStack() as stack:
watchdog> for _i in range(2048):
watchdog> > stack.enter_context(open(path))
watchdog> ^^^^^^^^^^
watchdog> E OSError: [Errno 24] Too many open files: '/build/pytest-of-nixbld/pytest-0/test_select_fd0/new_file'
watchdog>
watchdog> _i = 1013
watchdog> event_queue = <queue.Queue object at 0x7ffff54d1d00>
watchdog> p = <bound method Helper.joinpath of Helper(tmp='/build/pytest-of-nixbld/pytest-0/test_select_fd0', emitters=[], event_queue=<queue.Queue object at 0x7ffff54d1d00>)>
watchdog> path = '/build/pytest-of-nixbld/pytest-0/test_select_fd0/new_file'
watchdog> stack = <contextlib.ExitStack object at 0x7ffff577bfc0>
watchdog> start_watching = <bound method Helper.start_watching of Helper(tmp='/build/pytest-of-nixbld/pytest-0/test_select_fd0', emitters=[], event_queue=<queue.Queue object at 0x7ffff54d1d00>)>
watchdog>
watchdog> tests/test_inotify_c.py:202: OSError
watchdog> ===Flaky Test Report===
watchdog>
watchdog> test_auto_restart_subprocess_termination[True] passed 1 out of the required 1 times. Success!
watchdog> test_auto_restart_subprocess_termination[False] passed 1 out of the required 1 times. Success!
watchdog> test_delayed_get passed 1 out of the required 1 times. Success!
watchdog> test_nondelayed_get passed 1 out of the required 1 times. Success!
watchdog> test_create passed 1 out of the required 1 times. Success!
watchdog> test_delete passed 1 out of the required 1 times. Success!
watchdog> test_modify passed 1 out of the required 1 times. Success!
watchdog> test_chmod passed 1 out of the required 1 times. Success!
watchdog> test_move passed 1 out of the required 1 times. Success!
watchdog> test_case_change passed 1 out of the required 1 times. Success!
watchdog> test_move_to passed 1 out of the required 1 times. Success!
watchdog> test_move_from passed 1 out of the required 1 times. Success!
watchdog> test_separate_consecutive_moves passed 1 out of the required 1 times. Success!
watchdog> test_delete_self passed 1 out of the required 1 times. Success!
watchdog> test_passing_unicode_should_give_unicode passed 1 out of the required 1 times. Success!
watchdog> test_recursive_on passed 1 out of the required 1 times. Success!
watchdog> test_recursive_off passed 1 out of the required 1 times. Success!
watchdog> test_renaming_top_level_directory passed 1 out of the required 1 times. Success!
watchdog> test_file_lifecyle passed 1 out of the required 1 times. Success!
watchdog>
watchdog> ===End Flaky Test Report===
watchdog> =========================== short test summary info ============================
watchdog> FAILED tests/test_inotify_c.py::test_select_fd - OSError: [Errno 24] Too many open files: '/build/pytest-of-nixbld/pytest-0/test_select_fd0/new_file'
watchdog> =========== 1 failed, 160 passed, 5 skipped, 3 deselected in 55.96s ============
error: builder for '/nix/store/h0y3329l8vbq06bggxa58wv5rgsbk7vd-python3.13-watchdog-6.0.0.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/fzz4wpx9fgsnlcapf9xq9gnx5a9zv5g4-python3.13-werkzeug-3.1.4.drv' failed to build
boost> building '/nix/store/ddba841169p8r2x8adip8b56k78760sy-boost-1.87.0.drv'
error: 1 dependencies of derivation '/nix/store/mzfm789rsdad34yx2iwyk9dmiai1mj85-python3.13-httpbin-0.10.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ygl27rqg58v6vivq2nmzqrvjh4a5whz7-python3.13-websockets-15.0.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/iqg1r3w97qpjgm92kd5g5iwnkmb7b89f-python3.13-fastapi-cli-0.0.20.drv' failed to build
┏━ 1 Errors:
┃ error: builder for '/nix/store/h0y3329l8vbq06bggxa58wv5rgsbk7vd-python3.13-watchdog-6.0.0.drv' failed with exit code 1
┣━ Dependency Graph:
┃ ┌─ ⏵ boost-1.87.0
┃ ┌─ ⏸ systemtap-5.4
┃ ┌─ ⏸ systemtap-5.4
┃ ┌─ ⏸ glib-2.86.3
┃ ┌─ ⏸ gts-0.7.6
┃ ┌─ ⏸ graphviz-12.2.1
┃ ┌─ ⏸ wayland-1.24.0
┃ ┌─ ⏸ vulkan-loader-1.4.335.0
┃ ┌─ ⏸ ffmpeg-headless-8.0
┃ ┌─ ⏸ python3.13-matplotlib-3.10.5
┃ ┌─ ⏸ python3.13-pytest-regressions-2.8.1
┃ ┌─ ⏸ python3.13-markdown-it-py-3.0.0
┃ ┌─ ⏸ python3.13-rich-14.2.0
┃ ┌─ ⏸ python3.13-executing-2.2.1
┃ ┌─ ⏸ python3.13-stack-data-0.6.3
┃ ┌─ ⏸ python3.13-ipython-9.7.0
┃ ┌─ ⏸ python3.13-python-dotenv-1.2.1
┃ │ ┌─ ⚠ python3.13-watchdog-6.0.0 failed with exit code 1 after ⏱ 1m1s in pytestCheckPhase
┃ ├─ ⏸ python3.13-werkzeug-3.1.4
┃ ┌─ ⏸ python3.13-flask-3.1.2
┃ ┌─ ⏸ python3.13-flasgger-0.9.7.1
┃ ┌─ ⏸ python3.13-httpbin-0.10.2
┃ ┌─ ⏸ python3.13-pytest-httpbin-2.1.0
┃ ┌─ ⏸ python3.13-httpcore-1.0.9
┃ ┌─ ⏸ python3.13-httpx-0.28.1
┃ ┌─ ⏸ python3.13-proxy-py-2.4.10
┃ ┌─ ⏸ python3.13-aiohttp-3.13.2
┃ ┌─ ⏸ python3.13-black-25.1.0
┃ ┌─ ⏸ python3.13-inline-snapshot-0.28.0
┃ ┌─ ⏸ python3.13-rich-toolkit-0.15.1
┃ ⏸ python3.13-fastapi-cli-0.0.20
┣━━━ Builds
┗━ ∑ ⏵ 1 │ ✔ 0 │ ⏸ 352 │ ⚠ Exited after 1 build failures at 01:04:21 after 1m6sAdditional context
No response
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.1.0-41-amd64, Debian GNU/Linux, 12 (bookworm), nobuild - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.24.9 - channels(root):
"nixpkgs" - nixpkgs:
/root/.cache/nixpkgs-review/pr-474303-4/nixpkgs
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken