112 Commits

Author SHA1 Message Date
Tom Wilkie
25e02d2d26 Turn off GC for builds. 2016-02-24 11:17:11 +00:00
Alfonso Acosta
c741ee74d2 Pass correct tags to go run when invoking codecgen 2016-02-23 18:29:18 +00:00
Paul Bellamy
f24ebc96b4 Merge pull request #1000 from weaveworks/reduce-codec-garbage
Reduce amount of objects allocated by the codec
2016-02-23 10:23:04 +00:00
Tom Wilkie
03099176da Refactor Makefile a little. 2016-02-22 15:16:45 +00:00
Alfonso Acosta
996062d64b Build github.com/ugorji/go/codec with -tags unsafe
See https://github.com/ugorji/go/issues/143#issue-134950331
2016-02-22 13:45:02 +00:00
Paul Bellamy
e6b60e3e6d Merge pull request #966 from weaveworks/readme-dependencies
added note about docker and go dependency to the readme
2016-02-19 11:07:34 +00:00
Alfonso Acosta
6ac176a492 Remove github.com/2opremio/go-1/codec
* Bump github.com/ugorji/go/codec, to get fixes which make
  github.com/2opremio/go-1/codec unnecessary

* Remove github.com/2opremio/go-1/codec

* Remove type embeddings to avoid the problem explained at
  https://github.com/ugorji/go/issues/141#issuecomment-185450157
2016-02-18 12:47:06 +00:00
Alfonso Acosta
359919b456 Review comments 2016-02-17 13:18:17 +00:00
Alfonso Acosta
9c368c4e84 Implement Selfers for all render types
To workaround https://github.com/ugorji/go/issues/141
2016-02-16 23:52:32 +00:00
Paul Bellamy
2fc05672db containerize build of prog/static.go 2016-02-16 13:55:51 +00:00
Alfonso Acosta
0d917b2d8b Use github.com/ugorji/go/codec/ for wiring messages
* New encoding format:
  * Msgpack reports between probe<->app (smaller representation, faster to
    encode/decode).
  * Still use JSON between app<->UI (try to avoid making javascript deal with
    mspack).

  The app still suports publishing reports in both gob and JSON, not braking
  backwards compatibility.

* Use compile-time generated marshallers/unmarshallers for higher performance. In
  order to be able to skip code-generation for certain types, I included
  https://github.com/2opremio/go-1/tree/master/codec/codecgen instead of
  upstream until https://github.com/ugorji/go/pull/139 is merged.

* Encode/decode intermediate types using github.com/ugorji/go/codec.Selfer
  for higher performance and reducing garbage collection (no temporary buffers).
