These are chat archives for anacrolix/torrent

6th
Feb 2018
Matt Joiner
@anacrolix
Feb 06 2018 01:05
@greyireland yes and what go version
Matt Joiner
@anacrolix
Feb 06 2018 01:13
I wonder if someone can run the go-libutp tests on Windows
I think there could be an issue there
deranjer
@deranjer
Feb 06 2018 01:13
I can handle that, I have a windows machine
Matt Joiner
@anacrolix
Feb 06 2018 01:13
thank you!
if you could run something like go test -race github.com/anacrolix/... with go version 1.9 or later
and maybe update all those packages first too, go get -u github.com/anacrolix/...
i have a CI for windows for go-libutp but i forget who maintains it and it stopped working
deranjer
@deranjer
Feb 06 2018 01:15
go1.9.3 windows/amd64, updating your repos now
Matt Joiner
@anacrolix
Feb 06 2018 01:16
cheers
deranjer
@deranjer
Feb 06 2018 01:29
go test -race github.com/anacrolix/...
ok      github.com/anacrolix/dht        1.206s
?       github.com/anacrolix/dht/cmd/dht-get-peers      [no test files]
?       github.com/anacrolix/dht/cmd/dht-ping   [no test files]
?       github.com/anacrolix/dht/cmd/dht-secure-id      [no test files]
?       github.com/anacrolix/dht/cmd/dht-server [no test files]
ok      github.com/anacrolix/dht/krpc   1.351s
?       github.com/anacrolix/envpprof   [no test files]
# bazil.org/fuse
..\..\..\bazil.org\fuse\error_std.go:27:20: undefined: errNoXattr
..\..\..\bazil.org\fuse\fuse.go:1345:26: undefined: attr
..\..\..\bazil.org\fuse\fuse_kernel.go:166:28: undefined: syscall.O_DIRECTORY
..\..\..\bazil.org\fuse\fuse_kernel.go:175:38: undefined: syscall.O_ACCMODE
..\..\..\bazil.org\fuse\fuse_kernel.go:404:17: undefined: attr
# github.com/anacrolix/go-libutp
utp_api.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 // vim:set ts=4 sw=4 ai:
 ^
cc1plus.exe: warning: unrecognized command line option '-Wno-unused-const-variable'
# github.com/anacrolix/go-libutp
utp_api.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 // vim:set ts=4 sw=4 ai:
 ^
cc1plus.exe: warning: unrecognized command line option '-Wno-unused-const-variable'
# github.com/anacrolix/go-libutp
utp_callbacks.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 // vim:set ts=4 sw=4 ai:
 ^
cc1plus.exe: warning: unrecognized command line option '-Wno-unused-const-variable'
# github.com/anacrolix/go-libutp
utp_callbacks.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 // vim:set ts=4 sw=4 ai:
 ^
cc1plus.exe: warning: unrecognized command line option '-Wno-unused-const-variable'
# github.com/anacrolix/go-libutp
utp_hash.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
cc1plus.exe: warning: unrecognized command line option '-Wno-unused-const-variable'
# github.com/anacrolix/go-libutp
utp_hash.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
cc1plus.exe: warning: unrecognized command line option '-Wno-unused-const-variable'
# github.com/anacrolix/go-libutp
utp_internal.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
cc1plus.exe: warning: unrecognized command line option '-Wno-unused-const-variable'
# github.com/anacrolix/go-libutp
utp_internal.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
cc1plus.exe: warning: unrecognized command line option '-Wno-unused-const-variable'
# github.com/anacrolix/go-libutp
utp_packedsockaddr.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 // vim:set ts=4 sw=4 ai:
 ^
cc1plus.exe: warning: unrecognized command line option '-Wno-unused-const-variable'
# github.com/anacrolix/go-libutp
utp_packedsockaddr.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 // vim:set ts=4 sw=4 ai:
 ^
