Commit Graph

37 Commits

Author SHA1 Message Date
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 335f6416b9 buildbot: add some context to error
Change-Id: Ia0733909ffd4d9e9451ac663cb7ece799169ab7c
2014-03-04 18:53:05 +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
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
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
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
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
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
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
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
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
mpl d9649744b9 buildbot: more idiomatic chan timeout, and chan reuse.
Change-Id: I3b4a1e69c6b2c3d3889dbb62067d53cebf4eb8aa
2013-06-04 15:16:02 +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
mpl e28418946c camlibot: use make full
Change-Id: If4a8e3ea7add16137263d25c7d9540d19e0116bd
2013-01-22 01:55:45 +01: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 f45e6f5508 buildbot: now with history and prettier output
Change-Id: I863a5899024a74930bfa534f2ce79bcd083326fe
2012-12-19 15:49:56 +01:00
mpl 489068e277 buildbot
Change-Id: I6ae90b2ea75af6d0ca45905a5f2316cc94953b9e
2012-12-07 22:19:44 +01:00