nixbot

builds

failed python3.14-watchfiles-1.2.0 checks.aarch64-darwin.pkgs-mistral-vibe · build #4973 · raw

1Sourcing python-remove-tests-dir-hook2Sourcing python-catch-conflicts-hook.sh3Sourcing python-remove-bin-bytecode-hook.sh4Sourcing pypa-build-hook5Using pypaBuildPhase6Sourcing python-runtime-deps-check-hook7Using pythonRuntimeDepsCheckHook8Sourcing pypa-install-hook9Using pypaInstallPhase10Sourcing python-imports-check-hook.sh11Using pythonImportsCheckPhase12Sourcing python-metadata-check-hook.sh13Using pythonMetadataCheckPhase14Sourcing python-namespaces-hook15Sourcing python-catch-conflicts-hook.sh16Sourcing pytest-check-hook17Using pytestCheckPhase18Using versionCheckHook
unpackPhase
19unpacking source archive /nix/store/dy9mjy3mq1q7vn42y65fns1dxvncfy8j-source20source root is source21Executing cargoSetupPostUnpackHook22Finished cargoSetupPostUnpackHook23setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/watchfiles/version.py"
patchPhase
24Executing cargoSetupPostPatchHook25Validating consistency between /nix/var/nix/builds/nix-72119-2631056588/source/Cargo.lock and /nix/var/nix/builds/nix-72119-2631056588/watchfiles-1.2.0-vendor/Cargo.lock26Finished cargoSetupPostPatchHook
configurePhase
27no configure script, doing nothing
buildPhase
28Executing maturinBuildHook29maturinBuildHook flags: --jobs=10 --offline --target aarch64-apple-darwin --manylinux off --strip --out /nix/var/nix/builds/nix-72119-2631056588/source/dist --interpreter python3.14 --release30📦 Including license file `LICENSE`31🍹 Building a mixed python/rust project32🐍 Found CPython 3.14 at /nix/store/4l8r0s2r5fna7src82b5fc2hixdvfyw0-python3-3.14.7/bin/python3.1433🔗 Found pyo3 bindings34📡 Using build options bindings from pyproject.toml35 Compiling target-lexicon v0.13.536 Compiling python3-dll-a v0.2.1437 Compiling libc v0.2.16938 Compiling proc-macro2 v1.0.8139 Compiling quote v1.0.4540 Compiling unicode-ident v1.0.1241 Compiling heck v0.5.042 Compiling crossbeam-utils v0.8.1943 Compiling cfg-if v1.0.044 Compiling same-file v1.0.645 Compiling once_cell v1.21.346 Compiling walkdir v2.5.047 Compiling notify-types v2.0.048 Compiling log v0.4.2249 Compiling bitflags v2.7.050 Compiling syn v2.0.6051 Compiling crossbeam-channel v0.5.1552 Compiling fsevent-sys v4.1.053 Compiling filetime v0.2.2454 Compiling notify v8.0.055 Compiling pyo3-build-config v0.28.356 Compiling pyo3-ffi v0.28.357 Compiling pyo3-macros-backend v0.28.358 Compiling pyo3 v0.28.359 Compiling pyo3-macros v0.28.360 Compiling watchfiles_rust_notify v1.2.0 (/nix/var/nix/builds/nix-72119-2631056588/source)61 Finished `release` profile [optimized] target(s) in 7.67s62🔗 External shared libraries to be copied into the wheel:63 /nix/var/nix/builds/nix-72119-2631056588/source/target/maturin/lib_rust_notify.dylib requires:64 /nix/store/ls125wfdax9gk2ryq7fgzrncpi6x5v2s-libiconv-115.100.1/lib/libcharset.1.dylib => /nix/store/ls125wfdax9gk2ryq7fgzrncpi6x5v2s-libiconv-115.100.1/lib/libcharset.1.dylib65 /nix/store/ls125wfdax9gk2ryq7fgzrncpi6x5v2s-libiconv-115.100.1/lib/libiconv.2.dylib => /nix/store/ls125wfdax9gk2ryq7fgzrncpi6x5v2s-libiconv-115.100.1/lib/libiconv.2.dylib66⚠️ Warning: Your library requires copying the above external libraries. Re-run with `--auditwheel=repair` to copy them into the wheel.67📦 Built wheel for CPython 3.14 to /nix/var/nix/builds/nix-72119-2631056588/source/dist/watchfiles-1.2.0-cp314-cp314-macosx_14_0_arm64.whl68Finished maturinBuildHook
pythonRuntimeDepsCheckHook
69Executing pythonRuntimeDepsCheck70Checking runtime dependencies for watchfiles-1.2.0-cp314-cp314-macosx_14_0_arm64.whl71Finished executing pythonRuntimeDepsCheck
installPhase
72Executing pypaInstallPhase73Successfully installed watchfiles-1.2.0-cp314-cp314-macosx_14_0_arm64.whl74Finished executing pypaInstallPhase
pythonOutputDistPhase
75Executing pythonOutputDistPhase76Finished executing pythonOutputDistPhase
fixupPhase
77checking for references to /nix/var/nix/builds/nix-72119-2631056588/ in /nix/store/8l7w4cv8i7wa8m3zic718vf5s079frw4-python3.14-watchfiles-1.2.0...78patching script interpreter paths in /nix/store/8l7w4cv8i7wa8m3zic718vf5s079frw4-python3.14-watchfiles-1.2.079stripping (with command strip and flags -S) in /nix/store/8l7w4cv8i7wa8m3zic718vf5s079frw4-python3.14-watchfiles-1.2.0/lib /nix/store/8l7w4cv8i7wa8m3zic718vf5s079frw4-python3.14-watchfiles-1.2.0/bin80checking for references to /nix/var/nix/builds/nix-72119-2631056588/ in /nix/store/wzr34rqzb6f8vw7m6f59ywabz1k2km44-python3.14-watchfiles-1.2.0-dist...81patching script interpreter paths in /nix/store/wzr34rqzb6f8vw7m6f59ywabz1k2km44-python3.14-watchfiles-1.2.0-dist82Rewriting #!/nix/store/4l8r0s2r5fna7src82b5fc2hixdvfyw0-python3-3.14.7/bin/python3.14 to #!/nix/store/4l8r0s2r5fna7src82b5fc2hixdvfyw0-python3-3.14.783wrapping `/nix/store/8l7w4cv8i7wa8m3zic718vf5s079frw4-python3.14-watchfiles-1.2.0/bin/watchfiles'...84Executing pythonRemoveTestsDir85Finished executing pythonRemoveTestsDir
installCheckPhase
86Executing versionCheckPhase87Successfully managed to find version 1.2.0 in the output of the command /nix/store/8l7w4cv8i7wa8m3zic718vf5s079frw4-python3.14-watchfiles-1.2.0/bin/watchfiles --version88watchfiles v1.2.089Finished versionCheckPhase90no Makefile or custom installCheckPhase, doing nothing
pythonImportsCheckPhase
91Executing pythonImportsCheckPhase92Check whether the following modules can be imported: watchfiles
pythonMetadataCheckPhase
93Executing pythonMetadataCheckPhase
pytestCheckPhase
94Executing pytestCheckPhase95pytest flags: -m pytest -k not\ \(test_awatch_interrupt_raise\) -Wignore::pytest.PytestRemovedIn10Warning96============================= test session starts ==============================97platform darwin -- Python 3.14.7, pytest-9.1.1, pluggy-1.6.098rootdir: /nix/var/nix/builds/nix-72119-2631056588/source99configfile: pyproject.toml100testpaths: tests101plugins: mock-3.15.1, timeout-2.4.0, anyio-4.14.2102timeout: 10.0s103timeout method: signal104timeout func_only: False105collected 155 items / 1 deselected / 154 selected 106107tests/test_cli.py ....................... [ 14%]108tests/test_docs.py .........s [ 21%]109tests/test_filters.py .................. [ 33%]110tests/test_force_polling.py ........................... [ 50%]111tests/test_run_process.py ..s..................... [ 66%]112tests/test_rust_notify.py FF.FFFFFFFF.s.FF..sssss...s......... [ 89%]113tests/test_watch.py FFFF...........s [100%]114115=================================== FAILURES ===================================116___________________________________ test_add ___________________________________117118test_dir = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files')119120 def test_add(test_dir: Path):121 watcher = RustNotify([str(test_dir)], True, False, 0, True, False)122 (test_dir / 'new_file.txt').write_text('foobar')123 124> assert watcher.watch(200, 50, 500, None) == {(1, str(test_dir / 'new_file.txt'))}125E assert 'timeout' == {(1, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/new_file.txt')}126E + where 'timeout' = <built-in method watch of builtins.RustNotify object at 0x109b925b0>(200, 50, 500, None)127E + where <built-in method watch of builtins.RustNotify object at 0x109b925b0> = RustNotify(Recommended(\n FsEventWatcher {\n paths: 0x0000000103c3e4d0,\n since_when: 184467440737095516...sive_info: {\n "/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files": true,\n },\n },\n)).watch128129tests/test_rust_notify.py:23: AssertionError130----------------------------- Captured stderr call -----------------------------131watcher: FsEventWatcher { paths: 0x103c3e4d0, since_when: 18446744073709551615, latency: 0.0, flags: 18, event_handler: Pointer { addr: 0x103c38c10, metadata: DynMetadata(0x109f90a18) }, runloop: Some((0x98c6bb000, JoinHandle { .. })), recursive_info: {"/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files": true} }132____________________________ test_add_non_recursive ____________________________133134test_dir = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files')135136 def test_add_non_recursive(test_dir: Path):137 watcher = RustNotify([str(test_dir)], True, False, 0, False, False)138 139 (test_dir / 'new_file_non_recursive.txt').write_text('foobar')140 (test_dir / 'dir_a' / 'new_file_non_recursive.txt').write_text('foobar')141 142> assert watcher.watch(200, 50, 500, None) == {(1, str(test_dir / 'new_file_non_recursive.txt'))}143E assert 'timeout' == {(1, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/new_file_non_recursive.txt')}144E + where 'timeout' = <built-in method watch of builtins.RustNotify object at 0x109b92670>(200, 50, 500, None)145E + where <built-in method watch of builtins.RustNotify object at 0x109b92670> = RustNotify(Recommended(\n FsEventWatcher {\n paths: 0x0000000103c44ff0,\n since_when: 184467440737095516...ive_info: {\n "/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files": false,\n },\n },\n)).watch146147tests/test_rust_notify.py:32: AssertionError148----------------------------- Captured stderr call -----------------------------149watcher: FsEventWatcher { paths: 0x103c44ff0, since_when: 18446744073709551615, latency: 0.0, flags: 18, event_handler: Pointer { addr: 0x103c35dd0, metadata: DynMetadata(0x109f90a18) }, runloop: Some((0x98c6d8000, JoinHandle { .. })), recursive_info: {"/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files": false} }150______________________________ test_modify_write _______________________________151152test_dir = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files')153154 def test_modify_write(test_dir: Path):155 watcher = RustNotify([str(test_dir)], True, False, 0, True, False)156 157 (test_dir / 'a.txt').write_text('this is new')158 159> assert watcher.watch(200, 50, 500, None) == {(2, str(test_dir / 'a.txt'))}160E AssertionError: assert {(1, '/nix/va...files/a.txt')} == {(2, '/nix/va...files/a.txt')}161E 162E Extra items in the left set:163E (1, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/new_file_non_recursive.txt')164E (1, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/new_file.txt')165E (1, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/new_file_non_recursive.txt')166E Use -v to get more diff167168tests/test_rust_notify.py:51: AssertionError169----------------------------- Captured stderr call -----------------------------170watcher: FsEventWatcher { paths: 0x103c2eff0, since_when: 18446744073709551615, latency: 0.0, flags: 18, event_handler: Pointer { addr: 0x103c2f0f0, metadata: DynMetadata(0x109f90a18) }, runloop: Some((0x98c6d8c00, JoinHandle { .. })), recursive_info: {"/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files": true} }171raw-event=Event { kind: Create(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/new_file_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1172raw-event=Event { kind: Create(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/new_file_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1173raw-event=Event { kind: Create(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/new_file_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1174raw-event=Event { kind: Create(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/new_file_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1175raw-event=Event { kind: Create(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/new_file_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1176raw-event=Event { kind: Modify(Metadata(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2177raw-event=Event { kind: Modify(Metadata(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2178raw-event=Event { kind: Modify(Data(Content)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2179raw-event=Event { kind: Modify(Data(Content)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2180raw-event=Event { kind: Modify(Metadata(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2181raw-event=Event { kind: Modify(Data(Content)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2182raw-event=Event { kind: Create(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/new_file.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1183raw-event=Event { kind: Create(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/new_file.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1184raw-event=Event { kind: Create(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/new_file.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1185_______________________ test_modify_write_non_recursive ________________________186187test_dir = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files')188189 @skip_windows190 def test_modify_write_non_recursive(test_dir: Path):191 watcher = RustNotify([str(test_dir)], True, False, 0, False, False)192 193 (test_dir / 'a_non_recursive.txt').write_text('this is new')194 (test_dir / 'dir_a' / 'a_non_recursive.txt').write_text('this is new')195 196> assert watcher.watch(200, 50, 500, None) == {197 (2, str(test_dir / 'a_non_recursive.txt')),198 }199E assert 'timeout' == {(2, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a_non_recursive.txt')}200E + where 'timeout' = <built-in method watch of builtins.RustNotify object at 0x109b934b0>(200, 50, 500, None)201E + where <built-in method watch of builtins.RustNotify object at 0x109b934b0> = RustNotify(Recommended(\n FsEventWatcher {\n paths: 0x0000000103c44430,\n since_when: 184467440737095516...ive_info: {\n "/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files": false,\n },\n },\n)).watch202203tests/test_rust_notify.py:61: AssertionError204----------------------------- Captured stderr call -----------------------------205watcher: FsEventWatcher { paths: 0x103c44430, since_when: 18446744073709551615, latency: 0.0, flags: 18, event_handler: Pointer { addr: 0x103c44400, metadata: DynMetadata(0x109f90a18) }, runloop: Some((0x98c6d9800, JoinHandle { .. })), recursive_info: {"/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files": false} }206______________________________ test_modify_chmod _______________________________207208test_dir = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files')209210 @skip_windows211 def test_modify_chmod(test_dir: Path):212 watcher = RustNotify([str(test_dir)], True, False, 0, True, False)213 214 (test_dir / 'b.txt').chmod(0o444)215 216> assert watcher.watch(200, 50, 500, None) == {(2, str(test_dir / 'b.txt'))}217E AssertionError: assert {(2, '/nix/va...cursive.txt')} == {(2, '/nix/va...files/b.txt')}218E 219E Extra items in the left set:220E (2, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/a_non_recursive.txt')221E (2, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a_non_recursive.txt')222E Use -v to get more diff223224tests/test_rust_notify.py:72: AssertionError225----------------------------- Captured stderr call -----------------------------226watcher: FsEventWatcher { paths: 0x98dc74000, since_when: 18446744073709551615, latency: 0.0, flags: 18, event_handler: Pointer { addr: 0x98dba8110, metadata: DynMetadata(0x109f90a18) }, runloop: Some((0x98c6d8c00, JoinHandle { .. })), recursive_info: {"/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files": true} }227raw-event=Event { kind: Modify(Metadata(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2228raw-event=Event { kind: Modify(Data(Content)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2229raw-event=Event { kind: Modify(Metadata(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/a_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2230raw-event=Event { kind: Modify(Data(Content)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/a_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2231raw-event=Event { kind: Modify(Metadata(Ownership)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/b.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2232raw-event=Event { kind: Modify(Metadata(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2233raw-event=Event { kind: Modify(Data(Content)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2234raw-event=Event { kind: Modify(Metadata(Ownership)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/b.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=2235_________________________________ test_delete __________________________________236237test_dir = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files')238239 def test_delete(test_dir: Path):240 watcher = RustNotify([str(test_dir)], False, False, 0, True, False)241 242 (test_dir / 'c.txt').unlink()243 244> assert watcher.watch(200, 50, 500, None) == {245 (3, str(test_dir / 'c.txt')),246 }247E assert 'timeout' == {(3, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/c.txt')}248E + where 'timeout' = <built-in method watch of builtins.RustNotify object at 0x109b93b70>(200, 50, 500, None)249E + where <built-in method watch of builtins.RustNotify object at 0x109b93b70> = RustNotify(Recommended(\n FsEventWatcher {\n paths: 0x000000098dc74030,\n since_when: 184467440737095516...sive_info: {\n "/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files": true,\n },\n },\n)).watch250251tests/test_rust_notify.py:80: AssertionError252__________________________ test_delete_non_recursive ___________________________253254test_dir = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files')255256 def test_delete_non_recursive(test_dir: Path):257 watcher = RustNotify([str(test_dir)], False, False, 0, False, False)258 259 (test_dir / 'c_non_recursive.txt').unlink()260 (test_dir / 'dir_a' / 'c_non_recursive.txt').unlink()261 262> assert watcher.watch(200, 50, 500, None) == {263 (3, str(test_dir / 'c_non_recursive.txt')),264 }265E assert 'timeout' == {(3, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/c_non_recursive.txt')}266E + where 'timeout' = <built-in method watch of builtins.RustNotify object at 0x109b925b0>(200, 50, 500, None)267E + where <built-in method watch of builtins.RustNotify object at 0x109b925b0> = RustNotify(Recommended(\n FsEventWatcher {\n paths: 0x000000098dc74060,\n since_when: 184467440737095516...ive_info: {\n "/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files": false,\n },\n },\n)).watch268269tests/test_rust_notify.py:91: AssertionError270_________________________________ test_move_in _________________________________271272test_dir = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files')273274 def test_move_in(test_dir: Path):275 # can't use tmp_path as it causes problems on Windows (different drive), and macOS (delayed events)276 src = test_dir / 'dir_a'277 assert src.is_dir()278 dst = test_dir / 'dir_b'279 assert dst.is_dir()280 move_files = 'a.txt', 'b.txt'281 282 watcher = RustNotify([str(dst)], False, False, 0, True, False)283 284 for f in move_files:285 (src / f).rename(dst / f)286 287> assert watcher.watch(200, 50, 500, None) == {288 (1, str(dst / 'a.txt')),289 (1, str(dst / 'b.txt')),290 }291E assert 'timeout' == {(1, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_b/a.txt'), (1, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_b/b.txt')}292E + where 'timeout' = <built-in method watch of builtins.RustNotify object at 0x109b933f0>(200, 50, 500, None)293E + where <built-in method watch of builtins.RustNotify object at 0x109b933f0> = RustNotify(Recommended(\n FsEventWatcher {\n paths: 0x000000098dc74090,\n since_when: 184467440737095516...nfo: {\n "/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_b": true,\n },\n },\n)).watch294295tests/test_rust_notify.py:109: AssertionError296________________________________ test_move_out _________________________________297298test_dir = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files')299300 def test_move_out(test_dir: Path):301 # can't use tmp_path as it causes problems on Windows (different drive), and macOS (delayed events)302 src = test_dir / 'dir_a'303 dst = test_dir / 'dir_b'304 move_files = 'c.txt', 'd.txt'305 306 watcher = RustNotify([str(src)], False, False, 0, True, False)307 308 for f in move_files:309 (src / f).rename(dst / f)310 311> assert watcher.watch(200, 50, 500, None) == {312 (3, str(src / 'c.txt')),313 (3, str(src / 'd.txt')),314 }315E AssertionError: assert {(3, '/nix/va...dir_a/d.txt')} == {(3, '/nix/va...dir_a/d.txt')}316E 317E Extra items in the left set:318E (3, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/a.txt')319E (3, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/c_non_recursive.txt')320E (3, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/b.txt')321E Use -v to get more diff322323tests/test_rust_notify.py:126: AssertionError324----------------------------- Captured stderr call -----------------------------325raw-event=Event { kind: Remove(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/c.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3326raw-event=Event { kind: Remove(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/c_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3327raw-event=Event { kind: Remove(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/c_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3328raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/a.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3329raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_b/a.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1330raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/b.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3331raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_b/b.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1332raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/c.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3333raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_b/c.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1334raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/d.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3335raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_b/d.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1336raw-event=Event { kind: Remove(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/c.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3337raw-event=Event { kind: Remove(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/c_non_recursive.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3338______________________________ test_move_internal ______________________________339340test_dir = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files')341342 def test_move_internal(test_dir: Path):343 # can't use tmp_path as it causes problems on Windows (different drive), and macOS (delayed events)344 src = test_dir / 'dir_a'345 dst = test_dir / 'dir_b'346 move_files = 'e.txt', 'f.txt'347 348 watcher = RustNotify([str(test_dir)], False, False, 0, True, False)349 350 for f in move_files:351 (src / f).rename(dst / f)352 353 expected_changes = {354 (3, str(src / 'e.txt')),355 (3, str(src / 'f.txt')),356 (1, str(dst / 'e.txt')),357 (1, str(dst / 'f.txt')),358 }359 if sys.platform == 'win32':360 # Windows adds a "modified" event for the dst directory361 expected_changes.add((2, str(dst)))362 363> assert watcher.watch(200, 50, 500, None) == expected_changes364E assert 'timeout' == {(1, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_b/e.txt'), (1, '/nix/var/nix/builds/nix-721...ce/tests/test_files/dir_a/e.txt'), (3, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/f.txt')}365E + where 'timeout' = <built-in method watch of builtins.RustNotify object at 0x109b930f0>(200, 50, 500, None)366E + where <built-in method watch of builtins.RustNotify object at 0x109b930f0> = RustNotify(Recommended(\n FsEventWatcher {\n paths: 0x000000098dc740f0,\n since_when: 184467440737095516...sive_info: {\n "/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files": true,\n },\n },\n)).watch367368tests/test_rust_notify.py:153: AssertionError369_________________________________ test_rename __________________________________370371test_dir = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files')372373 def test_rename(test_dir: Path):374 watcher = RustNotify([str(test_dir)], False, False, 0, True, False)375 376 f = test_dir / 'a.txt'377 f.rename(f.with_suffix('.new'))378 379> assert watcher.watch(200, 50, 500, None) == {380 (3, str(f)),381 (1, str(test_dir / 'a.new')),382 }383E assert 'timeout' == {(1, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a.new'), (3, '/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a.txt')}384E + where 'timeout' = <built-in method watch of builtins.RustNotify object at 0x109b939f0>(200, 50, 500, None)385E + where <built-in method watch of builtins.RustNotify object at 0x109b939f0> = RustNotify(Recommended(\n FsEventWatcher {\n paths: 0x000000098dc74120,\n since_when: 184467440737095516...sive_info: {\n "/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files": true,\n },\n },\n)).watch386387tests/test_rust_notify.py:181: AssertionError388_____________________________ test_watch_multiple ______________________________389390tmp_path = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/pytest-of-_nixbld1/pytest-0/test_watch_multiple0')391392 def test_watch_multiple(tmp_path: Path):393 foo = tmp_path / 'foo'394 foo.mkdir()395 bar = tmp_path / 'bar'396 bar.mkdir()397 watcher = RustNotify([str(foo), str(bar)], False, False, 0, True, False)398 399 (tmp_path / 'not_included.txt').write_text('foobar')400 (foo / 'foo.txt').write_text('foobar')401 (bar / 'foo.txt').write_text('foobar')402 403 changes = watcher.watch(200, 50, 500, None)404 # can compare directly since on macos creating the foo and bar directories is included in changes405> assert (1, str(foo / 'foo.txt')) in changes406 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^407E TypeError: 'in <string>' requires string as left operand, not tuple408409tests/test_rust_notify.py:200: TypeError410__________________________________ test_watch __________________________________411412tmp_path = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/pytest-of-_nixbld1/pytest-0/test_watch0')413write_soon = <function write_soon.<locals>.start at 0x109b403b0>414415 def test_watch(tmp_path: Path, write_soon):416 sleep(0.05)417 write_soon(tmp_path / 'foo.txt')418 changes = None419 for changes in watch(tmp_path, debounce=50, step=10, watch_filter=None):420 break421 422> assert changes == {(Change.added, str(tmp_path / 'foo.txt'))}423E AssertionError: assert {(<Change.add...ch0/foo.txt')} == {(<Change.add...ch0/foo.txt')}424E 425E Extra items in the left set:426E (<Change.added: 1>, '/nix/var/nix/builds/nix-72119-2631056588/pytest-of-_nixbld1/pytest-0/test_watch0')427E Use -v to get more diff428429tests/test_watch.py:31: AssertionError430----------------------------- Captured stderr call -----------------------------431raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/e.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3432raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_b/e.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1433raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_a/f.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3434raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/dir_b/f.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1435raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3436raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=3437raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a.new"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1438raw-event=Event { kind: Create(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/test_polling.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1439raw-event=Event { kind: Modify(Name(Any)), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/a.new"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1440raw-event=Event { kind: Create(File), paths: ["/nix/var/nix/builds/nix-72119-2631056588/source/tests/test_files/test_polling.txt"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None } change=1441------------------------------ Captured log call -------------------------------442watchfiles.main INFO: 2 changes detected443_____________________________ test_wait_stop_event _____________________________444445tmp_path = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/pytest-of-_nixbld1/pytest-0/test_wait_stop_event0')446write_soon = <function write_soon.<locals>.start at 0x109b60720>447448 def test_wait_stop_event(tmp_path: Path, write_soon):449 sleep(0.05)450 write_soon(tmp_path / 'foo.txt')451 452 stop_event = threading.Event()453 for changes in watch(tmp_path, debounce=50, step=10, watch_filter=None, stop_event=stop_event):454> assert changes == {(Change.added, str(tmp_path / 'foo.txt'))}455E AssertionError: assert {(<Change.add...nt0/foo.txt')} == {(<Change.add...nt0/foo.txt')}456E 457E Extra items in the left set:458E (<Change.added: 1>, '/nix/var/nix/builds/nix-72119-2631056588/pytest-of-_nixbld1/pytest-0/test_wait_stop_event0')459E Use -v to get more diff460461tests/test_watch.py:40: AssertionError462------------------------------ Captured log call -------------------------------463watchfiles.main INFO: 2 changes detected464_________________________________ test_awatch __________________________________465466tmp_path = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/pytest-of-_nixbld1/pytest-0/test_awatch0')467write_soon = <function write_soon.<locals>.start at 0x109b401a0>468469 async def test_awatch(tmp_path: Path, write_soon):470 sleep(0.05)471 write_soon(tmp_path / 'foo.txt')472 async for changes in awatch(tmp_path, debounce=50, step=10, watch_filter=None):473> assert changes == {(Change.added, str(tmp_path / 'foo.txt'))}474E AssertionError: assert {(<Change.add...ch0/foo.txt')} == {(<Change.add...ch0/foo.txt')}475E 476E Extra items in the left set:477E (<Change.added: 1>, '/nix/var/nix/builds/nix-72119-2631056588/pytest-of-_nixbld1/pytest-0/test_awatch0')478E Use -v to get more diff479480tests/test_watch.py:48: AssertionError481------------------------------ Captured log call -------------------------------482watchfiles.main INFO: 2 changes detected483____________________________ test_await_stop_event _____________________________484485tmp_path = PosixPath('/nix/var/nix/builds/nix-72119-2631056588/pytest-of-_nixbld1/pytest-0/test_await_stop_event0')486write_soon = <function write_soon.<locals>.start at 0x109b40d50>487488 @pytest.mark.filterwarnings('ignore::DeprecationWarning')489 async def test_await_stop_event(tmp_path: Path, write_soon):490 sleep(0.05)491 write_soon(tmp_path / 'foo.txt')492 stop_event = anyio.Event()493 async for changes in awatch(tmp_path, debounce=50, step=10, watch_filter=None, stop_event=stop_event):494> assert changes == {(Change.added, str(tmp_path / 'foo.txt'))}495E AssertionError: assert {(<Change.add...nt0/foo.txt')} == {(<Change.add...nt0/foo.txt')}496E 497E Extra items in the left set:498E (<Change.added: 1>, '/nix/var/nix/builds/nix-72119-2631056588/pytest-of-_nixbld1/pytest-0/test_await_stop_event0')499E Use -v to get more diff500501tests/test_watch.py:58: AssertionError502------------------------------ Captured log call -------------------------------503watchfiles.main INFO: 2 changes detected504=========================== short test summary info ============================505FAILED tests/test_rust_notify.py::test_add - assert 'timeout' == {(1, '/nix/var/nix/builds/nix-72119-2631056588/source/t...506FAILED tests/test_rust_notify.py::test_add_non_recursive - assert 'timeout' == {(1, '/nix/var/nix/builds/nix-72119-2631056588/source/t...507FAILED tests/test_rust_notify.py::test_modify_write - AssertionError: assert {(1, '/nix/va...files/a.txt')} == {(2, '/nix/va...fi...508FAILED tests/test_rust_notify.py::test_modify_write_non_recursive - assert 'timeout' == {(2, '/nix/var/nix/builds/nix-72119-2631056588/source/t...509FAILED tests/test_rust_notify.py::test_modify_chmod - AssertionError: assert {(2, '/nix/va...cursive.txt')} == {(2, '/nix/va...fi...510FAILED tests/test_rust_notify.py::test_delete - assert 'timeout' == {(3, '/nix/var/nix/builds/nix-72119-2631056588/source/t...511FAILED tests/test_rust_notify.py::test_delete_non_recursive - assert 'timeout' == {(3, '/nix/var/nix/builds/nix-72119-2631056588/source/t...512FAILED tests/test_rust_notify.py::test_move_in - assert 'timeout' == {(1, '/nix/var/nix/builds/nix-72119-2631056588/source/t...513FAILED tests/test_rust_notify.py::test_move_out - AssertionError: assert {(3, '/nix/va...dir_a/d.txt')} == {(3, '/nix/va...di...514FAILED tests/test_rust_notify.py::test_move_internal - assert 'timeout' == {(1, '/nix/var/nix/builds/nix-72119-2631056588/source/t...515FAILED tests/test_rust_notify.py::test_rename - assert 'timeout' == {(1, '/nix/var/nix/builds/nix-72119-2631056588/source/t...516FAILED tests/test_rust_notify.py::test_watch_multiple - TypeError: 'in <string>' requires string as left operand, not tuple517FAILED tests/test_watch.py::test_watch - AssertionError: assert {(<Change.add...ch0/foo.txt')} == {(<Change.add...ch...518FAILED tests/test_watch.py::test_wait_stop_event - AssertionError: assert {(<Change.add...nt0/foo.txt')} == {(<Change.add...nt...519FAILED tests/test_watch.py::test_awatch - AssertionError: assert {(<Change.add...ch0/foo.txt')} == {(<Change.add...ch...520FAILED tests/test_watch.py::test_await_stop_event - AssertionError: assert {(<Change.add...nt0/foo.txt')} == {(<Change.add...nt...521========== 16 failed, 128 passed, 10 skipped, 1 deselected in 17.62s ===========