Commit Graph

278 Commits

Author SHA1 Message Date
mpl dc38e21fb1 dock.go: update CopyObject
its signature changed with last update of google.golang.org

Change-Id: I318f8966d3ced374607211c7ff27abe1ed30d28d
2015-10-16 23:03:21 +02:00
Mathieu Lonjaret def28fc337 Merge "third_party: no more import path rewriting because Go 1.5" 2015-09-17 11:59:14 +00:00
mpl 328ec25f9c third_party: no more import path rewriting because Go 1.5
We don't rewrite import paths anymore, because we use the new vendor
mechanism that comes with Go 1.5.

Also remove misc/pre-commit.githook because of the above, and because
the rest is covered by devcam hook.

Change-Id: Iafb32e19b21d1df44b9625a5f58bf898e6b51fa8
2015-09-16 22:22:51 +02:00
Mathieu Lonjaret 4c7a2b4aee Merge "dock.go: build windows tarball too" 2015-09-16 19:55:40 +00:00
mpl b432bf01c7 misc/docker: Go1.5 update + related simplifications
Update our Go image to use Go1.5.

Also, with Go1.5, we can compile static binaries (with CGO_ENABLED=0 and
--tags=netgo) without having to first rebuild Go itself from source with
CGO_ENABLED=0.

Finally, with Go1.5, we can now cross-compile straight outta the (linux)
binary tarball (without having to first build the necessary runtime in
src).

For both these above reasons, we don't need to use the Go -src tarball,
and we don't need to have a dedicated Go docker image for each GOOS we
cross-compile too.

Yay, progress!

Change-Id: Ibafb542a4771b151638e796ad3df78e0c8f1a4bf
2015-09-14 16:21:40 +02:00
mpl 14c87ca673 dock.go: build windows tarball too
Change-Id: I0b0f60828949fd321f99fc12eeef5d8e22d3cbc1
2015-08-25 19:26:55 +02:00
mpl b49c8b94de buildbot: switch to Go 1.5
Change-Id: I1b97aa44157064a64baec8f2d3f22376c9438d21
2015-08-21 19:27:52 +02:00
mpl 4d5cfb81c7 deploy, docker: go 1.5 tweaks for GCE launcher
Change-Id: Id1bae51742cb3efbb580181dc3c2ae6814fcab65
2015-08-18 15:01:04 +02:00
Brad Fitzpatrick 6f58fc2426 Fix build, move more stuff from third_party to vendor. 2015-08-18 10:19:49 +02:00
Brad Fitzpatrick 06f7accf31 Require Go 1.5 (due out soon), start move from third_party to vendor.
See https://golang.org/s/go15vendor

This commit moves the google.golang.org/cloud/... packages. The rest
of third_party will move later.

This commit is a dependency for some cloud logging work which we'll
develop in Camlistore's tree.
2015-08-15 22:45:11 +02:00
mpl e12d2aa765 misc/docker/dock.go: bump default rev
Some new features (build binaries tarballs) added in commit
988fc8a43c depend on some files that were
added to the camli repo in that very commit.
So for these new features to work, the Camlistore source used must be >=
to that revision, hence that bump.

Change-Id: Ibb68c0f1a1c85277becc02ad73b902d77b5bc465
2015-07-21 16:57:39 +02:00
mpl d68657f75a misc/docker/dock.go: names and doc tweaks
Change-Id: I0e5de36d0001e5d13dda4ec166af0bb207f4694a
2015-07-18 00:06:31 +02:00
mpl 2c57aff2c1 misc/docker/dock.go: fix typo, wrong program was called
Change-Id: I627b25c604f6ae82bbb49d635664e811ba962af8
2015-07-17 22:42:11 +02:00
mpl 988fc8a43c misc/docker: build tarball of binaries for releases
This change:

1) adds misc/docker/go/darwin/Dockerfile to create a docker image with
Go setup for cross-compiling to darwin
2) adds misc/docker/release/build-binaries.go, which works similarly to
misc/docker/server/build-camlistore-server.go. The difference is it
builds all binaries with make.go instead of just camlistored, and
camlistored is hence built with all resources embedded.
3) adds the --build_binaries flag to dock.go to make use of the above.

Maybe 3) should be done in a new file (out of dock.go), but it is
convenient for now for code reuse.

Issue #538

Change-Id: I8ecd50d118a9ff5c3f53812cac4d7a81a0053b4f
2015-05-14 23:32:40 +02:00
mpl 2b1ce70c15 dock.go: upload versioned tarball
Instead of just uploading the unversioned tarball, this change first
uploads a versioned tarball, then makes a copy of it as the unversioned one.
This allows for easier reverts when overwriting the unversioned tarball
by mistake.

Change-Id: Ia8a1b9008e7a203f2fb3b640dc12da432be1baf3
2015-05-12 15:41:20 +02:00
mpl 7242a824db dock.go improvements
The (camlistored builder + UI resources bundler) was a piece of shell
run in a docker container. That piece of shell is replaced with the
misc/docker/server/build-camlistore-server.go go program. This
program is still run within a container of the camlistore/go image.
It is added "on the fly" as a resource to the camlistore/go image
as a mounted resource.

In addition, build-camlistore-server.go can take a local directory as
the camlistore source (instead of fetching a tarball at the given
revision). dock.go has been adapted to take advantage of that.

