Commit Graph

4205 Commits

Author SHA1 Message Date
mpl c4c4d6407a client: default to None auth if no auth in config
Defer warning until discovery fails.
Also fix SetupAuth error checks in camtool.

Change-Id: Ib554595603994e929d465e4e0de6acaf319d5b42
2014-02-27 01:37:59 +01:00
Nick O'Neill c1b51d839e Fixed an issue where checking for files was slow
Don't sha1 every file before we know if we need it.

Change-Id: I8adcc869113b8ad84269450121ad1ba73267fb54
2014-02-26 12:46:52 -08:00
Brad Fitzpatrick a3d915e5a9 leak: fix racy test
Based largely on Mathieu Lonjaret's Gerrit CL 2267.

Change-Id: I14634b6fc892e84cbdc718a9bb5a1aafca1ec4e9
2014-02-25 16:06:56 -08:00
Brad Fitzpatrick bf35e5f011 camput: fix camput blob from stdin
Change-Id: Ic9997c408e1241e16dd4470b3f733ef3fb4f79c9
2014-02-25 14:34:26 -08:00
mpl b4c684dd07 tests: ping camlistored before camput
Change-Id: Icf66bd5b990db07e9516b8ab8945cbf681caf25e
2014-02-24 19:57:44 +01:00
mpl 3f0974ef13 tests: make sure camlistored is running before cammount
Context: http://camlistore.org/issue/385

Change-Id: I793298745096fc1696f01226698eb6682b24806d
2014-02-24 18:29:08 +01:00
Brad Fitzpatrick a61c921750 Merge "ui: Add QR code for configuring mobile clients." 2014-02-24 01:43:28 +00:00
Brad Fitzpatrick cd7e723088 osutil: fail if tests access host paths
Change-Id: I21e20698ebc6b1d3b3499299f6d3dd9ed3031baf
2014-02-23 10:59:56 -08:00
Brad Fitzpatrick 897591a444 camput: hermetic client config for test
Change-Id: I3c77b500da2d445851b0d8383a11e7f0942b2ff2
2014-02-23 10:59:41 -08:00
Brad Fitzpatrick 520191ecc5 client: don't access UserClientConfigPath or osutil.Homedir unless necessary
Change-Id: I618941204eb561461aab960bde576963296cea87
2014-02-23 10:59:20 -08:00
Brad Fitzpatrick 6d30b8d274 camlistored: make test use CAMLI_VAR_DIR instead of tweaking HOME/HOMEPATH/APPDATA
For upcoming change to enable strictness in osutil's use of host paths
during tests.

Change-Id: Ied1602d6dc4f5c92e97f760e04b97cc965610b20
2014-02-23 10:19:01 -08:00
Brad Fitzpatrick 09266d5960 osutil: add CAMLI_VAR_DIR for CamliVarDir
Change-Id: Idcb0a32ccc49cf24e61bdb81a4fdb1a0f049595c
2014-02-23 10:18:15 -08:00
Brad Fitzpatrick f318ad4410 googlestorage: don't use host configuration during tests
Change-Id: Id1415f170dbff650d876fc4c01cff04fb8d41415
2014-02-23 10:04:48 -08:00
Brad Fitzpatrick 99a4ee0fd3 osutil: don't use host config during tests
Change-Id: I28171f0dc9c3c21c9693805781275c39ed517d25
2014-02-23 10:00:45 -08:00
Brad Fitzpatrick 8bbe100bbc osutil: fail if used during tests
Disabled by default for now. Will fix cases and set by default, to proactively
catch future testing mistakes.

Change-Id: If292ccd105e214ee888bcad98efb4e49f052e4fd
2014-02-23 09:45:23 -08:00
Brad Fitzpatrick b099f5b101 leak: disable test by default for now
Change-Id: Idf590dc4b69b69e860c0d321428b18a30bf77254
2014-02-23 09:44:27 -08:00
Brad Fitzpatrick 2237aee0f3 leak: fix test print
Change-Id: I936cf556bf2e26d4862d6427f790aa4f5fca32f1
2014-02-23 09:40:44 -08:00
Brad Fitzpatrick 830864b715 client: don't call osutil.HomeDir during test.
Prep for future changing which makes this crash.

