Friday, September 21, 2012

Jenkins/Hudson Integration

The most dominate CI system is Jenkins (was Hudson).

Jenkins has a nice integration with xunit XML output for tests. I wrote a little utility that converts go test -v output to xunit compatible XML called go2xunit. (install with the usual go get bitbucket.org/tebeka/go2xunit).

The view on Jenkins (tests are failing intentionally) is like the below.


When you click on the tests you get



There's a demo directory with an example bash script. The project configuration looks something like the below. Note the "Execute Shell" command and "Publish JUnit tests report" sections.


Happy Testing.

Thursday, September 6, 2012

seamless - now with multiple backends

Updated seamless to support multiple backends (thank you Fabrizio for helping out).

The new API is:
  • /set?backends=host:port,host:port
  • /add?backend=host:port
  • /remove?backend=host:port
  • /get
The front end will round-robin between the backends.

You can install either via go get bitbucket.org/tebeka/seamless or by downloading the binaries.
/* MIKI: Analytics */