Commit Graph

45 Commits

Author SHA1 Message Date
Tom Wilkie
f154e7a483 Add connection tables to details panel 2016-03-03 16:17:55 +00:00
Tom Wilkie
7abb296372 Merge pull request #1069 from weaveworks/1053-use-default-shell
Try to figure out the most suitable shell to use
2016-03-02 10:58:31 +00:00
Alfonso Acosta
46b4fa39ec Integration test 2016-03-01 20:36:56 +00:00
Tom Wilkie
bc48a48133 Split the internet node for incoming vs outgoing connections. 2016-03-01 14:11:47 +00:00
Tom Wilkie
96830942ed Plumb through custom weave domains. 2016-02-25 19:39:08 +00:00
Tom Wilkie
5f0b24e371 Disable checkpointing in tests. 2016-02-25 09:37:03 +00:00
Tom Wilkie
458c5aae39 Bump template name to get latest version of docker. 2016-02-22 12:14:36 +00:00
Tom Wilkie
0349c6f2e0 Update integration tests 2016-02-01 06:54:19 -08:00
Paul Bellamy
56122dd0cc Details panel backend redesign
Megasquish:
  [app] remove unused edge endpoint
  [WIP] refactoring node details api endpoint
  [WIP] plumbing the children through the rendering process
  adding IDList.Remove and StringSet.Remove
  [WIP] working on adding parents to detailed node renderings
  WIP UI components with mock backend data for new details
  grouping children by type
  UI components for node details health and info
  metric formatters for details panel
  Column headers and links for details table
  [WIP] started on rendering node metadata and metrics in the detail view
  DetailedNode.LabelMajor -> DetailedNode.Label
  rendering decent labels for parents of detailed nodes
  render metrics onto the top-level detailed node
  removing dead code
  Links to relatives
  metrics have a Format not Unit
  Show more/less actions for tables and relatives
  adjusted metric formatter
  TopologyTagger should tag k8s topology nodes
  make renderablenode ids more consistent, e.g. container:abcd1234
  working on rendering correct summaries for each node
  adding report.Node.Rank, so that merging is independent of order
  rendering children and parents correctly
  output child renderableNode ids, so we can link to them
  add group field to metrics, so they can be grouped
  Refactored details health items to prepare for grouping
  add metrics to processNodeSummaries
  hide summary section if there is no data for it
  fixing up tests
  moving detailed node rendering into a separate package
  Node ID/Topology are fields not metadata
    - This way I think we don't have to care about Metadata being non-commutative.
    - ID and topology are still non-commutative, as I'm not sure how to sanely
  merge them, but it's possible we don't care.
  host memory usage is a filesize, not a percent
  working on fixing some tests
  adding children to hosts detail panel
    - Had to redo how parents are calculated, so that children wouldn't interfere with it
    - have to have the host at the end because it is non-commutative
  only render links for linkable children (i.e. not unconnected processes)
  resolving TODOs
  fixing up lint errors
  make nil a valid value for render.Children so tests are cleaner
  working on backend tests
  make client handle missing metrics property
  Stop rendering container image nodes with process summaries/parents
  fix parent link to container images
  Calculate parents as a set on report.Node (except k8s)
  refactoring detailed.NodeSummary stuff
  removing RenderableNode.Summary*, we already track it on report.Node
  working on tests
  add Columns field to NodeSummaryGroup
  fixing up render/topologies_test
  fix children links to container images
  get children of hosts rendering right
  working on host renderer tests
  Change container report.Node.ID to a1b2c3;<container>
  The id should be globally unique, so we don't need the host id.
    This lets the kubernetes probe return a container node with the pod id,
    which will get merged into the real containers with other reports. The
    catch is that the kubernetes api doesn't tell us which hostname the
    container is running on, so we can't populate the old-style node ids.
  change terminology of system pods and services
  Fix kubernetes services with no selector
  Fixes handling of kubernetes service, which has no pods
  fix parent links for pods/services
  refactor detailed metadata to include sets and latest data
  fixing up host rendering tests
  fleshing out tests for node metadata and metrics
  don't render container pseudo-nodes as processes
  Update test for id format change.