Change-Id: Ic02f7319deffb1d47e89f45d066fa4e62d45e499
2014-02-23 09:34:16 -08:00
Brad Fitzpatrick 18daf0b601 buildinfo: add func TestingLinked
Change-Id: I664f72ec04748079929d0ad96e24b33bc14c6c77
2014-02-23 09:21:11 -08:00
Brad Fitzpatrick 70b886dd5a react: Add a better package comment
Change-Id: I427bcc0e8554323def325bf2d15707963299e45e
2014-02-23 09:08:33 -08:00
mpl 831a81f2d9 Merge "buildbot: send sigterm instead of sigkill to child" 2014-02-22 18:06:44 +00:00
Bill Thiede 58b6497b14 ui: Add QR code for configuring mobile clients.
Creates new page @ /ui/mobile.html for generating a QR code that
embeds configuration data for setting up mobile clients.

Imports code.google.com/p/rsc/{gf256,qr} version:

parent: 149:a3cbaf2339c4 tip

This addresses the server and web components of
https://camlistore.org/issue/372

Change-Id: If9239dd138707080afd7dedb5770d04893cbf0ba
2014-02-21 19:58:54 -08:00
Brad Fitzpatrick 593682dc2d New Android app uploaded to Play. Version 2 aka '0.6.1'.
Change-Id: I0f655de272e15f854a909b629b68a2dd012e36c2
2014-02-21 18:17:59 -08:00
Brad Fitzpatrick 84fa82e0d0 Add the website to the top-level Dockerfile too
Change-Id: I5c6116c629dc31db215c0ec4ffba67a45d9b8516
2014-02-21 18:17:16 -08:00
Brad Fitzpatrick ccacf76451 camput: re-enable deadlock test, now that it's fixed
And tweak limits a bit lower.

Change-Id: I7a38ffce37a997aa6ce9943e13605e76476f5646
2014-02-21 15:38:21 -08:00
Brad Fitzpatrick 735aca5825 Merge "camput: limit upload concurrency (number of goroutines)" 2014-02-21 23:35:19 +00:00
Brad Fitzpatrick 2760426f93 Merge "Getting started with 0.7 release notes." 2014-02-21 23:34:34 +00:00
Nick O'Neill 2157c76b1b Getting started with 0.7 release notes.
Change-Id: I23dae7c1219c2632d2e0a505699631058a7b4163
2014-02-21 15:16:25 -08:00
Bill Thiede b28dcbe9be make: add cammount to default targets.
Fixes default build on Linux (and probably Darwin).

Change-Id: Ice9e4cfbcde2b565c7f084c5cac57468bea08165
2014-02-21 14:30:23 -08:00
Tamás Gulácsi 89fc2bb83e camput: limit upload concurrency (number of goroutines)
Use separate workers for directory uploads.
Limit upload concurrency to 3+2+3 (normal+directories+stat)
goroutines on Android, and 10+5+10 otherwise.

Thanks to the predictably failing test (1333551)
which we can test against, we can eliminate the need for
unbounded number of upload goroutines (see ee4550b).

Change-Id: Idac4c94b7d7ec4fc6c6a77fed111e0ece0843545
2014-02-21 21:31:13 +01:00
mpl 8f2c67241f buildbot: send sigterm instead of sigkill to child
Because if e.g. 'devcam test' is the current child process, we want it to be
able to catch the signal and kill its own child too.

Change-Id: I3e3c9c10c8d7f5d793c98b604baf8df56608003e
2014-02-21 20:52:30 +01:00
Brad Fitzpatrick 14ef41c0ad Merge "make: only build binaries and their dependencies." 2014-02-21 19:32:12 +00:00
Brad Fitzpatrick 85e2e5e301 Fix crash with "go test -v -cpu=1,1 ./cmd/camput/"
Don't double-register the help flag. Only affects tests run twice, like above.