2016-02-16 06:31:31 +00:00
Simon
0ebefe02d6 Merge pull request #901 from weaveworks/900-fix-building-outside-container
Fixes building scope outside of a container.
2016-02-15 17:30:37 +01:00
Simon Howe
9b7bd64f95 Don't use make's export directive for GO15VENDOREXPERIMENT 2016-02-11 23:04:34 +07:00
Simon Howe
abba6cfb65 Fixes building scope outside of a container. 2016-02-02 13:01:12 +01:00
Tom Wilkie
f4c582a7b3 Don't need sudo when DOCKER_HOST is tcp. 2016-01-29 14:41:25 -08:00
Tom Wilkie
68a3748f01 Don't allocate lots of docker.Stats structs, do some copying instead 2016-01-29 11:38:55 -08:00
Tom Wilkie
0565479e8c Build example app in container. 2016-01-16 11:56:34 -08:00
Tom Wilkie
baec4688cb Various improvements to build & tests
- Fix broken wait in tests.
- Run lint in the build container.
- Merge two quick steps in the circle plan.
- Increase number of test VMs to 3 (again).
2016-01-15 10:00:41 -08:00
Tom Wilkie
4ea7453008 Update Makefile inline with some comments from weave's build. 2016-01-11 11:37:23 +00:00
David Kaltschmidt
bd270e5ff4 Backout: Remove backend container dep for non-container builds
Make is called recursively, once outside then inside the container
2016-01-07 16:18:26 +01:00
Tom Wilkie
b89deb6aa9 Review feedback 2016-01-06 11:48:29 +00:00
Tom Wilkie
696a50fd27 Don't -i for different architectures. 2016-01-04 16:48:41 +00:00
Tom Wilkie
d6052973af Pass -i to go build to speed up builds. 2016-01-04 16:48:41 +00:00
David Kaltschmidt
372c611873 Remove backend container dep for non-container builds 2015-12-30 13:45:33 +00:00
Tom Wilkie
949ae6f807 Review feedback 2015-12-09 12:45:13 +00:00
Tom Wilkie
c749f5aa33 Merge probe and app binaries, run with ./scope probe or ./scope app. 2015-12-09 11:00:42 +00:00
Tom Wilkie
c317cff86e App: Rename package main->app, put main.go in prog/app 2015-12-07 14:53:28 +00:00
Paul Bellamy
269a11759f makefile should build app/static.go when needed
- Add non-containerised build for UI.
- Update README for new build steps.
2015-12-07 14:53:28 +00:00
Tom Wilkie
045a1feba0 Update the docker version we embed into the scope image to 1.6.2 in sync with weave 1.3 changes. 2015-11-30 09:38:42 +00:00
Tom Wilkie
4e3ab2d45b Update makefile. 2015-11-12 14:54:10 +00:00
Paul Bellamy
8f63d7be7f Metrics plumbing for reports.
- base load graph x-axis on data, not a hardcoded window
- format memory dynamically to scale
- add some tests for the immutability of metrics
- use ps.List for Sample storage, so it is immutable. Have to implement custom marshalling
- adding tests for report.Metrics
- check the ordering of the json samples
- Make the nil value for Metrics valid.
- Sort samples from oldest to newest on the wire.
2015-11-11 17:16:13 +00:00
Paul Bellamy
92ec7d9397 Move probe main.go to prog/probe/, break out a probe struct with appropriate responsibilities.
Also adds test for probe 'engine'
2015-11-09 16:25:28 +00:00
Tom Wilkie
1ad7b4fce5 Speed up tests on circle.
- Ensure we use up to date build container when running tests.
- Parallelise host setup for integration tests.
- Pass some more circle env vars through to ./tools/tests so the scheduler works.
- Gather coverage from multiple shards.
- Create files as the right owner inside the container.
- Parallelise the circle.yaml
- Parallelise the intergration tests using existing machinery
- Build experimental in parallel.
- Use custom scheduler prefix for integration tests, so schedules don't clash with weave.
2015-11-04 15:35:21 +00:00
Tom Wilkie
43f6cf7114 Fix build warning with go1.5 2015-11-03 17:25:39 +00:00
Tom Wilkie
bcd346ab5b Release script should use make tests to run tests. 2015-11-03 17:25:39 +00:00
Tom Wilkie
3a4b727ec4 Propagate SCOPE_VERSION when building in a container. 2015-11-02 14:52:31 +00:00
Tom Wilkie
e0cea0e2b1 docker run -ti is problematic for automation. 2015-10-29 14:15:39 +00:00
David Kaltschmidt
e2d488182d JS test dirs are now inlined 2015-10-26 17:51:41 +00:00
Tom Wilkie
b17596111e Don't go get when running the tests. 2015-10-26 16:59:39 +00:00
Tom Wilkie
0c790b966e sudo -E so environment variables (like GOOS and CIRCLECI) are passed through to docker 2015-10-26 16:44:41 +00:00
Tom Wilkie
62aed75550 Fix couple of minor typos. 2015-10-26 15:42:06 +00:00
Tom Wilkie
18a1354075 Add make tests target, which runs tests inside build container. 2015-10-26 15:23:00 +00:00
Tom Wilkie
c05b76373f Review feedback 2015-10-26 14:23:30 +00:00
Tom Wilkie
147db96567 Make the build-in-container vs not clearer to make, so it doesn't always rebuild the exes. 2015-10-26 14:02:39 +00:00
Tom Wilkie
e8c96a0242 Turn on GO15VENDOREXPERIMENT in build container; don't go get. 2015-10-24 10:24:59 +01:00
Peter Bourgon
a48b6d4d1e Let's not squash. 2015-10-23 16:35:46 +00:00
Tom Wilkie
0288b3151b Use gocertifi instead of random ca-certs. 2015-10-23 16:35:41 +00:00
Tom Wilkie
7fd5a315e3 Build inside the build container, using go1.5, by default
Also build for GOOS=darwin and GOARCH=arm
2015-10-23 16:35:11 +00:00
Peter Bourgon
303bed1e2b Makefile: fix indentation 2015-10-23 14:38:17 +01:00
Paul Bellamy
a1466cb3fc Review Feedback 2015-10-20 14:26:27 +01:00