Jakob Borg
6720906ee5
lib/ignore: Refactor: notMatched should be one of the constants
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3031
2016-05-04 07:15:56 +00:00
Jakob Borg and Audrius Butkevicius
b8c5cf1142
lib/model: Refactor: complete renaming of p -> f
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3015
2016-04-26 15:11:19 +00:00
Jakob Borg and Audrius Butkevicius
ccfcdf7f48
cmd/syncthing: Don't compact database at startup
...
This happens automatically in the background anyway, and it can take a
long time on low powered devices at an inconvenient time. We just want
to get up and running as quickly as possible.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3000
2016-04-22 07:34:11 +00:00
Jakob Borg
4eb23a38b1
cmd/stvanity: Use Go 1.3 compatible interface
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2998
2016-04-20 08:16:42 +00:00
Jakob Borg and Audrius Butkevicius
cb38213444
build: Remove Appveyor and old CircleCI stuff
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2997
2016-04-20 07:12:01 +00:00
Jakob Borg
842b6111db
vendor: Update github.com/gobwas/glob to solve 1.3 build issue
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2996
2016-04-20 07:05:08 +00:00
Jakob Borg
893cc025f9
cmd/syncthing: Accept ISO-8859-1 and UTF-8 in HTTP BasicAuth header ( fixes #2779 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2989
2016-04-18 20:24:38 +00:00
Jakob Borg and Audrius Butkevicius
b81c8d2e1b
lib/model: Drop incoming updates for ignored items ( fixes #1701 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2975
2016-04-18 18:35:31 +00:00
Jakob Borg and Audrius Butkevicius
4b07535e86
gui: Downgrade Angular 1.5.3 -> 1.2.9 ( fixes #2961 )
...
I haven't been able to figure out the problem, despite a lot of
experimenting with this...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2988
2016-04-18 12:34:29 +00:00
Jakob Borg and Audrius Butkevicius
0d2fe320a7
cmd/stvanity: New utility to create vanity device IDs
...
A potential practical use is to encode a short version of the hostname
at the beginning of the device ID.
For example:
jb@syno:~/s/g/s/s/c/stvanity $ stvanity abc
Want 15 bits for prefix "ABC", about 3.3e+04 certs to test (statistically speaking)
Found ABCFPWS-JKDIFV3-E5IUAQW-DK53WVR-HY7XWBS-56H33GR-CJQI67Q-VGXRMAW
Saved to cert.pem, key.pem
jb@syno:~/s/g/s/s/c/stvanity $ stvanity $(hostname)
Want 20 bits for prefix "SYNO", about 1e+06 certs to test (statistically speaking)
Trying 554 certs/s, tested 8307 so far in 15s, expect ~32m total time to complete
Trying 543 certs/s, tested 16277 so far in 30s, expect ~32m total time to complete
...
The rest is just a matter of patience.
jb@syno:~/s/g/s/s/c/stvanity $ stvanity syncthing
Want 50 bits for prefix "SYNCTHI-NG", about 1.1e+15 certs to test (statistically speaking)
Trying 529 certs/s, tested 7941 so far in 15s, expect ~67443 years total time to complete
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2986
2016-04-17 20:42:26 +00:00
Jakob Borg and Audrius Butkevicius
f294113d01
cmd/stdisco: New utility to debug local discovery
...
When run without parameters, attempts to listen for local discovery
announcements just like Syncthing, and prints them.
With -send, it also sends fake discovery packets. This can be used on
two or more computers simultaneously to verify that they can see each
other.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2985
2016-04-17 18:47:38 +00:00
Jakob Borg and Audrius Butkevicius
fa1cfd94d0
lib/versioner: Refactor for testing, speed up test
...
Test now takes <1 second instead of 100 seconds
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2978
2016-04-15 14:26:39 +00:00
Jakob Borg
0155b6f841
Update docs & translations
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2976
2016-04-15 11:47:33 +00:00
Jakob Borg
f6953624dd
lib/model: Test should pass go vet inspections
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2977
2016-04-15 11:41:18 +00:00
Jakob Borg and Audrius Butkevicius
a4cd4cc253
build: Clean up "go vet" and "go lint" steps
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2972
2016-04-15 07:26:25 +00:00
Jakob Borg
52c7804f32
lib/connections: Silence vet and lint warnings
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2971
2016-04-13 11:50:51 +00:00
Jakob Borg and Audrius Butkevicius
f3ac421266
lib/protocol: Comment the bit numbers for flags in IndexMessage
2016-04-10 10:47:30 +00:00
Jakob Borg
6355a7019b
gui: Update translations for previous commit
2016-04-09 12:23:13 +00:00
Jakob Borg
668eb7c398
build: Archives should have release name as first file name component
2016-04-08 10:53:29 +00:00
Jakob Borg
0937f85534
gui, man: Update docs & translations
2016-04-08 10:25:40 +00:00
Jakob Borg and Audrius Butkevicius
cf64376dca
build: go vet is now included in the distribution
2016-04-08 10:19:11 +00:00
Jakob Borg and Audrius Butkevicius
4f5d0b46f7
build: Parameterize build targets
2016-04-06 22:18:30 +01:00
Jakob Borg
181939c841
lib/ignore: Correct case insensitive matching on Mac/Windows
...
There was a bug in that we only did the lowercase folding when the
pattern had an explicit (?i), which is not the case on Windows/Mac
necessarily.
2016-04-05 06:35:51 +00:00
Jakob Borg and Audrius Butkevicius
1934b3a5b6
lib/ignore: Remove pattern for foo/** which is already covered by foo/
...
Actual speed difference according to benchmarks is hidden in the noise
Also make the "pattern" field for each entry match what is actually
evaluated.
2016-04-04 13:22:25 +01:00
Jakob Borg and Audrius Butkevicius
cc1d122352
lib/model: Correctly detect deleted but previously ignored files as deleted
2016-04-04 11:53:55 +01:00
Jakob Borg and Audrius Butkevicius
a4f0b85462
lib/config: Disable cacheIgnoredFiles, new default is disabled
2016-04-03 20:18:16 +01:00
Jakob Borg and Audrius Butkevicius
4c3cd4c9e3
lib/ignore: Replace lib/fnmatch with github.com/gobwas/glob
...
Because it's literally ten times faster:
benchmark old ns/op new ns/op delta
BenchmarkMatch-8 13842 1200 -91.33%
BenchmarkMatchCached-8 139 147 +5.76%
benchmark old allocs new allocs delta
BenchmarkMatch-8 0 0 +0.00%
BenchmarkMatchCached-8 0 0 +0.00%
benchmark old bytes new bytes delta
BenchmarkMatch-8 12 0 -100.00%
BenchmarkMatchCached-8 0 0 +0.00%
2016-04-02 20:03:24 +01:00
Jakob Borg
8f580b13df
gui: Update translations and documentation
2016-04-01 07:33:42 +00:00
Jakob Borg
a551686d37
lib/discovery: Receiving a new announcement should be non-blocking
...
Pretty sure the intention of the select was for it to be non-blocking.
Not that it will matter almost ever.
2016-04-01 07:24:04 +00:00
Jakob Borg and Audrius Butkevicius
f5f0e46016
lib: Use bytes.Equal instead of bytes.Compare where possible
2016-03-31 15:12:46 +00:00
Jakob Borg and Audrius Butkevicius
b6f32b6e45
build: Clean up environment handling
...
Don't set variables for cross compilation when building assets, cleaner
check for Go version.
2016-03-31 07:33:09 +00:00
Jakob Borg
8044522691
vendor: Update calmh/xdr to avoid unexpected string behavior ( fixes #2882 )
2016-03-29 19:55:43 +00:00
Jakob Borg
c6a67bd203
gui: Update lang-en with new strings from GUI
2016-03-28 10:55:35 +00:00
Jakob Borg
c6881b6d02
gui: Update Bootstrap (v3.3.6), non-minified
2016-03-28 10:51:12 +00:00
Jakob Borg
4489bec6ef
gui: Upgrade jQuery (v2.2.2), non-minified
2016-03-28 10:50:19 +00:00
Jakob Borg
3d71e68696
gui: Upgrade Angular (v1.5.3 plus various), non-minified
2016-03-28 10:46:51 +00:00
Jakob Borg
783d2da4a8
gui: Upgrade Font Awesome (v4.5.0), non-minified
2016-03-28 10:46:05 +00:00
Jakob Borg
6be4b49999
build: Generate gui.files.go on the fly, remove from repo
2016-03-28 10:03:13 +00:00
Jakob Borg and Audrius Butkevicius
d01ea9d6fb
lib/discovery: Handle nil relayService ( fixes #2890 )
2016-03-27 11:37:43 +00:00
Jakob Borg and Audrius Butkevicius
d91e6023eb
lib/sync: Skip the timing tests if the host timer is flaky
2016-03-27 10:41:38 +00:00
Jakob Borg
17ed01a0c9
lib/connections: Rename makeTcp -> makeTCP according to go vet's wishes
2016-03-27 07:18:33 +00:00
Jakob Borg and Audrius Butkevicius
f706d3c393
cmd/stbench: Add utility to run benchmark tests
2016-03-25 20:52:20 +00:00
Jakob Borg and Audrius Butkevicius
c58eb1d47a
cmd/stgenfiles: Add utility for generating test data
...
I use this to generate ~40 gigs of random test data in 200k files:
~/stgenfiles -dir /data/benchdata -files 200000 -maxexp 22 -src /dev/urandom
2016-03-25 20:50:48 +00:00
Jakob Borg and Audrius Butkevicius
95247f7740
cmd/syncthing: Basic smoke test of all API endpoints
...
... except /rest/system/upgrade that requires a correct response from
Github, which we shouldn't depend on.
2016-03-24 10:17:04 +00:00
Jakob Borg and Audrius Butkevicius
e5731229c7
cmd/syncthing: Add test for starting API service and requesting some URLs
2016-03-24 08:55:33 +00:00
Jakob Borg and Audrius Butkevicius
52c74ad866
cmd/syncthing: Add mock types for API service testing
2016-03-24 08:09:13 +00:00
Jakob Borg
a28f890e83
issue_template: Add note about using forum for support
2016-03-23 20:50:52 +00:00
Jakob Borg
a492cfba13
cmd/syncthing: Extract interfaces for things the API depends on
...
Enables testing of the API service, in the long run.
2016-03-21 19:36:08 +00:00
Jakob Borg
9dec6f1324
cmd/syncthing: Return 500 with an error object instead of empty 200 on marshalling failure in REST response
2016-03-20 11:54:53 +01:00
Jakob Borg and Audrius Butkevicius
aba2cc4db2
lib/model: Properly handle deleting multiple files when doing scans with subs ( fixes #2851 )
2016-03-18 12:16:33 +00:00
Jakob Borg and Audrius Butkevicius
2df001fe5c
lib/model: Correct handling of multiple subs when scanning ( fixes #2851 )
...
Previously the code failed in that it would return top-level plus a sub,
i.e. ["", "foo"], and it would consider "usr/lib" a prefix of
"usr/libexec" which it is not.
2016-03-18 08:28:44 +00:00
Jakob Borg
a455e32adf
meta: Amend wweich in NICKS
2016-03-17 21:23:47 +01:00
Jakob Borg
9d522bd626
gui: Update translation files and assets
2016-03-17 21:05:55 +01:00
Jakob Borg and Audrius Butkevicius
c952468e13
gui: Improve layout of footer on narrow screens ( fixes #2663 )
2016-03-17 16:39:50 +00:00
Jakob Borg
94b3ce44e6
connections: The Max{Send,Recv}Kbps variables are supposed to be in KiB/s
2016-03-17 08:18:23 +01:00
Jakob Borg
c439c543d0
tests: messagediff argument order should be expected, actual
...
So that the diff describes the changes that happened in actual as
compared to expected. The opposite is confusing.
2016-03-17 08:03:29 +01:00
Jakob Borg
f66c1c3c9c
Amend norgeous
2016-03-16 15:37:03 +01:00
Jakob Borg
3e218b146e
Add dinosore
2016-03-16 14:08:24 +01:00
Jakob Borg
17517bcc3d
Don't show restart prompt when changing folder label ( fixes #2840 )
2016-03-16 12:18:21 +01:00
Jakob Borg
d8fba47870
Amend wweich
2016-03-14 08:37:43 +01:00
Jakob Borg
e9c5261a49
Mend GUI tests
2016-03-13 17:24:49 +01:00
Jakob Borg
8d53175c20
Compact and slightly reorder author list
...
More prominent positions are given to authors with more commits, in
steps of magnitude. Authors with 100-999 commits are listed before
authors with 10-99 commits. Yes, this puts me at the head of the list
and is a slight ego trip, but I still think it's the right thing to do.
2016-03-13 15:38:13 +01:00
Jakob Borg
ba5231dc89
apiService should not reference global variable 'locations' (hinders testing)
2016-03-13 11:03:00 +01:00
Jakob Borg and Audrius Butkevicius
032365d57c
Fix STGUIASSETS search paths & order ( fixes #2827 )
2016-03-12 12:17:25 +00:00
Jakob Borg
e9aed494f8
Add wweich (noreply-address)
2016-03-11 16:42:06 +01:00
Jakob Borg
4ef759dba8
Update pull request template with authorship info
...
People want to add themselves to AUTHORS. That's fine, but it's not
enough as it also needs to be added to NICKS and script/authors.go needs
to be run. I'd rather have us do this and do it correctly so lets
document that people should not worry about it.
2016-03-11 09:36:06 +01:00
Jakob Borg
0d16c8eab4
Add norgeous
2016-03-11 09:25:38 +01:00
Jakob Borg
de7d176edf
Update goleveldb dependency
2016-03-11 09:25:38 +01:00
Jakob Borg and Stefan Tatschner
d37ed65f42
Include syncthing-resume systemd service in Debian package
2016-03-11 08:05:46 +00:00
Jakob Borg
710ddf7906
Rebuild assets
2016-03-10 16:56:24 +01:00
Jakob Borg
fd962c5e99
Also update allowed version tests
2016-03-10 13:24:36 +01:00
Jakob Borg
07f944bf48
More lenient expression for allowed version tags
2016-03-10 13:19:00 +01:00
Jakob Borg
012423338e
Not to mention regexps, and testing.
2016-03-10 10:49:11 +01:00
Jakob Borg
64cfebc63c
Branch names are hard
2016-03-10 10:47:15 +01:00
Jakob Borg
28d74f5d9b
Correct the branch finding logic
2016-03-10 10:37:24 +01:00
Jakob Borg
8418fae82b
Add branch name to build version when appropriate
2016-03-10 10:24:11 +01:00
Jakob Borg
8d888bb756
Add lkwg82
2016-03-09 13:33:18 +01:00
Jakob Borg
83c29e1945
Fix tests on Go 1.3
2016-03-08 09:07:18 +01:00
Jakob Borg
09ebc33b30
Fix tests on 32 bit
2016-03-08 09:06:59 +01:00
Jakob Borg
ff9bfae722
Remove one apostrophe in and reformat ISSUE_TEMPLATE
2016-03-08 08:23:00 +01:00
Jakob Borg
b8c72ade4c
Default to modern -ldflags syntax for unknown Go version
2016-03-05 22:25:28 +01:00
Jakob Borg
a117b0c723
Add a pull request template
2016-03-05 21:50:51 +01:00
Jakob Borg
65aaa607ab
Use Go 1.5 vendoring instead of Godeps
...
Change made by:
- running "gvt fetch" on each of the packages mentioned in
Godeps/Godeps.json
- `rm -rf Godeps`
- tweaking the build scripts to not mention Godeps
- tweaking the build scripts to test `./lib/...`, `./cmd/...` explicitly
(to avoid testing vendor)
- tweaking the build scripts to not juggle GOPATH for Godeps and instead
set GO15VENDOREXPERIMENT.
This also results in some updated packages at the same time I bet.
Building with Go 1.3 and 1.4 still *works* but won't use our vendored
dependencies - the user needs to have the actual packages in their
GOPATH then, which they'll get with a normal "go get". Building with Go
1.6+ will get our vendored dependencies by default even when not using
our build script, which is nice.
By doing this we gain some freedom in that we can pick and choose
manually what to include in vendor, as it's not based on just dependency
analysis of our own code. This is also a risk as we might pick up
dependencies we are unaware of, as the build may work locally with those
packages present in GOPATH. On the other hand the build server will
detect this as it has no packages in it's GOPATH beyond what is included
in the repo.
Recommended tool to manage dependencies is github.com/FiloSottile/gvt.
2016-03-05 21:21:24 +01:00
Jakob Borg
ac2343ea57
Only check specified paths in check-authors.go
2016-03-04 16:20:36 +01:00
Jakob Borg
a6a9af4f02
Fix marshalling tests for Go 1.6
2016-03-04 14:16:42 +01:00
Jakob Borg
35dc173c80
Minor tweaks to README.md
2016-03-02 07:50:15 +01:00
Jakob Borg
9d277ac2ac
Add ISSUE_TEMPLATE
...
Template for newly created issues. We want this text to be short and clear and request the required information from the user, and also be clear that it is a template and should be removed/replaced in the actual issue before saving...
2016-02-21 11:57:17 +07:00
Jakob Borg
54c1ffe5f3
Only test with -race on supported platforms ( fixes #2765 )
2016-02-15 11:33:24 +01:00
Jakob Borg
e11302172e
Report versioning usage in usage report
...
I consider it a bug that we didn't already and that this is covered
already under the agreement that we report which features are in use.
2016-02-13 08:19:30 +01:00
Jakob Borg
3c7164846d
Return "No such object in the index" when /rest/db/file gets called on something that doesn't exist
...
Better than the confusing result of getting a blank fileinfo that looks
valid apart from being all crap.
2016-02-12 14:55:16 +01:00
Jakob Borg
4fa4668ed6
Revert "Add .arcconfig to project root"
...
This reverts commit 0ce21aea08 .
2016-02-11 21:17:01 +01:00
Jakob Borg
0ce21aea08
Add .arcconfig to project root
2016-02-09 16:50:57 +01:00
Jakob Borg
e1ac740ac4
Use v2 of XDR package (actual changes)
2016-02-02 15:33:46 +01:00
Jakob Borg
4feeaf1641
Use v2 of XDR package (auto generated)
2016-02-02 12:44:33 +01:00
Jakob Borg
a08bbabd4d
Use v2 of XDR package (deps)
2016-02-02 12:43:33 +01:00
Jakob Borg
a7a9d7d85c
Return correct content type for /rest/events
2016-02-02 12:40:42 +01:00
Jakob Borg
e93c766c42
Rename RawAPIKey -> APIKey in GUIConfiguration
2016-02-02 11:12:25 +01:00
Jakob Borg
39c16d1cc4
Add -paths option to print config, key, database paths
2016-02-02 10:41:49 +01:00
Jakob Borg
eb55d19786
Clean up error handling a bit in protocol.readMessage
2016-02-02 10:18:19 +01:00
Jakob Borg
ae36fada6b
Remove old reference to moved protocol
2016-02-02 10:18:18 +01:00