Change-Id: If32b523d850f6c932016f18231bb1b1a283e50d3
2015-04-21 22:56:03 +02:00
Brad Fitzpatrick 6e5ba41027 dock.go: set buildinfo.GitInfo in the final binary
Change-Id: Ie7db7c191d0837a43e0a27bd0b74fc31f9f26aec
2015-04-02 08:32:48 -07:00
Brad Fitzpatrick faba473e75 Make dock.go also able to upload Docker images to GCS.
Change-Id: I00b17f44972176d7cfbaa9c956b2417dd9155b10
2015-04-02 05:34:59 -07:00
Brad Fitzpatrick 322ce34fe7 Remove old stuff from misc/docker/camlistored/Makefile
Change-Id: I6eafdc65b8a3ab9046879e5b540e9635754ebfaf
2015-04-02 02:28:45 -07:00
mpl 8f244dfae2 misc/docker/dock.go: build and add djpeg
Change-Id: I20935a3f5dfc160c5fbd5680b12c1404bfc5dfe9
2015-04-01 16:21:29 +02:00
Brad Fitzpatrick 5ee33643fd More dock.go image building work, with mpl
Change-Id: I290d9364a49c95c5c5f35864f94d04780ae30843
2015-04-01 03:48:12 -07:00
mpl db4813e19f misc/docker: final Dockerfile for camlistored
Change-Id: I9dce6a2d04b342e3c5045cc460b227d1bd49b334
2015-04-01 11:51:16 +02:00
Brad Fitzpatrick 2e923925db misc/docker: start of dock command
Change-Id: I758081373b5e109a32fd3e22c0b983598c5a31d8
2015-04-01 02:24:56 -07:00
mpl c3853b5222 misc/docker/go: go without cgo
Change-Id: I662d97467e0621af3b20f3c77bc113ace2c48456
2015-04-01 11:17:30 +02:00
mpl b2cdca7f11 docker/camlistored: use djpeg-static
Issue #564

Change-Id: I4efcbadcedff8f120497869e11784f372d93188e
2015-02-16 19:00:39 +01:00
Salmān Aljammāz 1b087e719c docker image for a static djpeg
updates #564

Change-Id: Idf40aa915e20c0584ed02ecab90b304dc159a371
2015-02-13 20:20:40 +00:00
mpl 6819477c6f docker: build djpeg, squash it, use it as base for camlistored
Issue #564

Change-Id: I78e3a7a286dedc413299de7ad4f7a99c6c889fa8
2015-02-10 17:22:51 +01:00
mpl bee9fdcaea docker/camlistored/Makefile: change build tag, add target to save
Change-Id: Ie2bcad5f9349fd4e2f1006b56de4427b5eed1461
2015-02-03 18:00:27 +01:00
mpl 424ccbdeba misc/buildbot: keep it alive until rewrite
Because of the hg->git switch and the switch to Go 1.4, which requires
bootstrapping for building from source:

-master now requires an env with a working Go to build builder (instead of
building go tip from source), and master does not monitor changes to the go
tree anymore.

-builder gets Go1.4.1 from the binary tarball (instead of building from
source), and does not build go tip anymore (nor does it run tests with
it).

Keeping it alive properly was not deemed worth the trouble since we plan
on replacing it with a new builder based on the same tools used for the
Go builders.

Change-Id: Idd0864350b27b6523675006f00719fba2d6fc72f
2015-01-27 00:56:40 +01:00
mpl 00b18d99d4 misc/docker: rm spdy proxy since we have http2
issue #534

Change-Id: Ic05b60aa1c220b9df76718edc2ca222cddc427dc
2015-01-14 15:46:18 +01:00
mpl cfd784269e deploy/gce: use subdirs for config and blobs (instead of buckets)
http://camlistore.org/issue/528

Change-Id: Icb558d7de032f9367e8fb100be87ef24c2982c23
2014-12-17 16:20:58 +01:00
mpl 99fe925efc pkg/deploy/gce: lib + tool to deploy on Google Cloud
http://camlistore.org/issue/531

Change-Id: I69ffe0544341d380bb844aef1dcca8a1ae441ea7
2014-11-26 22:50:27 +01:00
Salmān Aljammāz 4ed9ebb9fd Dockerfile for an nginx SPDY proxy
We can enable this once the changes to gce/create.go are in.

https://code.google.com/p/camlistore/issues/detail?id=534

Change-Id: I7ea77bf9b09a2f6d91e4f5e228320fa97d54dfa2
2014-11-16 14:00:52 +00:00
Salmān Aljammāz 4e39af1086 Generate self-signed certs with the correct hostname.
This change makes gce/create.go generate a self-signed certificate
with the hostname from the -hostname argument and upload it to GCS
before creating a new camlistore instance.

It also makes camlistored use baseURL to figure out the hostname
when generating its self-signed certificate.

Change-Id: I64f85853dab34a7ce95e5d5997e58f2e5da43496
2014-11-13 15:53:40 +00:00
Mathieu Lonjaret 0ac70ad2a5 Merge "devcam: run git pre-commit hook as a test." 2014-10-27 21:44:55 +00:00
mpl 762d2d2974 gce: make token cache file project dependent.
Also add a few hints.

