Commit Graph

5774 Commits

Author SHA1 Message Date
mpl 7b415a4e6f pkg/index: fix context doc
Change-Id: I8d284cb3a582ad4a599d443ed9d90a2bff724c29
2015-12-16 15:51:23 +01:00
mpl 718c9d8b63 pkg/importer: use go4.org/ctxutil
side-effect: fix an unchecked type assertion, and use a conventional
key for the HTTP client associated with the context (instead of our own
string).

Change-Id: I2701de3f41f1f1c56fe3b76bbf590c0e5b39bc72
2015-12-16 15:30:09 +01:00
mpl ec6a69f96b vendor: go4.org/ctxutil
Copied at rev 2a517455a0d520adb0253788df52cadd22148899

Change-Id: I2ca47719af473974b856a2fd632adf2669811bb7
2015-12-16 01:00:13 +01:00
Mathieu Lonjaret 6061caa110 Merge "pkg/gc: fix context doc" 2015-12-15 16:27:53 +00:00
Mathieu Lonjaret c4a777b0cd Merge "deploy/gce: fix redundant context import" 2015-12-15 16:27:12 +00:00
mpl 8b20619cc3 pkg/gc: fix context doc
Change-Id: Id4b5e349707f14fe9f2502c08b5748f7f6055018
2015-12-15 16:21:15 +01:00
mpl 38fec12dd5 deploy/gce: fix redundant context import
Change-Id: I37117d5b5641bdc057c2ece093a602be6b8e0850
2015-12-15 16:16:51 +01:00
mpl fa2e1103c0 blobserver/interface: fix context documentation
Change-Id: I2bbcb88771dd917c378b1dd660205048298dae62
2015-12-14 21:50:23 +01:00
Tamás Gulácsi 9f7e1df32b Remove pkg/context
Use golang.org/x/net/context instead.

Fixes #648.

Change-Id: I676a2f25458be97610a49d6f954f2102cbd373fa
2015-12-12 23:09:02 +01:00
Mathieu Lonjaret 0948211523 Merge "pkg/auth: change VivifyPass to *string to reflect the fact that it's optional." 2015-12-10 23:14:39 +00:00
David Jack 3eb87b9c2d pkg/auth: change VivifyPass to *string to reflect the fact that it's
optional.

Previously, omitting the vivify option from the auth config would
result in VivifyPass being set to empty string (which is a valid
password for HTTP Basic authentication).

Change-Id: I51f441705af4b850ad2bdf27ac3b5a4a9dc83721
2015-12-09 22:57:18 -05:00
mpl 1ffd5895e0 camtool/googinit: use cloud/storage Client instead of googlestorage
Issue #652

Change-Id: I54b2041acfa8f998e1fb082c54f6c7069615d8a7
2015-12-08 00:11:42 +01:00
Mathieu Lonjaret fc6e38804d Merge "website: use cloud/storage Client instead of googlestorage" 2015-12-07 22:39:08 +00:00
Mathieu Lonjaret 0f4ab197d5 Merge "make.go: restore version stamping" 2015-12-07 22:04:24 +00:00
mpl 6c196c2ddb make.go: restore version stamping
And use new ldflags syntax when doing so.

Also refactor buildinfo.

Context: https://camlistore-review.googlesource.com/5586

Change-Id: I811612f1638656a45f0e574ef00b8ee214187ed8
2015-12-07 22:58:19 +01:00
mpl cf08d789f2 website: sidestep failInTests panics from osutil
Because camweb now depends on pkg/deploy/gce, which has global vars
initialized with calls from osutil.

And test website from devcam test

Change-Id: I233c229e96ded5bfde4e2c1fa7a18bbf757ab1fb
2015-12-07 22:48:12 +01:00
mpl 4b2b539e0c website: use cloud/storage Client instead of googlestorage
Context: issue #652

Change-Id: I7f36eeeb4be015ef117704742ec8ab4e4eeea7ba
2015-12-07 19:27:28 +01:00
mpl 26ee743eae vendor: go4.org/wkfs/gcs
Previously pkg/wkfs/gcs.
Copied from go4.org at rev 2871b0368b3c6fab49a8a0ed4e14cc7c3132bdf4

Change-Id: I3b6bcf720ef5ae1215b2b1fdecf1ece532a4d3a0
2015-12-04 18:23:29 +01:00
Mathieu Lonjaret ba9f6e25fb Merge "devcam test: build things in ./misc/docker too" 2015-12-04 14:46:32 +00:00
mpl 2715ebd067 pkg/wkfs/gcs: use google.golang.org/cloud/storage
Use the new Client provided by cloud/storage, instead of our own
pkg/googlestorage