Change-Id: Ia235f2e2aa4a70e3b5a5c6fe21d8add90069664f
2014-02-21 10:59:34 -08:00
Brad Fitzpatrick 1333551de1 camput: predictably-failing disabled deadlock test
Change-Id: Ibf0877ac1b4e32ad32fe9592c487915130f9f488
2014-02-20 12:08:03 -08:00
Bill Thiede a68ee60ec0 make: only build binaries and their dependencies.
New behavior for -targets:
- Empty only builds default binaries for this requested platform.
- * builds binaries and recursively builds pkg/..., server/..., and
    third_party/... (old empty behavior).
- Or specify the packages you want to build separated by commas.

This should fix the failing build on FreeBSD.

Change-Id: I3e19fd26b7fa5526bb2139487f25a07fa01952c4
2014-02-19 21:00:21 -08:00
Brad Fitzpatrick 0f046b8a45 client: actually submit code that compiles
Change-Id: I4e3b2f786d46a524a52ce1a86d7bd5b625818527
2014-02-19 19:57:22 -08:00
Brad Fitzpatrick 76322ec428 client: don't do discovery in non-HTTP mode
Change-Id: Idcef3b58827fffe1f3df091c3e675b91d0ed8960
2014-02-19 19:50:19 -08:00
mpl 513a45eb06 Merge "buildbot: add timeout for task run" 2014-02-19 17:52:07 +00:00
mpl e004ef414b buildbot: add timeout for task run
Change-Id: I49594d7d9aaa20d94213033d41e055c64e3da30c
2014-02-19 16:30:04 +01:00
Brad Fitzpatrick 74e1e5c4cf Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-02-19 00:07:39 -08:00
Brad Fitzpatrick dfd94e505d camput: start of a deadlock test
Currently disabled until it's working reliably. See comments in code.

Much of this is from Tamás Gulácsi in https://camlistore-review.googlesource.com/#/c/2128/

Change-Id: I2fe2abfdee98584c698a2ac52202f13dda9beef2
2014-02-19 00:07:28 -08:00
Brad Fitzpatrick 77a34e060c camput: add a var for uploadWorkers
Change-Id: I529336ece16a35e25c33960589f706ebf8b2c5ec
2014-02-18 23:59:44 -08:00
Brad Fitzpatrick b023265043 camput: configurable timeout on env
Change-Id: Iffd0b404e48e4fd5235c22bdd00ad22c564fb0a0
2014-02-18 23:58:09 -08:00
Brad Fitzpatrick 685b44cd43 camput: don't show HTTP req stats when not using HTTP
Change-Id: I4d0c0dc44de84fe62f3ee2385bcd3875eb27be97
2014-02-18 23:56:22 -08:00
Brian Gitonga Marete ccc81242a1 pkg/tests: Warn about deprecation of asserts.* functions in pkg description.
Change-Id: I39e158a92a6f4fa6f3f93551985d9d20ad40c98f
2014-02-19 10:42:29 +03:00
Brad Fitzpatrick 53ec1b496c camput: move debug flag registration to its own func, for use by tests later.
Also, don't call TransportForConfig on client when we're in blobdir mode.
Avoids a warning.

Change-Id: I5d618b7ab7d701b4c9d9086c8adedef7b447f62b
2014-02-18 21:24:52 -08:00
Brad Fitzpatrick 1509f266be camput: set os.Args from env.Run.args before test's cmdmain.Main runs
Not required now, but will be for future tests.

Change-Id: I50c469d4f4fa589494036f306c25fe60914fb902
2014-02-18 18:47:11 -08:00
Brad Fitzpatrick 16219f24b0 cmdmain: set flagset output to cmdmain.Stderr
Default flag output only goes to cmdmain.Stderr when >= Go 1.2

Change-Id: Id2358b4c22b76901ceb834695d54e32f7c2d7013
2014-02-18 18:41:51 -08:00
Brad Fitzpatrick f99eaf5e36 cmdmain: guard ExtraFlagRegistration with a Once
Change-Id: Id54111dc21eeb61b02721117123b956fcc3b47fd
2014-02-18 00:31:10 -08:00
Aaron Boodman a41cc2bab1 Merge "Fix choppy scrolling when flinging on OS X." 2014-02-18 07:12:08 +00:00