cc1plus.exe: warning: unrecognized command line option '-Wno-unused-const-variable'
# github.com/anacrolix/go-libutp
utp_utils.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
cc1plus.exe: warning: unrecognized command line option '-Wno-unused-const-variable'
# github.com/anacrolix/go-libutp
utp_utils.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
cc1plus.exe: warning: unrecognized command line option '-Wno-unused-const-variable'
ok      github.com/anacrolix/go-libutp  23.342s
?       github.com/anacrolix/go-libutp/ucat     [no test files]
?       github.com/anacrolix/log        [no test files]
ok      github.com/anacrolix/missinggo  1.181s
ok      github.com/anacrolix/missinggo/assert   1.249s
ok      github.com/anacrolix/missinggo/bitmap   1.176s
?       github.com/anacrolix/missinggo/chans    [no test files]
ok      github.com/anacrolix/missinggo/cmd/filecache    1.230s
?       github.com/anacrolix/missinggo/cmd/gd   [no test files]
?       github.com/anacrolix/missinggo/cmd/go-env
not complete yet, but this is what I have so far..
Matt Joiner
@anacrolix
Feb 06 2018 01:29
thx
deranjer
@deranjer
Feb 06 2018 02:46
@anacrolix Okay here is the rest:
?       github.com/anacrolix/missinggo/cmd/http-file-server     [no test files]
?       github.com/anacrolix/missinggo/cmd/nop  [no test files]
?       github.com/anacrolix/missinggo/cmd/query-escape [no test files]
?       github.com/anacrolix/missinggo/cmd/query-unescape       [no test files]
?       github.com/anacrolix/missinggo/container/xheap  [no test files]
?       github.com/anacrolix/missinggo/ctrlflow [no test files]
?       github.com/anacrolix/missinggo/docopt   [no test files]
--- FAIL: TestCache (0.01s)
        <autogenerated>:1:
                        Error Trace:    cache_test.go:71
                        Error:          Should be false
                        Test:           TestCache
        <autogenerated>:1:
                        Error Trace:    cache_test.go:72
                        Error:          Should be false
                        Test:           TestCache
        <autogenerated>:1:
                        Error Trace:    cache_test.go:88
                        Error:          Not equal:
                                        expected: filecache.CacheInfo{Capacity:-1, Filled:5, NumItems:2}
                                        actual  : filecache.CacheInfo{Capacity:-1, Filled:5, NumItems:3}

                                        Diff:
                                        --- Expected
                                        +++ Actual
                                        @@ -3,3 +3,3 @@
                                          Filled: (int64) 5,
                                        - NumItems: (int) 2
                                        + NumItems: (int) 3
                                         }
                        Test:           TestCache
        <autogenerated>:1:
                        Error Trace:    cache_test.go:99
                        Error:          Not equal:
                                        expected: filecache.CacheInfo{Capacity:-1, Filled:5, NumItems:2}
                                        actual  : filecache.CacheInfo{Capacity:-1, Filled:5, NumItems:3}

                                        Diff:
                                        --- Expected
                                        +++ Actual
                                        @@ -3,3 +3,3 @@
                                          Filled: (int64) 5,
                                        - NumItems: (int) 2
                                        + NumItems: (int) 3
                                         }
                        Test:           TestCache