Change-Id: Ic7ebf7059894c72a36a6e935a15bcda1d9dd7598
2015-12-04 01:59:08 +01:00
mpl 3e37ca9120 devcam test: build things in ./misc/docker too
Fixes issue #651

Change-Id: I10e4b73946dea073399bdb21888202f85a33c1b7
2015-12-03 16:49:11 +01:00
mpl d9a3bbc73a pkg/vendor: update google.golang.org/cloud/storage
rev 2375e186ca77be721a7c9c7b13a659738a8511d2

This is so we can use storage.Client in pkg/wkfs/gcs (and later in
other places) instead of pkg/googlestorage

Change-Id: I1d0eafbffd40e0326c41214692754f6671ec1d5d
2015-12-03 00:55:53 +01:00
mpl 40be4d8da2 vendor: go4.org/jsonconfig (and errorutil)
Previously pkg/jsonconfig and pkg/errorutil

Copied from go4.org at rev d1b8a2fb2de6160036e4801aa5e4d855571078b8

Change-Id: I673ed55b0825baa2607289b6082f205100261d7a
2015-12-01 17:21:49 +01:00
Mathieu Lonjaret e744b05be8 Merge "pkg/jsonconfig: remove dependence on pkg/osutil" 2015-11-30 23:44:54 +00:00
mpl 57a45dcd5c pkg/jsonconfig: remove dependence on pkg/osutil
So it can be moved to go4.org

Change-Id: I1b6d427cf66935fa85c746a90914a42f57b28613
2015-12-01 00:43:39 +01:00
Mathieu Lonjaret 49734969eb Merge "website: add doc for packRelated, and direct confused users to /pkg/types/serverconfig" 2015-11-27 18:11:23 +00:00
Eric Drechsel 919f91570d website: add doc for packRelated, and direct confused users to /pkg/types/serverconfig
Change-Id: I1168087e57521db3c0434d2adce430a37dad9d47
2015-11-27 10:08:58 -08:00
mpl 839ec5574e travis: make FUSE work for cammount tests
Change-Id: Ieb84446571dfea3eb44c07a8ed2f3ff7a874f817
2015-11-27 17:07:16 +01:00
mpl 3dbaa49395 vendor: go4.org/oauthutil
Previously pkg/oauthutil

Imported from go4.org at rev
3970dd22c0e7e2397304ad626a20b72f8db41b58

Change-Id: Iffb751d03af9bc0c3008e5cd3833ed42fba0bdb1
2015-11-27 00:31:40 +01:00
mpl 40c0d80b07 vendor: go4.org/wkfs
Previously pkg/wkfs

Copied from go4.org at rev 3970dd22c0e7e2397304ad626a20b72f8db41b58

Note that pkg/wkfs/gcs has not been moved yet (for dependencies
reasons).

Change-Id: I737e88a360bccfc643e1fa43541f65f2384c3157
2015-11-27 00:23:03 +01:00
Mathieu Lonjaret 6ffc170d7d Merge "pkg/images/resize: disable TestCompareResizeToHalveInplace for now" 2015-11-26 16:16:35 +00:00
mpl 997d400cbd pkg/images/resize: disable TestCompareResizeToHalveInplace for now
It's more important for now to be able to monitor for other failures in
the Camlistore repo than leaving this test on.

After having looked into the issue, I know a little more but not enough
for a definitive conclusion or fix.
It's all added as comments so we don't start from scratch again later.

Also, to make up for the loss of this test, I'm adding two other tests,
TestCompareOriginalToHalveInPlace, and TestCompareOriginalToResized,
that are similar enough to catch other problems in the same context I
believe.

Context: issue #635

Change-Id: I80a30f544fb9ab2e7c69118ef8509d3d687c2d27
2015-11-26 16:59:52 +01:00
mpl 1e2a306e8d vendor: add go4.org/cloud, update google.golang.org/api, and golang.org/x/net/context
Import go4.org/cloud/cloudlaunch and go4.org/cloud/gceutil, which were
previously in pkg/cloudlaunch, at rev
2c497a8c195996d6c48402c150da4919c1d99f33