2016-01-19 16:39:37 +01: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
8e4d3a4e8b Enable sharding for integration tests. 2016-01-12 21:54:49 +00:00
Tom Wilkie
bf91d5b8ba Use gce.sh, config.sh etc from tools. 2016-01-12 21:54:42 +00:00
Tom Wilkie
511daca1ca Wait for correct application. 2016-01-12 21:54:42 +00:00
Tom Wilkie
abf8accea2 Increase test replicas. 2016-01-12 21:54:42 +00:00
Tom Wilkie
b255a39517 Fix tests. 2016-01-07 14:50:56 +00:00
Tom Wilkie
57a06cb848 Review feedback 2016-01-06 12:46:25 +00:00
Tom Wilkie
d101b0fced Add integration test for procspy edges. 2016-01-06 12:46:25 +00:00
Tom Wilkie
abebb0f197 Build new test VM (to pickup latest Docker version). 2016-01-04 16:10:27 +00:00
Tom Wilkie
8d1307764f Update to deal with weave/499d6312b7e6159ab94c116127b9c020fe109118 2015-11-10 13:17:37 +00:00
Tom Wilkie
8f957c4f13 Add docker lifecycle controls, containers in states other that running, and a filter for those containers.
Also add integration test for container controls.
2015-11-06 17:39:54 +00:00
Tom Wilkie
9a9ef72ad6 Don't run integration test in parallel for now 2015-11-05 15:44:55 +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
a5017c8d33 Remove spurious test. 2015-11-03 15:39:31 +00:00
Tom Wilkie
f3b66428db Don't use fast datapath for our inter-container connection tests. 2015-10-23 16:35:18 +00:00
Tom Wilkie
1e22629448 Merge pull request #577 from weaveworks/520-edge-bug
Include host scope for container joins based on IP.
2015-10-21 11:59:31 +01:00
Tom Wilkie
7e1a653349 Add status bar to setup.sh, compress the ssh tunnel to make it quicker. 2015-10-20 15:48:46 +00:00
Tom Wilkie
b77fbcdaf1 Make scope work with weave master. 2015-10-20 09:48:12 +00:00
Tom Wilkie
a61800be0f Rejig setup.sh to ensure we use the right version of weave. 2015-10-17 14:04:39 +00:00
Tom Wilkie
1577b90c61 Review feedback 2015-10-12 11:18:09 +00:00
Tom Wilkie
ffedae64c6 Make tests more reliable
- Increase waits for system to settle
- Add polling for containers and edges
- Tabs formatting in setup.sh
- 300_internet_edge: Don't let curl fail in subshell (main source of flakyness)
- Make last param (count) optional for has_container (from Paul)
2015-10-10 10:06:34 +00:00
Tom Wilkie
8aa7b37e7e Add tests for short-lived connection between hosts and containers. 2015-10-10 10:06:23 +00:00
Tom Wilkie
ab83f41dba Add integration test for short lived connections from the internet. 2015-10-02 10:19:23 +00:00
Tom Wilkie
88686b5c6c Review Feedback 2015-09-30 13:40:25 +00:00
Tom Wilkie
8a8520ffc9 Make integration test check API responses contain expected containers.
Also
- Add test for clustering without weave.
- Update test template for docker 1.8
- Prefetch images
- Stop all containers when test finishes.
- Add small sleep after weave launch, and supply all the hosts to ensure IPAM works correctly.
2015-09-30 11:54:15 +00:00
Peter Bourgon
36b743fe1f probe, app: reliable shutdown
- Restructure main funcs for clean defer-stack-unwinds
- Fix Docker container to handle signals properly
- Introduce runsvinit for container init process
- Integration test
2015-09-29 11:45:12 +02:00
Paul Bellamy
ff86370df8 fixing and simplifying circle build
The integration tests were using two different versions of weave. One to
launch the weave container, and another used by scope.
2015-08-11 14:14:25 +01:00
Paul Bellamy
8aede5aaf9 Fixing the build
* override the weave template and hosts count for gce
* weave gce script wants jq as well now
* build the new weave go test runner
2015-07-31 10:31:07 +01:00
Paul Bellamy
799e5b2ace add integration test for launching scope without weave installed 2015-07-20 15:53:08 +01:00
Paul Bellamy
c92773f16f working on clustering test 2015-06-30 14:46:31 +01:00
Paul Bellamy
ff9771f112 initial integration test setup
Integration tests are only run on circle. They checkout the weave
project, and use test helpers from there.

There are just a few basic tests for now, to confirm it works.
2015-06-29 15:40:40 +01:00
Peter Bourgon
2ba9dab7bd integration: becomes experimental; remove support in bin/test 2015-05-19 10:05:05 +00:00
Tom Wilkie
4598d37ecd Add circle ci config and test script. 2015-05-19 10:05:04 +00:00
Peter Bourgon
5ad24319f2 Build instructions and fixes 2015-05-19 10:03:01 +00:00
Peter Bourgon
0e19360215 Redo import statements 2015-05-19 10:02:59 +00:00
Tom Wilkie
d50e827fd5 Intial commit 2015-05-19 10:02:02 +00:00