Open bbigras opened 10 years ago
@brunoqc have tested the later version of tail? are you still encountering this issue?
I didn't test since last time. I still have one failed test but it's not the same error.
go version go1.6.2 windows/amd64 Windows 10 64 bits
D:\gopath\src\github.com\hpcloud\tail [master...origin/master]> go test
2016/04/26 16:30:53 Waiting for /no/such/file to appear...
2016/04/26 16:30:53 Waiting for .test/waits-for-file-to-exist/test.txt to appear...
2016/04/26 16:30:53 Waiting for test.txt to appear...
2016/04/26 16:30:53 Waiting for _no_such_file to appear...
2016/04/26 16:30:55 Seeked .test/location-end/test.txt - &{Offset:0 Whence:2}
2016/04/26 16:30:55 Seeked .test/location-middle/test.txt - &{Offset:-6 Whence:2}
--- FAIL: TestReOpenInotify (0.20s)
tail_test.go:422: open .test/reopen-inotify/test.txt: Accès refusé.
2016/04/26 16:30:56 Re-opening moved/deleted file .test/reopen-polling/test.txt ...
2016/04/26 16:30:56 Waiting for .test/reopen-polling/test.txt to appear...
2016/04/26 16:30:56 Successfully reopened .test/reopen-polling/test.txt
2016/04/26 16:30:57 Re-opening moved/deleted file .test/reopen-polling/test.txt ...
2016/04/26 16:30:57 Waiting for .test/reopen-polling/test.txt to appear...
2016/04/26 16:30:57 Successfully reopened .test/reopen-polling/test.txt
2016/04/26 16:30:57 Re-opening moved/deleted file .test/reopen-polling/test.txt ...
2016/04/26 16:30:57 Waiting for .test/reopen-polling/test.txt to appear...
2016/04/26 16:30:58 Re-opening truncated file .test/reseek-inotify/test.txt ...
2016/04/26 16:30:58 Successfully reopened truncated .test/reseek-inotify/test.txt
2016/04/26 16:30:58 Re-opening truncated file .test/reseek-polling/test.txt ...
2016/04/26 16:30:58 Successfully reopened truncated .test/reseek-polling/test.txt
2016/04/26 16:30:58 Stopping tail as file no longer exists: .test/reseek-polling/test.txt
2016/04/26 16:30:58 Leaky bucket full (.test/rate-limiting/test.txt); entering 1s cooloff period.
2016/04/26 16:30:59 Leaky bucket full (.test/rate-limiting/test.txt); entering 1s cooloff period.
2016/04/26 16:31:00 Seeked .test/tell-position/test.txt - &{Offset:0 Whence:0}
2016/04/26 16:31:00 Seeked .test/tell-position/test.txt - &{Offset:12 Whence:0}
2016/04/26 16:31:00 Waiting for .test/block-until-file-exists/test.txt to appear...
FAIL
exit status 1
FAIL github.com/hpcloud/tail 7.001s
@brunoqc unfortunately you pulled while the build was failing on master. I have fixed that issue now(pull again). Let me know if you are still seeing the failure.
It seems I have the same result with fff2f2d9e03958ee916ed469d7983be66aa4eb07.
D:\gopath\src\github.com\hpcloud\tail [master...origin/master]> go test
2016/04/27 10:33:57 Waiting for /no/such/file to appear...
2016/04/27 10:33:57 Waiting for .test/waits-for-file-to-exist/test.txt to appear...
2016/04/27 10:33:57 Waiting for test.txt to appear...
2016/04/27 10:33:57 Waiting for _no_such_file to appear...
2016/04/27 10:33:58 Seeked .test/location-end/test.txt - &{Offset:0 Whence:2}
2016/04/27 10:33:58 Seeked .test/location-middle/test.txt - &{Offset:-6 Whence:2}
--- FAIL: TestReOpenInotify (0.22s)
tail_test.go:425: open .test/reopen-inotify/test.txt: Accès refusé.
2016/04/27 10:33:59 Re-opening moved/deleted file .test/reopen-polling/test.txt ...
2016/04/27 10:33:59 Waiting for .test/reopen-polling/test.txt to appear...
2016/04/27 10:33:59 Successfully reopened .test/reopen-polling/test.txt
2016/04/27 10:33:59 Re-opening moved/deleted file .test/reopen-polling/test.txt ...
2016/04/27 10:33:59 Waiting for .test/reopen-polling/test.txt to appear...
2016/04/27 10:34:00 Successfully reopened .test/reopen-polling/test.txt
2016/04/27 10:34:00 Re-opening moved/deleted file .test/reopen-polling/test.txt ...
2016/04/27 10:34:00 Waiting for .test/reopen-polling/test.txt to appear...
2016/04/27 10:34:01 Re-opening truncated file .test/reseek-inotify/test.txt ...
2016/04/27 10:34:01 Successfully reopened truncated .test/reseek-inotify/test.txt
2016/04/27 10:34:01 Re-opening truncated file .test/reseek-polling/test.txt ...
2016/04/27 10:34:01 Successfully reopened truncated .test/reseek-polling/test.txt
2016/04/27 10:34:01 Stopping tail as file no longer exists: .test/reseek-polling/test.txt
2016/04/27 10:34:01 Leaky bucket full (.test/rate-limiting/test.txt); entering 1s cooloff period.
2016/04/27 10:34:02 Leaky bucket full (.test/rate-limiting/test.txt); entering 1s cooloff period.
2016/04/27 10:34:02 Seeked .test/tell-position/test.txt - &{Offset:0 Whence:0}
2016/04/27 10:34:02 Seeked .test/tell-position/test.txt - &{Offset:12 Whence:0}
2016/04/27 10:34:02 Waiting for .test/block-until-file-exists/test.txt to appear...
FAIL
exit status 1
FAIL github.com/hpcloud/tail 5.685s
Looking at this one. Having slightly different errors than above, on Win7 x64:
=== RUN TestWaitsForFileToExist
2016/09/27 16:41:27 Waiting for .test/waits-for-file-to-exist/test.txt to appear...
--- FAIL: TestWaitsForFileToExist (0.11s)
tail_test.go:497: tail ended with error: tomb: still alive
=== RUN TestWaitsForFileToExistRelativePath
2016/09/27 16:41:27 Waiting for test.txt to appear...
--- FAIL: TestWaitsForFileToExistRelativePath (0.11s)
tail_test.go:497: tail ended with error: tomb: still alive
=== RUN TestReOpenInotify
--- FAIL: TestReOpenInotify (0.22s)
tail_test.go:425: open .test/reopen-inotify/test.txt: Access is denied.
One general way of improving the windows coverage for non-windows developers is to set up appveyor CI (a windows CI service, free for open source projects)
Tried bumping fsnotify dependency because it contained recent Windows-fixes. No change in test results.
go version go1.3 windows/amd64 Windows 7 64 bits
Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus.
meanThe process can't access the file because it's used by another process
.