Alvaro Saurin
91f27ddd66
Removed weavehosts
2015-10-16 11:47:07 +02:00
Matthias Radestock
1d00bdd2a4
a better way to restrict coverage
...
this better fixes #1524 .
2015-10-12 18:04:07 +01:00
Matthias Radestock
a31ccef99b
only produce coverage for packages under github.com/weaveworks/weave
...
Fixes #1524 .
2015-10-12 16:06:26 +01:00
Tom Wilkie
58dec7334b
Merge branch '1.1'
2015-10-01 08:23:15 +00:00
Tom Wilkie
0b7af28c86
Typo in Makefile.
2015-10-01 08:21:55 +00:00
Tom Wilkie
f3dc681f61
Only clean weave packages.
2015-09-30 10:15:50 +00:00
Tom Wilkie
f3360e61e1
Remove cover tool, this lives in tools.git now.
2015-09-30 08:21:12 +00:00
Tom Wilkie
5208dcd67e
Review feedback
...
- Use git submodule for tools.
- Update Makefile to use submodules.
- Put submodule at tools/
- Tidy up some obsolete references to tools in .gitignore.
2015-09-30 08:21:08 +00:00
Tom Wilkie
6f7d4a7a01
Use lint from tools.git
...
- Do lint first, on circle.
2015-09-30 08:20:56 +00:00
Tom Wilkie
958a3bbd99
Use test script from tools.git
2015-09-30 07:42:43 +00:00
Tom Wilkie
2b4fd738da
Review feedback
2015-09-28 09:05:10 +00:00
Tom Wilkie
f9de6df426
Publish latest images from CI on successful builds.
...
This time rebuild without insturmentation first.
2015-09-28 08:27:21 +00:00
David Wragg
a67b9f566a
Use consistent options for all "go get"/"go build" invocations
...
Without this, building with go-1.5 fails with
go get ./prog/weavewait
go install net: open /usr/local/go/pkg/linux_amd64/net.a: permission denied
This makes the options passed too "go get"/"go build" consistent for
all executables. So it should be safe with go-1.4.
2015-09-20 19:58:04 +01:00
Paul Bellamy
dbf39403d3
[proxy] Autoconfigure TLS based on daemon settings
...
With this on OSX you can:
```sh
$ boot2docker init
$ boot2docker up
$ eval $(boot2docker shellinit)
$ weave launch
$ eval $(weave env)
```
2015-09-16 10:44:17 +01:00
David Wragg
12324e3550
Revert "Make weave build under go1.5; use our build flags for go get, and force stuff to be static."
...
This reverts commit 5860492a38 .
Although the build works under 1.4, this change had an unfortunate
impact (see #1412 ).
2015-09-11 13:31:15 +01:00
Tom Wilkie
5860492a38
Make weave build under go1.5; use our build flags for go get, and force stuff to be static.
2015-09-07 14:45:17 +00:00
Adam Harrison
ab9d1777a1
Support make UPDATE_LATEST=false publish
...
When publishing pre-releases via the release script we do not want to
modify the `latest` tag in DockerHub - specifying UPDATE_LATEST=false
causes publish to push to $WEAVE_VERSION only. Omitting the flag
entirely retains the existing behaviour for backwards compatability.
2015-09-01 17:04:11 +01:00
Bryan Boreham
3d25620d13
In proxy, rewrite /etc/hosts from 'weave attach', via new utility weavehosts
2015-08-27 15:03:41 +01:00
Bryan Boreham
6e89b036e2
Wait for ethwe via netlink, not via polling or signals
...
('docker kill' breaks restart policy)
2015-08-27 15:03:41 +01:00
Matthias Radestock
31a490bfe6
ensure that make publish publishes up-to-date images
...
otherwise the git revision based image tag doesn't match what is in
the image.
2015-08-21 09:34:08 +01:00
Adam Harrison
00ecff09f7
Move status HTTP handlers into prog/weaver/http.go
2015-08-11 12:01:27 +01:00
Matthias Radestock
de6f5a93e8
refactor: extract build flags
2015-08-05 11:11:57 +01:00
Tom Wilkie
669a0db528
Run integration tests in parallel when possible.
2015-07-29 17:28:58 +00:00
Tom Wilkie
6fe69590c4
Add coverage to proxy for integration tests.
2015-07-29 12:06:29 +00:00
Tom Wilkie
8b061fd555
Gossip-based DNS embedded in the router.
...
- Nameserver holds a sorted list of (hostname, peer, container id, ip) tuples.
- Entries are gossiped using topology gossip / broadcast - only new/updated entries
are propogated as expected.
- Entries for a given peer are removed when the connection to the peer is lost.
- Entries are tombstoned when containers die. Tombstones are kept for 10mins,
as they do not need to survive partition, only gossip propagation delay.
2015-07-14 16:00:38 +00:00
Tom Wilkie
01f7201a9e
Remove legacy WeaveDNS code.
2015-07-14 16:00:28 +00:00
Tom Wilkie
499d65e715
Build cover tool by default, and do go get -t for tests, irregardless of $SLOW
2015-07-14 10:50:34 +00:00
Tom Wilkie
13f1239a3e
Various improvements to unit test running
...
- units.sh should exit on error.
- Add race detector to unit test runner.
- Use local testing/cover/cover tool in gen_coverage_report.sh and units.sh
- Use the scheduler to parallelise the unit tests.
- Make test run id a string and differentiate between unit runs and integration runs in the scheduler.
- Pipe circle env vars through to build container so we can detect when to use the scheduler
- Add python requests to the weave build container.
- Quote test names in urls, make flask handle url segments with slashes in.
2015-07-13 09:33:52 +00:00
Matthias Radestock
c22d824db8
.gitignore and clean up coverage reports
2015-07-11 11:57:01 +01:00
Tom Wilkie
32b2ec4038
Run unit tests in circle and include their coverage in the report. Report coveralls.io from Circle.
2015-07-10 18:19:50 +00:00
Tom Wilkie
f5186e74c0
Review feedback
2015-07-10 15:33:00 +00:00
Tom Wilkie
bf814739ba
Reduce repetition in Makefile.
2015-07-10 15:03:54 +00:00
Tom Wilkie
00a7490a1d
Code coverage for smoke tests.
...
Allow non-circle people to build coverage reports.
2015-07-10 14:45:14 +00:00
Matthias Radestock
0f67dbd8bd
Merge branch '1.0'
2015-07-02 11:48:22 +01:00
Matthias Radestock
3bd5ae56f0
fix make update
...
Trying to build the thing for which we want to fetch the dependencies
is rather silly.
2015-07-02 11:46:48 +01:00
Bryan Boreham
6403e7a11c
Add missing rule to rebuild netcheck when its source changes
2015-07-01 11:13:40 +01:00
Matthias Radestock
635a3e5b26
cosmetic: remove attempt at pretty shell fragment
...
there is just no way to format this so it looks good everywhere, due
to different tab widths.
2015-06-25 19:51:39 +01:00
Matthias Radestock
82da45a638
go get test dependencies
...
The previous 'fix' wasn't working since it `go get -t`'ed the dirs
where our executables live. Which don't contain any tests.
2015-06-25 19:31:38 +01:00
Bryan Boreham
7c741d6f7e
Extend 'go get' to tests
...
The `-t` flag asks Go to fetch anything required for tests, which is more necessary now we have added testify.
2015-06-25 16:42:53 +01:00
Matthias Radestock
ae1805de76
separate the image build and export phases
...
That way the export can be just a single tar, which is more
convenient. And without introducing unnecessary image builds.
2015-06-24 02:54:45 +01:00
Alvaro Saurin
a1cb5b16a6
Run the unit tests with GOMAXPROCS=4
2015-06-16 14:58:53 +02:00
Bryan Boreham
0e6569d78c
New program netcheck to check if network overlaps routes
2015-06-11 17:27:20 +01:00
Paul Bellamy
c31358259f
[proxy] Add tls support
...
Caveats:
* TLS files must be present on the target server (and readable)
* TLS file paths cannot contain spaces
* TLS file paths must be absolute (i.e. cannot be relative)
* Bash argument parsing is terrible
2015-06-05 13:23:14 +01:00
Paul Bellamy
92444a75eb
[proxy] Use USR2 signal to tell weavewait when to continue
...
There was a race condition with containers running and exiting before
`weave attach` was finished, which would cause an error.
2015-06-02 15:48:49 +01:00
Matthias Radestock
5b04efac7c
move weaver
2015-06-02 14:04:02 +01:00
Matthias Radestock
485db6e48b
move weavedns
2015-06-02 13:51:19 +01:00
Matthias Radestock
ee28cf91e1
move weaveexec
2015-06-02 13:46:02 +01:00
Matthias Radestock
8d4a97fed5
move sigproxy, weaveproxy, weavewait
2015-06-02 13:19:16 +01:00
Matthias Radestock
8dc5ae662a
simplify dependencies
...
This isn't as precise, but these common dependencies rarely change.
2015-05-28 17:16:22 +01:00
Matthias Radestock
ec6a251b7c
fix dependencies
2015-05-28 17:10:42 +01:00