FAIL
FAIL    github.com/anacrolix/missinggo/filecache        0.320s
ok      github.com/anacrolix/missinggo/futures  1.275s
?       github.com/anacrolix/missinggo/httpfile [no test files]
?       github.com/anacrolix/missinggo/httpmux  [no test files]
ok      github.com/anacrolix/missinggo/httptoo  1.226s
?       github.com/anacrolix/missinggo/inproc   [no test files]
ok      github.com/anacrolix/missinggo/iter     1.238s
?       github.com/anacrolix/missinggo/leaktest [no test files]
?       github.com/anacrolix/missinggo/mime     [no test files]
ok      github.com/anacrolix/missinggo/oauth    1.299s
ok      github.com/anacrolix/missinggo/orderedmap       1.135s
?       github.com/anacrolix/missinggo/panicif  [no test files]
ok      github.com/anacrolix/missinggo/patreon  1.187s
ok      github.com/anacrolix/missinggo/perf     1.167s
?       github.com/anacrolix/missinggo/pproffd  [no test files]
ok      github.com/anacrolix/missinggo/prioritybitmap   1.169s
ok      github.com/anacrolix/missinggo/pubsub   1.286s
ok      github.com/anacrolix/missinggo/refclose 1.339s
?       github.com/anacrolix/missinggo/reqctx   [no test files]
?       github.com/anacrolix/missinggo/resource [no test files]
?       github.com/anacrolix/missinggo/runid    [no test files]
ok      github.com/anacrolix/missinggo/slices   1.491s
?       github.com/anacrolix/missinggo/x        [no test files]
ok      github.com/anacrolix/mmsg       1.321s
Matt Joiner
@anacrolix
Feb 06 2018 02:47
thanks
deranjer
@deranjer
Feb 06 2018 02:47
ok      github.com/anacrolix/mmsg       1.321s
?       github.com/anacrolix/mmsg/internal/nettest      [no test files]
ok      github.com/anacrolix/mmsg/socket        1.167s
ok      github.com/anacrolix/sync       1.159s
ok      github.com/anacrolix/tagflag    1.209s
*** Test killed: ran too long (10m0s).
FAIL    github.com/anacrolix/torrent    600.190s
ok      github.com/anacrolix/torrent/bencode    1.241s
?       github.com/anacrolix/torrent/cmd/magnet-metainfo        [no test files]
?       github.com/anacrolix/torrent/cmd/torrent        [no test files]
?       github.com/anacrolix/torrent/cmd/torrent-create [no test files]
?       github.com/anacrolix/torrent/cmd/torrent-infohash       [no test files]
?       github.com/anacrolix/torrent/cmd/torrent-magnet [no test files]
?       github.com/anacrolix/torrent/cmd/torrent-metainfo-pprint        [no test files]
?       github.com/anacrolix/torrent/cmd/torrent-pick   [no test files]
?       github.com/anacrolix/torrent/cmd/torrent-verify [no test files]
Matt Joiner
@anacrolix
Feb 06 2018 02:47
that last bit's no good
deranjer
@deranjer
Feb 06 2018 02:48
?
Matt Joiner
@anacrolix
Feb 06 2018 02:48
go test -v github.com/anacrolix/torrent. if it fails i'll try to boot up an old windows box here
deranjer
@deranjer
Feb 06 2018 02:49
Alright it is running, waiting on "TestClientTransferSmallCache"
Matt Joiner
@anacrolix
Feb 06 2018 02:50
yeah ok, that matches the failure you got in testing the filecache package. windows file management sux
thanks for the help
deranjer
@deranjer
Feb 06 2018 02:50
no problem, want me to post the full results or do you have what you need?
Matt Joiner
@anacrolix
Feb 06 2018 02:50
nah that's all i need
deranjer
@deranjer
Feb 06 2018 02:50
Alrighty!
Denis
@elgatito
Feb 06 2018 05:53
so everything is fine on windows?
would also be interesting to test on android
Matt Joiner
@anacrolix
Feb 06 2018 08:11
yeah much better than i expected
just don't use the filecache on there :P
Matt Joiner
@anacrolix
Feb 06 2018 12:48
why suggest to @burekas7 to disable utp?
Matt Joiner
@anacrolix
Feb 06 2018 12:53
also i think it would be great to get the expvars from his circumstance
Denis
@elgatito
Feb 06 2018 13:13
@anacrolix to see if there is any difference at all. /debug/vars should be working there
i don't know what can be the reason not to use full bandwidth when CPU is fine and even files are not used