Change-Id: Id51a933be35bc73622e335a9d323696f77dd8395
2014-10-25 01:04:49 +02:00
Bill Thiede af19bf089c devcam: run git pre-commit hook as a test.
Additional check to prevent b bad imports and un-go-fmt'd code
from sneaking in.
If users don't run tests, it will break the builder.

Change-Id: I95c74724aac68d915aa5195b6d8fcb78f92349e0
2014-10-02 09:32:23 -07:00
Brad Fitzpatrick 8bbd38f2dd GCE: put the thumbnail cache on /var so CoreOS doesn't wipe it
Also, move MySQL's data dir so they're both under /var/lib/camlistore

Change-Id: Iffc35efb68a69748ecbe59a6bfc99e9886ae325b
2014-08-23 19:55:44 -07:00
Brad Fitzpatrick f9a00dce0b GCE: use our own lighter MySQL Docker image.
Use systemd/CoreOS instead of supervisor,
Less InnoDB memory,
No snapshots,
unrelated to Docker image: keep data files on CoreOS /var/lib/mysql-camli so
they persist across reboots.

Change-Id: Ib903c386fb3e2df0b7cf2d3eb466290f2b16f94b
2014-08-23 17:49:59 -07:00
Brad Fitzpatrick 1ca6a739cd gce: use systemd-docker on CoreOS
Change-Id: I4f5a169c78ca3806aa40b3716b267b539c8bfbca
2014-08-23 09:13:06 -07:00
Brad Fitzpatrick c78e9af4b6 gce: run mysql too. link it with camlistored.
I think I'm not using systemd correctly here. Things get very unhappy
if I reboot CoreOS: the Docker container named 'db' already exists, things keep
flapping up and down (not waiting for their dependencies), etc.

Maybe I need to register stop actions too.

Change-Id: I75ac3e965c03df4f7f3938ff13c66f137948bf4d
2014-08-18 23:18:45 -07:00
Brad Fitzpatrick 082876c600 gce: don't make http client twice.
doesn't really matter, but.

Change-Id: I21495be1780e74464c7016979174ba722400ef1a
2014-08-18 17:17:33 -07:00
Brad Fitzpatrick 5a95215fcc GCE: use host's /tmp dir instead of inside container.
Change-Id: I2a52249148541c97dfdd84bac57a1605e0366471
2014-08-18 17:13:46 -07:00
Brad Fitzpatrick e86d90dd42 GCE: expose host's systemd journal to camlistored; add /var/logs handler
The machine now boots with a new pair of cooperating systemd units:

1) cam-journal-gatewayd.service: a copy of the systemd-journal-gatewayd service,
   which runs an HTTP interface to the systemd journal.
2) cam-journal-gatewayd.socket: a unix socket listener listening on unix
   socket /run/camjournald.sock. Incoming connections will forward to 1).

Then the camlistored.service unit running camlistored under Docker now
passes -v /run/camjournald.sock:/run/camjournald.sock to make that unix socket
available to the Docker container.

Then in camlistored, a new handler at /debug/logs (wrapped in auth
checks) then opens that socket and makes an HTTP request to it,
copying its response (of log lines) back to the browser.

This will ease debugging, letting people only use their browser to
debug (or send logs to the Camlistore developers more likely), rather
than sshing in to CoreOS and learning CoreOS and systemd arcana.

Change-Id: Icd5967ae7e9946d36229bdbc5d37644a11ee5e9f
2014-08-18 15:20:59 -07:00
Brad Fitzpatrick b191ece806 GCE: start systemd-journal-gatewayd.socket on boot.
Change-Id: I53e679f9a5f745c9a35904cdf65ff7844420e23b
2014-08-17 14:21:59 -07:00
Brad Fitzpatrick 274f838f6f Add make.go support for building the camlistored Docker binary.
Change-Id: I2f8ad914b217843749c0aee57c24ce44c1c619f1
2014-08-16 14:56:40 -07:00
Brad Fitzpatrick 494e9e7814 docker: add push target
Change-Id: I82fd35a3f1e5c4a76c9774aff28328a7acc97e78
2014-08-16 14:27:51 -07:00
Brad Fitzpatrick 38b97e1b9a Add Dockerfile and Makefile for 'camlistore/camlistored' Docker image.
Change-Id: Ied7055689f1946ce0e6a857b4e6ddd5f8dca79b9
2014-08-15 22:20:57 -07:00
Brad Fitzpatrick 38cceb30aa misc/gce: flesh out enough to boot instances running Camlistore.
Polish remains.

Change-Id: I998cf4d515049e6d0e462fa6c259c39fc1638cf2
2014-08-15 22:18:10 -07:00
Brad Fitzpatrick fd08eb7e1d Create GCE instance, but without Camlistore running.
Change-Id: I3775ad8dc90562f9d4cb6c59da9a4df63aa417e8
2014-08-15 13:19:12 -07:00
Brad Fitzpatrick bb8fe1aa33 GCE setup tool: more graceful OAuth setup
Change-Id: I28893735c49da18d3890a0df07b071048c29ba68
2014-08-15 12:47:05 -07:00
Brad Fitzpatrick c6c76ef859 Start of tool to create Camlistore instances on GCE.
Will be wrapped in a webserver later.

