Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(33)

Issue 58500043: code review 58500043: go.exp/fsnotify: bring up-to-date with GitHub (move dev... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by nathany
Modified:
10 years, 2 months ago
Reviewers:
iant
CC:
golang-codereviews, dave_cheney.net, brainman, gobot, bradfitz, iant, bronze1man, cespare, denis.brandolini_gmail.com, henrikedwards, jbowtie, travis.cline, abustany
Visibility:
Public.

Description

go.exp/fsnotify: bring up-to-date with GitHub (move development here) Handle ERROR_MORE_DATA on Windows (https://github.com/howeyc/fsnotify/issues/49) Run tests in random temp directories (https://github.com/howeyc/fsnotify/issues/57) Fix: RemoveWatch is not removing the path from the watch list The issue was that files watched internally were not being removed when the parent directory's watch was removed. (https://github.com/howeyc/fsnotify/issues/71) Fix: Race on OS X between Close() and readEvents() (https://github.com/howeyc/fsnotify/issues/70) Fix: deadlock on BSD The removeWatch routine could return without releasing the lock on w.bufmut. This change unlocks the mutex before checking for errors. (https://github.com/howeyc/fsnotify/pull/77) Add an IsAttrib method on the FileEvent struct (https://github.com/howeyc/fsnotify/pull/79) Fix: a few typos Test helpers for shared setup.

Patch Set 1 #

Patch Set 2 : diff -r 70d2efbdf5cf https://code.google.com/p/go.exp #

Patch Set 3 : diff -r 70d2efbdf5cf https://code.google.com/p/go.exp #

Total comments: 16

Patch Set 4 : diff -r 70d2efbdf5cf https://code.google.com/p/go.exp #

Patch Set 5 : diff -r 70d2efbdf5cf https://code.google.com/p/go.exp #

Total comments: 9

Patch Set 6 : diff -r 70d2efbdf5cf https://code.google.com/p/go.exp #

Patch Set 7 : diff -r 70d2efbdf5cf https://code.google.com/p/go.exp #

Patch Set 8 : diff -r 70d2efbdf5cf https://code.google.com/p/go.exp #

Total comments: 8

Patch Set 9 : diff -r 70d2efbdf5cf https://code.google.com/p/go.exp #

Patch Set 10 : diff -r 70d2efbdf5cf https://code.google.com/p/go.exp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -269 lines) Patch
M fsnotify/fsnotify.go View 1 2 chunks +5 lines, -1 line 0 comments Download
M fsnotify/fsnotify_bsd.go View 1 2 3 4 5 6 7 8 10 chunks +77 lines, -41 lines 0 comments Download
M fsnotify/fsnotify_linux.go View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -9 lines 0 comments Download
M fsnotify/fsnotify_symlink_test.go View 1 2 3 4 5 3 chunks +6 lines, -18 lines 0 comments Download
M fsnotify/fsnotify_test.go View 1 2 3 4 5 33 chunks +201 lines, -195 lines 0 comments Download
M fsnotify/fsnotify_windows.go View 1 2 3 4 5 6 7 8 5 chunks +30 lines, -5 lines 0 comments Download

Messages

Total messages: 32
nathany
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go.exp
10 years, 2 months ago (2014-01-30 03:05:00 UTC) #1
dave_cheney.net
Have all the contributors to the external repo signed the Go CLA? > On 30 ...
10 years, 2 months ago (2014-01-30 03:10:58 UTC) #2
brainman
https://codereview.appspot.com/58500043/diff/40001/fsnotify/fsnotify_windows.go File fsnotify/fsnotify_windows.go (right): https://codereview.appspot.com/58500043/diff/40001/fsnotify/fsnotify_windows.go#newcode45 fsnotify/fsnotify_windows.go:45: sys_ERROR_MORE_DATA syscall.Errno = 234 move it into http://golang.org/src/pkg/syscall/ztypes_windows.go
10 years, 2 months ago (2014-01-30 03:44:02 UTC) #3
nathany
On 2014/01/30 03:10:58, dfc wrote: > Have all the contributors to the external repo signed ...
10 years, 2 months ago (2014-01-30 03:44:13 UTC) #4
nathany
https://codereview.appspot.com/58500043/diff/40001/fsnotify/fsnotify_windows.go File fsnotify/fsnotify_windows.go (right): https://codereview.appspot.com/58500043/diff/40001/fsnotify/fsnotify_windows.go#newcode45 fsnotify/fsnotify_windows.go:45: sys_ERROR_MORE_DATA syscall.Errno = 234 On 2014/01/30 03:44:02, brainman wrote: ...
10 years, 2 months ago (2014-01-30 03:48:11 UTC) #5
brainman
On 2014/01/30 03:48:11, nathany wrote: > > go.exp/fsnotify needs to continue working on past versions ...
10 years, 2 months ago (2014-01-30 03:49:21 UTC) #6
cespare
On 2014/01/30 03:44:13, nathany wrote: > On 2014/01/30 03:10:58, dfc wrote: > > Have all ...
10 years, 2 months ago (2014-01-30 03:52:02 UTC) #7
jbowtie
On 2014/01/30 03:52:02, cespare wrote: > On 2014/01/30 03:44:13, nathany wrote: > > On 2014/01/30 ...
10 years, 2 months ago (2014-01-30 06:43:16 UTC) #8
abustany
On 2014/01/30 06:43:16, jbowtie wrote: > On 2014/01/30 03:52:02, cespare wrote: > > On 2014/01/30 ...
10 years, 2 months ago (2014-01-30 07:55:21 UTC) #9
henrikedwards
On 2014/01/30 07:55:21, abustany wrote: > On 2014/01/30 06:43:16, jbowtie wrote: > > On 2014/01/30 ...
10 years, 2 months ago (2014-01-30 08:20:15 UTC) #10
nathany
On 2014/01/30 08:20:15, henrikedwards wrote: > On 2014/01/30 07:55:21, abustany wrote: > > On 2014/01/30 ...
10 years, 2 months ago (2014-01-30 14:06:25 UTC) #11
Paul Hammond
> There was a contribution to the README and someone ran gofmt, but I've only ...
10 years, 2 months ago (2014-01-30 18:23:53 UTC) #12
travis.cline
I have electronically signed the CLA (@tmc / travis.cline@gmail.com)
10 years, 2 months ago (2014-01-30 22:26:42 UTC) #13
gobot
R=golang-dev (assigned by dave@cheney.net)
10 years, 2 months ago (2014-01-30 22:36:20 UTC) #14
nathany
There is an issue open on GitHub to ping everyone who contributed to fsnotify to ...
10 years, 2 months ago (2014-01-31 02:45:10 UTC) #15
dave_cheney.net
https://codereview.appspot.com/58500043/diff/40001/fsnotify/fsnotify_linux.go File fsnotify/fsnotify_linux.go (right): https://codereview.appspot.com/58500043/diff/40001/fsnotify/fsnotify_linux.go#newcode59 fsnotify/fsnotify_linux.go:59: selectWaitTime = 100e6 please use 100 * time.Millisecond https://codereview.appspot.com/58500043/diff/40001/fsnotify/fsnotify_symlink_test.go ...
10 years, 2 months ago (2014-01-31 03:50:20 UTC) #16
dave_cheney.net
https://codereview.appspot.com/58500043/diff/40001/fsnotify/fsnotify_bsd.go File fsnotify/fsnotify_bsd.go (right): https://codereview.appspot.com/58500043/diff/40001/fsnotify/fsnotify_bsd.go#newcode62 fsnotify/fsnotify_bsd.go:62: type Watcher struct { There are a horrifying number ...
10 years, 2 months ago (2014-01-31 03:51:29 UTC) #17
dave_cheney.net
For the avoidance of doubt, I have a concern that the code contributed here has ...
10 years, 2 months ago (2014-01-31 04:53:07 UTC) #18
nathany
Hello golang-codereviews@googlegroups.com, dave@cheney.net, alex.brainman@gmail.com, cespare@gmail.com, jbowtie@gmail.com, webustany@gmail.com, henrik.edwards@gmail.com, phmmnd@gmail.com, travis.cline@gmail.com, gobot@golang.org (cc: golang-codereviews@googlegroups.com), Please take ...
10 years, 2 months ago (2014-01-31 05:08:37 UTC) #19
nathany
Thanks for the code review. Tests continue to pass on OS X 10.9, Windows 7, ...
10 years, 2 months ago (2014-01-31 05:10:28 UTC) #20
dave_cheney.net
A few more comments. I think the duplication in the test setup needs to be ...
10 years, 2 months ago (2014-01-31 05:18:14 UTC) #21
dave_cheney.net
https://codereview.appspot.com/58500043/diff/40001/fsnotify/fsnotify_windows.go File fsnotify/fsnotify_windows.go (right): https://codereview.appspot.com/58500043/diff/40001/fsnotify/fsnotify_windows.go#newcode45 fsnotify/fsnotify_windows.go:45: sys_ERROR_MORE_DATA syscall.Errno = 234 On 2014/01/31 05:10:29, nathany wrote: ...
10 years, 2 months ago (2014-01-31 05:25:17 UTC) #22
nathany
Thanks for the clarification. Though I must say, this seems like a bit much for ...
10 years, 2 months ago (2014-01-31 07:40:01 UTC) #23
dave_cheney.net
Sounds reasonable to me. > On 31 Jan 2014, at 18:40, nj@nathany.com wrote: > > ...
10 years, 2 months ago (2014-01-31 07:42:58 UTC) #24
nathany
Hello golang-codereviews@googlegroups.com, dave@cheney.net, alex.brainman@gmail.com, gobot@golang.org (cc: bradfitz@golang.org, cespare@gmail.com, golang-codereviews@googlegroups.com, henrik.edwards@gmail.com, jbowtie@gmail.com, travis.cline@gmail.com, webustany@gmail.com), Please take ...
10 years, 2 months ago (2014-02-01 03:24:54 UTC) #25
nathany
On 2014/01/31 05:18:14, dfc wrote: > A few more comments. I think the duplication in ...
10 years, 2 months ago (2014-02-01 03:53:13 UTC) #26
nathany
On 2014/02/01 03:53:13, nathany wrote: > Brad Fitzpatrick offered to verify that the CLAs have ...
10 years, 2 months ago (2014-02-05 17:13:17 UTC) #27
iant
https://codereview.appspot.com/58500043/diff/140001/fsnotify/fsnotify_bsd.go File fsnotify/fsnotify_bsd.go (right): https://codereview.appspot.com/58500043/diff/140001/fsnotify/fsnotify_bsd.go#newcode56 fsnotify/fsnotify_bsd.go:56: // IsAttrib reports whether the FileEvent was triggered by ...
10 years, 2 months ago (2014-02-05 21:21:10 UTC) #28
nathany
Hello golang-codereviews@googlegroups.com, dave@cheney.net, alex.brainman@gmail.com, gobot@golang.org, bradfitz@golang.org, iant@golang.org (cc: bradfitz@golang.org, bronze1man@gmail.com, cespare@gmail.com, denis.brandolini@gmail.com, golang-codereviews@googlegroups.com, henrik.edwards@gmail.com, jbowtie@gmail.com, ...
10 years, 2 months ago (2014-02-06 02:59:23 UTC) #29
iant
LGTM This is OK for go.exp. Thanks for working on it. Do you need someone ...
10 years, 2 months ago (2014-02-06 05:30:53 UTC) #30
nathany
On 2014/02/06 05:30:53, iant wrote: > LGTM > > This is OK for go.exp. Understood. ...
10 years, 2 months ago (2014-02-06 14:40:26 UTC) #31
iant
10 years, 2 months ago (2014-02-06 22:11:07 UTC) #32
*** Submitted as
https://code.google.com/p/go/source/detail?r=b6cb26fb5e26&repo=exp ***

go.exp/fsnotify: bring up-to-date with GitHub (move development here)

Handle ERROR_MORE_DATA on Windows
(https://github.com/howeyc/fsnotify/issues/49)

Run tests in random temp directories
(https://github.com/howeyc/fsnotify/issues/57)

Fix: RemoveWatch is not removing the path from the watch list
The issue was that files watched internally were not being removed
when the parent directory's watch was removed.
(https://github.com/howeyc/fsnotify/issues/71)

Fix: Race on OS X between Close() and readEvents()
(https://github.com/howeyc/fsnotify/issues/70)

Fix: deadlock on BSD
The removeWatch routine could return without releasing the lock on
w.bufmut. This change unlocks the mutex before checking for errors.
(https://github.com/howeyc/fsnotify/pull/77)

Add an IsAttrib method on the FileEvent struct
(https://github.com/howeyc/fsnotify/pull/79)

Fix: a few typos

Test helpers for shared setup.

LGTM=iant
R=golang-codereviews, dave, alex.brainman, gobot, bradfitz, iant
CC=bradfitz, bronze1man, cespare, denis.brandolini, golang-codereviews,
henrik.edwards, jbowtie, travis.cline, webustany
https://codereview.appspot.com/58500043

Committer: Ian Lance Taylor <iant@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b