Because the version on go4.org was updated to use the latest
google.golang.org/api/* , we also update our
vendor/google.golang.org/api/* to rev
030d584ade5f79aa2ed0ce067e8f7da50c9a10d5

This in turns requires to add vendor/golang.org/x/net/context/ctxhttp
(and update vendor/golang.org/x/net/context/) to rev
4f2fc6c1e69d41baf187332ee08fbd2b296f21ed

Also adding vendor/google.golang.org/api/gensupport for the same reason.

Change-Id: I9d6c3059626f7ecc0fbf2df0415043a464d27caa
2015-11-25 19:29:46 +01:00
mpl 8d76f0563b vendor: go4.org/syncutil/singleflight
Previously pkg/singleflight

Imported from github.com/camlistore/go4/ at rev
039bcc4ca7e407e5611cbdf15a1f208be0bceda0

Also reimport vendor/go4.org/syncutil because some of it got split into
github.com/camlistore/go4/syncutil/syncdebug

Change-Id: Iaf48de71928d17e0410442ea6f5bef7262ba60d2
2015-11-24 17:28:28 +01:00
mpl fd2d58e61b vendor: go4.org/net/throttle
Previously known as pkg/throttle

Imported from github.com/camlistore/go4 at rev
4d87fc99168459b13e7c78086d210cf11474ade2

Change-Id: I21298db0790b2cf125efb612befd7dfb24780861
2015-11-24 16:27:11 +01:00
Brad Fitzpatrick 9868aa0f8d Remove httputil.CloseBody relic. 2015-11-23 19:02:10 -08:00
Mathieu Lonjaret fe71c93af6 Merge "pkg/images/resize: fix filenames in tests" 2015-11-23 16:07:27 +00:00
mpl 12eddf9c19 vendor: go4.org/strutil go4.org/syncutil
They were internal packages (under pkg), which we are now moving to
go4.org, so we in turn need to vendor them in now.

Change-Id: I92224f731404d0bd4ca1c57492bed37cb3367ed4
2015-11-21 00:21:20 +01:00
mpl be155b4503 pkg/images/resize: fix filenames in tests
Setting the filename from the type, after resizing, does not work anymore
after fc890a65cd , because resized images
are now always RGBA, since we're using xdraw.

Change-Id: I561f43a3ebe9cb3e1d7404295635899ab6b62e7a
2015-11-20 21:43:12 +01:00
mpl e1798e796e website: set builder redirect in production
Change-Id: I36c9be9786b14a564b4c67e3562cd06ae402ae25
2015-11-20 16:47:43 +01:00
mpl 8a10bb52e0 pkg/server/status: link to GCL logs on GCE
Fixes issue #592

Change-Id: Ife405816ee42902258c93eac917a6ff5bada4138
2015-11-20 01:26:12 +01:00
Mathieu Lonjaret 64a8d7d26b Merge "pkg/index/sqlite: add build tag for test" 2015-11-19 14:40:10 +00:00
mpl 0fe6be3a47 pkg/serverinit: fix diskpacked test
Because I broke it with 7cb8884f00

Change-Id: I39e72d5093c26ed71f5c9076487837b0395b9e73
2015-11-18 23:57:13 +01:00
mpl 59e30b9433 pkg/index/sqlite: add build tag for test
so we don't get a failed test when we're not running with
--tags=with_sqlite

Change-Id: I2de4c21b4f3ee673132f56b12c2dfff8272d5d79
2015-11-18 23:17:20 +01:00
mpl d3e4a01b4f pkg/deploy/gce: rm debugging handler
I broke it recently by removing gce.DevHandler and I don't think it's of
any use anymore nowadays.

Change-Id: I8d9ff85c980999bc5fb61ea08e1fce2cd4b7bea9
2015-11-18 18:49:34 +01:00
mpl 58958f44ee enable travis CI with a .travis.yml
Change-Id: I9d42251659fd46dc84943d7644ce644de063d6da
2015-11-18 18:24:38 +01:00
mpl 775da29abe pkg/deploy/gce: always use latest stable CoreOS
Added pkg/cloudlaunch/gceutil package.

Fixes issue #649

Change-Id: I47830489b29de9c555b4706fe387be08e3f57e16
2015-11-18 00:17:33 +01:00
mpl cca20e7080 website: revert latest to 0.8, add blank line because markdown
I believe the added blank line is needed for markdown to "realize" it's
a comment tag, or whatever. The comment is actually hidden again now.

Change-Id: Ia8f63177e9363db676e970b866fe1ffa6f3cab10
2015-11-17 00:27:09 +01:00
mpl 621388f0bf camweb: send deploy handler logs to GCLogging as well
When logging to Google Cloud Logging, make sure the deploy handler logs
are written there too.

We tag them with the from:camli-gce-launcher label.

Change-Id: I4dab010009f98efd2aeba7c57dc4ab3ca6a566b3
2015-11-16 23:40:05 +01:00
mpl a2aee25cfb website: update (camlistored) deployer to run on GCE
Change-Id: I205c6df51e8d8c4bcf2710fc9da1db68419fc2df
2015-11-13 17:41:46 +01:00