Change-Id: I95738e57e3e3db11436af777cbf21e680dd10d66
2014-08-14 14:55:06 -07:00
mpl e3e25c885f buildbot: option to skip test suite, mainly for debugging.
Change-Id: Ief506ed1403a48eecd3ef37e17818d3612ae40b4
2014-08-05 16:46:27 +02:00
Brad Fitzpatrick 73b5665805 re-tag 0.8
Change-Id: Ibbeb9027fd5719a8faca915a32207564041dce7d
2014-08-03 18:27:18 -07:00
Brad Fitzpatrick d57489b521 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-08-03 18:26:38 -07:00
Brad Fitzpatrick 992ae392fa tagging 0.8
Change-Id: I0aaed33cb582a7b2aeecacd33e70ee5effda86c2
2014-08-03 18:17:54 -07:00
Brad Fitzpatrick 43a50b9fbf google cloudstorage: stat bucket at start. WIP.
Change-Id: Ia5c0981a1f31e347218d334a0748af19867b1adf
2014-08-02 21:00:43 -07:00
Brad Fitzpatrick 90175c209c Add some GCE+Docker+CoreOS notes.
Change-Id: I67d37b3aaf08e22315bda6aae9e7c7d48c67dba5
2014-08-02 17:24:21 -07:00
mpl c23933efdc buildbot: be more patient when waiting for camlistored
I'm hoping this will help with our first test suite run (Go1) which
is often failing at the test trying to hit http://localhost:3179/ui

Change-Id: I972072ebc27b7a59136a90532000ca7e9d58a471
2014-07-05 18:20:06 +02:00
tnt 5d8eeb534b Fixed wrong calls to formatting functions.
E.g: fmt.Println("%s", "hello world") -> fmt.Printf("%s", "hello world")

Change-Id: I51c0bd54c14173e074fafd86c83a5287fcdb1520
2014-06-30 22:05:22 +02:00
mpl a52585d7b0 buildbot README: link to setup script for hacking
Change-Id: Id583796ede48fad0e3000b3ab97551e889fa2c37
2014-06-19 15:03:29 +02:00
mpl 678d7cc45a misc/pre-commit.githook: print gofmt to run
Change-Id: I1e177a2cbbc33bae2afc9bcef8c3da387f5bb303
2014-06-06 18:46:44 +02:00
mpl 4569a7f475 devcam review: submit changes for review
Context: http://camlistore.org/issue/408

Change-Id: I587de65c9dc8d87c02541096e1f4f7765e644962
2014-05-13 23:06:30 +02:00
mpl 335f6416b9 buildbot: add some context to error
Change-Id: Ia0733909ffd4d9e9451ac663cb7ece799169ab7c
2014-03-04 18:53:05 +01:00
Brad Fitzpatrick 9f70025a29 Add 0.7 to the release history
Change-Id: Ieb895939d302c594b35dfd51361c93fe9078a039
2014-02-28 15:33:48 -08: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
mpl e004ef414b buildbot: add timeout for task run
Change-Id: I49594d7d9aaa20d94213033d41e055c64e3da30c
2014-02-19 16:30:04 +01:00
mpl 08dad1803e camlibot: set GOROOT properly, stricter hash checks, simplify
Change-Id: I27fed6c52eeae239b9f8a17600331fc08dfd9ef7
2013-12-30 19:50:54 +01:00
Bill Thiede b030952753 buidbot/master: remove auto refresh on stderr view.
I thought this was clever, but now I see it is just annoying when
dealing with long stderr logs.

Change-Id: Iddb172240a046aedb9abb78fa5a74ebeded3c387
2013-12-27 11:21:21 -08:00
Brad Fitzpatrick 401579d656 Record 0.6 tag
Change-Id: I52da474ca3831c8be4685edfc0e132b27255f8a4
2013-12-25 10:59:18 -08:00
Bill Thiede 2e1dcca4e4 index/corpus: Add copyright header
Also update copyrightifity.

Change-Id: Icce92d96c4bd2eaba5002d85641756ed3fd672fa
2013-12-08 22:44:08 -08:00
Bill Thiede 738783ebf4 buildbot/master: add Basic Auth support.
Moved BasicAuth parsing and localhost detection code from pkg/auth ->
pkg/httputil for use by buildbot master.

Added user config file for remote access.  The file's name is
"masterbot-config.json" and is located in osutil.CamliConfigDir(),
which on Unix will resolve to $XDG_CONFIG_HOME/camlistore/, if
XDG_CONFIG_HOME set, or ~/.config/camlistore/.  On Windows it will be
under %APPDATA%\Camlistore\.  The expected format is a json object
with usernames as the keys and sha1 sums of the password as the
values, i.e.:

    {
        "user1": "1234567890abcdef12341234567890abcdef1234",
        "user2": "1234abcdef12345678901234abcdef1234567890"
    }

This file is polled at a 1 minute interval and reparsed if the file's
modification time is more recent then the previous parse attempt.  It
is ok for the file to go missing, it will zero out the remote user
list. A malformed file will result in the master exiting.

New commandline flags, -tlsCertFile & -tlsKeyFile, added.  Specifying
both will enable TLS on the listener specified by -host.  The go
source contains generate_cert.go in crypto/tls that can be used to
generate self-signed cert.pem and key.pem for testing.

Added -skiptlscheck commandline option to builder.  This allows the
builder to report to https:// addresses with self-signed certs as we
don't currently have a way to specify the cert chains to be used
for TLS verification.  This is a stop-gap solution.

When launching a master that listens for secure connections, we
currently need tell the builders to skip certificate validation. Add
'-builderopts="-skiptlscheck"' to the master's commandline to skip
cerfication verification.

Change-Id: I0750b5c9fa8f4def67fc05a841087b50abded2f7
2013-11-21 21:22:12 -08:00
Mathieu Lonjaret c1b21a9668 Merge "builder: add client side Basic Auth support." 2013-11-07 16:04:20 +00:00
Bill Thiede 05fa589675 builder: add client side Basic Auth support.
Adds support for specifying additional masters to send results to.
The config file, named "builderbot-config", must be located in
osutil.CamliConfigDir(); on Unix, it will be under
$XDG_CONFIG_HOME/camlistore/, if XDG_CONFIG_HOME set, or
~/.config/camlistore/.  On Windows it will be under %APPDATA%\Camlistore\.
The expected format is one host per line, comments are not allowed and used
only for illustration below.  Some examples:

    # Post to default path on host1, no user auth.
    http://host1
    # Post to / on host2, no user auth.
    http://host2/
    # Post to /other/path on host3, no user auth.
    http://host3/other/path
    # Post to default path on host4, user 'user', password 'pass'.
    http://user:pass@host4
    # Post to / on host4 port 7070, user 'user', password 'pass'.
    http://user:pass@host4:7070/

This change also explicitly sets GOPATH to the copy of camlistore.org checked
out by the master before building the builder, and starting the build run.
This ensures we're not building against a random checkout of camlistore
pointed to by the user's environment.

The directory of the checked out source is moved from ${PWD}/camlistore.org
-> ${PWD}/src/camlistore.org so GOPATH can be set to $PWD and the requirement
of packages being under src/ is met.

Change-Id: I6e121c0aae9dae0c1832f782fa32619434ce9d2c
2013-11-06 19:16:58 -08:00
Bill Thiede d950d683b5 buildbot/master: reformat task's error message.
The error message is already preformated with \n newlinews, so <pre> is a more
appropriate tag, shows error messages with proper line-breaks.

Change-Id: Ifcf63ae4c9fa857c48bd825edb8f83f1527ed57a
2013-10-30 21:21:19 -07:00
mpl 9ab3af23b6 misc/buildbot: a few fixes + README
-hack to disallow remote bots reports, until we have some auth working
-verify that the alternative latest hash provider response looks like
a git hash before using it.
-check that the buildbot code is the most recent before building
-a few more debugging prints
-some paths fixes
-README to get started

Change-Id: Ibe8b4472586b4902d3f28f70a2cceadfb6e41c80
2013-10-25 01:29:36 +02:00
Salman Aljammaz 7b870f3d9e pre-commit hook: gofmt files from git index rather than working directory.
Fixes http://camlistore.org/issue/245

Change-Id: Ib5647ad7d0f05141243732923112bc9597cb1512
2013-10-23 22:36:16 +01:00
mpl 74bb79e63b buildbot: broke into a master and a builder bot
This change is the first major step towards more improvements to the
buildbot. It cleans up various details, but most notably:
-it now uses a task as the basic data structure, to improve readability
and maintainability
-it breaks the bot into a master bot and a builder bot.
-it allows a master to receive reports from remote bots, and the
status page now aggregates all those reports.
-it allows a builder bot to send its reports to several master bots.
-the master bot uses whatever go version is installed to build the
builder bot, or the downloaded go tip if none is found.

The master bot is in charge of
1) monitoring the changes to the Camlistore and Go repos,
2) recompiling builder bot, which allows to add some new tests to the
test suite without having to interrupt the master bot.
3) starting a builder bot instance
4) waiting for the builder bot report and/or polling the builder bot
for its progress
5) answering the requests to display the various status pages.

http://camlistore.org/issue/185

Change-Id: I46a0b8fabbebf76b0c3ed04fd2ee73362d565cf7
2013-10-18 19:32:24 +02:00
Bill Thiede 0712432e1f buildbot: use ringBuffer to store last 1MB of logs
Change-Id: I689ca82c64b9c7f89913551c5138a78718377c0d
2013-10-14 17:20:36 -07:00
Brad Fitzpatrick 652719fd3f Merge "buildbot: Add more debugging." 2013-09-22 10:33:49 +00:00
Bill Thiede 570ea2a82d buildbot: Add more debugging.
This adds the error returned from exec to the log message, and
provides '(empty)' placeholders when no stdout or stderr is present
from the called binary.

This has the effect of changing the silent errors I was seeing on my
buildbot from:

"""
Error:
	:
"""

To:

"""
Error:

	exec: "devcam": executable file not found in $PATH

Stdout:
(empty)

Stderr:
(empty)
"""

Also provides a /stderr handler linked from the status page that
allows all the logs to be viewed.  This is handy when the logs from an
individual test don't provide enough info to debug a build problem.

Change-Id: I4b3ef5a5db6aac1ddf41c41bc2fff310f19a82a1
2013-09-21 12:04:39 -07:00
Brad Fitzpatrick cfc9ce026b Add 0.5 to misc/release-history-tags
Change-Id: Id5756cd120ebd2548ac314f34e5f0095280fd71f
2013-09-21 19:57:49 +01:00
mpl 0c1dc0d6e4 devcam test: generate keyblob with devcam put init
The integration tests run by devcam test require a
GPG keyblob in the default location (for camput), and
we do not track in git such a keyblob.
This change allows devcam test to create the keyblob
with devcam put init before running the tests.

Also, devcam server is now using CAMLI_KEYID instead
of hardcoding the key id in the dev server config file.

Change-Id: I030b88c9a9321016fedb62424e0e707621206922
2013-09-20 20:03:21 +02:00
mpl ba8f88c21a devcam test, replaces make presubmit
http://camlistore.org/issue/223

Change-Id: Iaaea9926a98d7d3335fd6ee52daa225e51ec4703
2013-09-19 17:00:59 +02:00
mpl 3a26c433db devcam: 'put' and 'get' commands, replace dev-camput and dev-camget
Also added -port flag, and untied the port to the
password in devcam server, always 'pass3179' now.

http://camlistore.org/issue/212

Change-Id: Iadf693951763d47907be17c53d4807a4706eb150
2013-09-01 10:25:09 -07:00
Brad Fitzpatrick f2dd7c1328 Add 0.4 to history
Change-Id: Idaf22fd681106349c693fc49a7bc5499212eb17c
2013-08-26 18:06:54 -05:00
mpl b3b16f73c2 buildbot: use make.go
Change-Id: I76544d7e0601be9a5bc2b9378a29db6c97894d76
2013-08-21 19:33:55 +02:00
Bill Thiede 502aff1fd5 camweb,buildbot: Update camlistore git repo URLs.
Also add redirect for /code/ request with a commit hash to new code host.

Change-Id: I68a8746dacb6f0a4fc6719e3f5ed23ee0f37778b
2013-08-18 08:56:16 -07:00
Brad Fitzpatrick b6a8dc3351 More git links updated
Change-Id: I2e527d73c2907dbc87e84a876b0f0ba7b2cf18b9
2013-08-14 10:47:56 -07:00
Brad Fitzpatrick 36f93b8240 Updating website for new git & Gerrit location.
Change-Id: Ifaceae9e40e2028c7c643020ea82abcece2e3554
2013-08-14 10:35:33 -07:00
mpl 66bc4f35d6 Merge "dev-server: remove. replaced by devcam server." 2013-08-03 16:34:35 +00:00
mpl f4ef8c0375 dev-server: remove. replaced by devcam server.
Fix related docs, config files, buildbot...

Change-Id: I638d3856f42953603b13204fb56782974d0db9ee
2013-08-03 01:12:38 +02:00
Brad Fitzpatrick 979444de66 dev-camput, dev-camget: options to make demos better
Change-Id: Ie109cc156a081b72b83b9851630addf515c1ceec
2013-07-29 10:15:59 -07:00
Brad Fitzpatrick 30682116cf Add 0.3 release.
Change-Id: Iabd93c3f92f18c737edb818b66a449804527bfa3
2013-07-28 18:47:01 -07:00
mpl 5645570ca9 dev-server: use updatelibrary.go to update closure lib
This change also removes misc/get_closure.pl and updates
the Makefile accordingly.

http://camlistore.org/issue/140

Change-Id: I508271cee24eb20d8391cb3d84e1201ce3ef567e
2013-07-23 16:19:46 +02:00
mpl 93e9ad812d buildbot: properly answer if-modified-since requests
http://camlistore.org/issue/119

Change-Id: If5b486bf95748267e33f354e0a8fed9c79f220c0
2013-07-17 19:13:07 +02:00
Brad Fitzpatrick 466dfcdc59 buildbot: add doc comment
Change-Id: Iaa713039f58ea607db179b99638971f8e194e8b0
2013-07-07 15:32:11 -07:00
Brad Fitzpatrick f7707d75c1 Remove misc/sqlite directory. Old experiment.
Change-Id: I207c96dc77221fddeebb8ecdf1bc61c15269ef16
2013-07-05 09:55:11 -07:00
Brad Fitzpatrick 59f5b41900 Use make.go from dev-* scripts. Updates Issue 140.
Change-Id: I0acea921e311b8228829dbad37ee502034c7dfe7
2013-06-29 13:52:01 -07:00
Brad Fitzpatrick c86b1bafdf Add 0.2 release tag.
Change-Id: I42eb5ae160814865e6f8139e50978a1a96178007
2013-06-22 07:52:25 -07:00
mpl 2430cf7a20 camlibot: run without --staticres --offline since they are gone
Change-Id: I14d696e2f07967719fa82e4782d8a4ed139b411e
2013-06-19 16:12:52 +02:00
mpl 7efc0d131e camlibot: run in staticres mode until closureRoot works
Change-Id: I24252453e1935d9e7308512c705f8ca6e3fda01b
2013-06-14 00:16:35 +02:00
mpl 40b4485b9e buildbot: actually print output when server fails to start
Makes it way easier for debugging.

Change-Id: Ic71c78134664cb512d1ae2b14eb994724e367ef9
2013-06-14 00:08:42 +02:00
mpl 25776d90bb buildbot: quit hitting /ui/new/
Change-Id: I2e5c443ee90e299516cab6067ced8fbcde4fe257
2013-06-11 21:34:14 +02:00
Brad Fitzpatrick 6b7e37f4a8 Add misc/release-history-tags
Change-Id: Ieb53dc2ebaa6b2619416fdc9a45b265a9fc90b2b
2013-06-11 17:18:28 +02:00
Josh Bleecher Snyder 224e25d8cc Stop using $USER in misc/review
For folks whose $USER doesn't match their
Gerrit username, editing misc/review is not a
great solution, since the changes cannot be
committed (nf notwithstanding).

Instead, let ssh config files do their thing;
these are not part of the repo, and thus can
be set once and merrily forgotten.

Change-Id: If03fe05e5779553ed1f98310e8f22b0635ada7bb
2013-06-04 17:30:23 -07:00
mpl d9649744b9 buildbot: more idiomatic chan timeout, and chan reuse.
Change-Id: I3b4a1e69c6b2c3d3889dbb62067d53cebf4eb8aa
2013-06-04 15:16:02 +02:00
mpl 5b73925c2a pre-commit hook: skip deleted files
http://camlistore.org/issues/74

Change-Id: Ie1cdeca8d22d0a41ced2a3a3d9bd7bc4b6c89951
2013-04-25 19:25:32 +02:00
mpl ea3e16adf9 Merge "a few camlibot changes" 2013-03-07 21:00:55 +00:00
mpl 6e5ee35085 precommit: check trailing space in java sources too
Change-Id: I85820763b6c1075f5c8ff5d793b082bd11181931
2013-02-25 19:28:06 +01:00
Jani Monoses 48838c6651 Use git instead of svn for fetching closure.
Change-Id: I3fc4af0f17d59aa951bdd59176fcbce5072226cf
2013-02-13 11:38:16 +02:00
mpl 7cb62ad6f5 a few camlibot changes
1) Use "make forcefull". Please note that this will fail
with the default Go1 version installed by ubuntu packages.
2) Use --offline with dev-server to avoid pulling the
closure stuff.
3) Waterfall display (new stuff on top, older at bottom).
4) Added a camput -vivify run, with the subsequent camgets
to check that the file has indeed been pushed.

Change-Id: Icd164932bd61d54ddbece12ef420524643e07f1b
2013-02-07 16:16:15 +01:00
Brad Fitzpatrick e398532b4a buildinfo: include dirty + flag in version
Change-Id: Idc4763de41fdfa055fed5c06a36db9e9539f60bc
2013-02-03 10:14:21 -08:00
mpl fc8ecb3b29 closure: changed the library setup, added the compiler
1) The code to get the closure library has been moved from
dev-server to misc/get_closure.pl
2) The svn checkout version for the closure library was bumped
to the latest: 2459
3) The closure library checkout now goes into tmp/closure-library/,
to keep tmp/ clean for other things we might want to add there
(like the compiler). So the path to the actual libraries is now
tmp/closure-library/closure/
4) The code to get the closure compiler build was added in
misc/get_closure.pl. The compiler goes to
tmp/closure-compiler/compiler.jar
5) The version of the closure compiler is the latest build as
of this time: 20121212

Change-Id: I7e03ad7d6fe440430c5727cf56a956efed360d43
2013-01-25 17:13:19 +01:00
mpl e28418946c camlibot: use make full
Change-Id: If4a8e3ea7add16137263d25c7d9540d19e0116bd
2013-01-22 01:55:45 +01:00
Brad Fitzpatrick fb24b240cc dev-server: more verbose, build camdbinit lazily (speeds start-up)
Change-Id: I0a5dc255efd2cfcde7ff735a79ceeeb4b9965b08
2013-01-20 12:33:35 -08:00
mpl b8a8e86012 buildbot: now hits on http://localhost:3179/ui/new/ since home.html gone
Change-Id: I58d2f5b7fc06fc326e08d95daa69a1e6e5bd2753
2012-12-24 02:14:06 +01:00
mpl 2d094d4ea5 camlibot: print stdout as well on failure page
Change-Id: Iabe2734fb6013c62a19ead5a2232975a445dac32
2012-12-23 23:56:58 +01:00
mpl f59fe1d535 Merge "buildbot: now with history and prettier output" 2012-12-20 13:35:20 +00:00
mpl f45e6f5508 buildbot: now with history and prettier output
Change-Id: I863a5899024a74930bfa534f2ce79bcd083326fe
2012-12-19 15:49:56 +01:00
Brad Fitzpatrick c966fe8c12 Remove old cgo tests
Change-Id: Iebdfadd483e858b9127342fc35f21ea7da69da80
2012-12-16 20:43:48 -08:00
mpl 489068e277 buildbot
Change-Id: I6ae90b2ea75af6d0ca45905a5f2316cc94953b9e
2012-12-07 22:19:44 +01:00
mpl c2b746a086 pre-commit hook: warn about broken third party imports
Change-Id: Ib1315af2833a757093b36127b62d64abbd055963
2012-10-24 13:09:06 +02:00
Brad Fitzpatrick 3c80cc17f8 Move old broken dev-* scripts away.
Change-Id: Ide5dfe2dffc5d1af8f1c88be0a897c97932eb14c
2012-10-19 13:38:55 -07:00
mpl 4a184c84d5 pre-commit git hook:
-gofmt
-trailing space check

Change-Id: Icd63483b1873b21cd5ff6f00fff4b191095942ad
2012-10-16 18:18:46 +02:00
Brad Fitzpatrick e0d10d941f hack 2012-08-05 10:49:20 +10:00
Brad Fitzpatrick 1b63c44b4e Update all os.ENOENT references to ErrNotExist. Mostly docs/dead code.
Change-Id: I2bb4d5a9d9c610e8dce2309335d06046dbb1e049
2012-05-13 12:06:21 -07:00
Brad Fitzpatrick 136f0ab3b6 more helpful error message in devlib.pl
Change-Id: I6ce4b94cd772a2a5687188f886a638e9dd5b1ac2
2012-04-22 17:50:13 -07:00
Brad Fitzpatrick 0fa34e75b0 update dev-* scripts to use misc/devlib.pl and install binaries in gopath/bin/OS_ARCH
Change-Id: Iec928f786e7763a104d10f7e2a34a1bc6d948919
2012-03-27 10:37:21 -07:00
Brad Fitzpatrick 413cac1eb9 remove hack, now that http://code.google.com/p/go/source/detail?r=91c826464 is in
Change-Id: Ib8191696a7a8edbd3dde848bbdf4b5f8a84263e3
2012-03-27 09:17:16 -07:00
Brad Fitzpatrick 10cf23c700 Get the MySQL indexer working again.
It now uses the generic indexing layer, rather than its own schema.
Also, move it under pkg/index/, like mongo.
Also, link in mongo to the main binary.
Not using the tests yet (leaving for mpl :))

Change-Id: I47a2203ca6c0b5244cd458aedec46227c4363c62
2012-03-26 13:57:53 -07:00
Brad Fitzpatrick 284407ac8f Fixed site config.
Change-Id: Iee2226f4d6cb8c541de2a7800c4d4230c12a7953
2011-11-30 15:37:39 -08:00
Brad Fitzpatrick 81fa1f3199 test commit
Change-Id: Ie4e6f185895b04bc08539a2003f71faaf0675c19
2011-11-30 09:29:03 -08:00
Brad Fitzpatrick 331cae6e42 fixing email
Change-Id: I6980acf8deaa1d1dfa0660d16cf7193aa78ceeeb
2011-11-30 09:27:03 -08:00
Brad Fitzpatrick 6bfaf3b0b2 test
Change-Id: I14a9730dbcf84a22e2db8f63745297b362368282
2011-11-30 09:16:05 -08:00
Brad Fitzpatrick 9036922eda test
Change-Id: Ie7bf9effd9b5a6771aa06647738067225493867b
2011-08-14 19:54:38 -07:00
Brad Fitzpatrick 23498e85b6 sqlite: more windows work. not quite working yet.
Change-Id: I2f724ef8a923497d6d10d2aa2079d0c62c79b55f
2011-07-21 11:00:12 -07:00
Brad Fitzpatrick f349ccfeab sqlite: make sqlite3_os_init conditional, move guts to go_init_vfs
Change-Id: I5144911fbcdf9bbd7859a7c862773fa713338e5d
2011-07-20 18:33:13 -07:00
Brad Fitzpatrick d1f82c3464 sqlite: add place to put windows stuff
Change-Id: I53dd835401f824af8f2129a66016f0d23fcde793
2011-07-20 18:27:38 -07:00
Brad Fitzpatrick 4429eb8bbb more sqlite cleanup
Change-Id: Iacd48d581bcd4d60e34b1152ffe16ecf06077846
2011-07-20 18:02:19 -07:00
Brad Fitzpatrick 63e31b53a3 sqlite: rearrange a bit, from windows WIP port pain + learning
Change-Id: Ice1e49bca5955637c08528cece67cf6b0f0fd12e
2011-07-20 18:00:30 -07:00
Brad Fitzpatrick 19efe6b2e8 sqlite: don't need LDFLAGS -ldl, missing on Windows
Change-Id: Icae43e1843a5c3751ecd746b97a20161e145401f
2011-07-19 20:29:34 -07:00
Brad Fitzpatrick aa771ad925 sqlite: don't use non-portable *os.File.Fd(); not an int on windows
also, remove from fileMap on Close.

Change-Id: If5e44b84c3a876b05e678bc0ef65502bcbc2caf6
2011-07-19 20:26:08 -07:00
Brad Fitzpatrick 5ce7133f14 sqlite: remove the tempdir too
Change-Id: I49b22bf093a55b4d9bdfbe8fa9fa3e5001d822bb
2011-07-19 18:48:59 -07:00
Brad Fitzpatrick bc13dafec9 sqlite: start of better tests
Change-Id: I7106d4e1950e0152d83f672aacc78a4783acf940
2011-07-19 18:47:56 -07:00
Daniel Erat 0aebead810 sqlite: avoid truncating files on SQLITE_OPEN_CREATE. whoops.
Change-Id: If64057ed9c603c42f4e92af54757f57209cc53d4
2011-07-20 01:45:26 +00:00
Daniel Erat 8709a77644 sqlite: support getting time and deleting
Change-Id: I7abef164a64e2358134cbbf076adf3b225145033
2011-07-20 01:35:57 +00:00
Daniel Erat f5b1dc96fd sqlite: minor cleanup; make test do a bit more
Change-Id: I7ad67a929ca6a439577610c383214622103dfd45
2011-07-20 01:03:19 +00:00
Daniel Erat 746b16216b sqlite: implement write. simple test passes now!
Change-Id: I260c71bdf4fcf6c35cb9caf73f430a31cdeebb78
2011-07-20 00:43:21 +00:00
Daniel Erat 77d921371c sqlite: fix args passed to exec call
Change-Id: Id24ad8d3baadf8db4324ad006095fb14c93bb892
2011-07-20 00:10:04 +00:00