Commit Graph
5838 Commits
Author SHA1 Message Date
Matthias Radestock 615cb6af59 simplify error handling 2017-12-24 08:43:24 +00:00
Matthias Radestock 794c345aee cosmetic: more logical function order 2017-12-24 08:33:13 +00:00
Matthias Radestock 49e4c7b0b6 make report upgrade benchmark reflect new phasing
Since #2979 upgrading happens prior to merging.
2017-12-24 08:29:37 +00:00
Matthias Radestock 43fadceb85 cosmetic: better function grouping 2017-12-24 08:18:12 +00:00
Matthias Radestock ad72a2cf2f refactor: rename topology rendering benchmarks 2017-12-24 08:16:57 +00:00
Matthias Radestock fc66827af7 refactor: don't set shape based on unitialised topology
This doesn't make any difference to the outcome - we were simply
setting the shape in the NodeSummary to "", which is what it starts
out as - but looks less weird in the code.
2017-12-23 22:39:08 +00:00
Matthias Radestock d861b41837 refactor: inline summarisation of metadata, metrics, tables
This removes a bunch of duplication and scattering of little pieces of
code.
2017-12-23 22:34:45 +00:00
Matthias Radestock 651e42e54e fix accidental report fixture modification
Report.Copy() shallow-copies the nodes in Report.Nodes. Hence
Node.Metrics is shared between the original and the copy. Hence bad
things happen when modifying it.

This bug has laid dormant because by luck other tests in detailed_test
involving metrics are executed first.
2017-12-23 22:21:24 +00:00
Bryan BorehamandGitHub 9c01613db1 Merge pull request #2993 from weaveworks/golang-1-9-2
Upgrade Go to 1.9.2
2017-12-21 22:53:41 +00:00
Matthias RadestockandGitHub 7459014c63 Merge pull request #2997 from weaveworks/no-image-host-propagation
don't map image adjacencies to hosts
2017-12-21 10:08:37 +00:00
Matthias Radestock 724ea0c230 refactor: extract common code of joinResults.addChild variants 2017-12-21 10:05:56 +00:00
Matthias Radestock 9713a156c7 refactor: extract helper 2017-12-21 10:05:56 +00:00
Matthias Radestock 7d261d0ca0 don't map image adjacencies to hosts
it's just wrong
2017-12-21 10:05:56 +00:00
Matthias RadestockandGitHub dd2dfd54f5 Merge pull request #2996 from weaveworks/multi-join
cope with one->many topology mappings
2017-12-20 11:38:24 +00:00
Matthias Radestock ee4a56e8ad optimse common one->one mapping case
one->many is much rarer
2017-12-19 19:34:52 +00:00
Matthias Radestock 25eeec0227 enhance joinResult to handle mapping one node to multiple nodes 2017-12-18 21:13:15 +00:00
Matthias Radestock f920f1b9d2 refactor: extract helper to add joinResult mapping 2017-12-18 18:41:52 +00:00
Matthias RadestockandGitHub e2b1bfb7dd Merge pull request #2994 from weaveworks/simplify-join-results
simplify `joinResults`
2017-12-18 17:33:39 +00:00
Roberto BruggemannandGitHub 7748e7dd0d Merge pull request #2990 from weaveworks/no-weave-tip
Suggest how to disable weave errors and warnings
2017-12-18 10:18:01 +00:00
Matthias RadestockandGitHub acb8951e98 Merge pull request #2992 from weaveworks/remove-node-edges
remove Node.Edges
2017-12-17 18:44:03 +00:00
Matthias Radestock 315b05062f remove vestiges of edge metadata from comments 2017-12-17 18:38:36 +00:00
Matthias Radestock b540a1639b fix comment: overlay edges *are* present 2017-12-17 18:37:14 +00:00
Matthias Radestock ba7af78cfa ensure result adjacencies start empty
Any existing list would be mutated by result(), which is bad.

Note that all the existing newJoinResults() call sites pass in nodes
with no adjacencies, so this is purely a safety measure.
2017-12-17 18:24:32 +00:00
Matthias Radestock a6f24fc151 remove superfluous lookups
Since we seed the joinResult with the nodes from the topology we are
mapping to, we know the 'create' function is only called when there is
no node with the specified id.

This neatly makes the 'create' function only do what it says,
i.e. return _new_ nodes.
2017-12-17 18:24:32 +00:00
Matthias Radestock ac87c2b6e8 optimise & simplify node propagation in joinResult
Instead of copying unmatched nodes at the end, and matched nodes when
we encounter them, copy *all* nodes at the beginning.
2017-12-17 18:14:48 +00:00
Matthias Radestock 4dde1ce715 optimise and align endpoints2Hosts
Avoid a reduce step by joining the host topology in endpoints2Hosts.

This is similar to what we do in connectionJoin and
endpoints2Processes.
2017-12-17 18:14:47 +00:00
Matthias Radestock f16908aea9 refactor: fix up adjacencies as part of joinResult.result() 2017-12-17 18:14:47 +00:00
Matthias Radestock e5117a652f remove superfluous fixupAdjacencies calls
fixupAdjacencies fixes up adjancencies of mapped nodes. The nodes at
the call sites we are removing aren't mapped.
2017-12-17 18:14:30 +00:00
Matthias Radestock cc859926ef tiny simplifying refactor 2017-12-17 15:36:28 +00:00
Matthias Radestock e93b69cf10 remove Node.Edges
It is unused and none of the adjacency mapping code in the renderer
takes any notice of it. Removing this shrinks the report size.

Edges were introduced in #838. At the time we had an experimental
packet sniffer under experimental/sniff/sniffer.go. That got removed
in #1646.

We can resurrect this if we ever decide to add meta data to edges.
2017-12-17 13:28:22 +00:00
Matthias RadestockandGitHub d428b69492 Merge pull request #2991 from weaveworks/simplify-render-map
refactor: drop networks from render.MapFunc
2017-12-17 11:09:34 +00:00
Matthias Radestock 0c894e9446 refactor: drop networks from render.MapFunc
All the MapFuncs that needed networks have been elevated to Renderers.
2017-12-17 00:18:12 +00:00
Bryan Boreham 3db91bced4 Upgrade Go to 1.9.2 2017-12-16 23:24:22 +00:00
Roberto Bruggemann ea7853a612 Suggest how to disable weave errors and warnings
This applies when running scope deployments without Weave Net.
2017-12-15 18:08:37 +00:00
Roberto BruggemannandGitHub d5917c4691 Merge pull request #2987 from weaveworks/release-tagging
Tag images at build time
2017-12-15 17:06:44 +00:00
Matthias RadestockandGitHub ae09b1c278 Merge pull request #2978 from weaveworks/2943-map-nats
don't exclude NATed connections in mapping to processes

Fixes #2943
2017-12-15 12:14:37 +00:00
Roberto BruggemannandGitHub dacf284b38 Merge pull request #2988 from weaveworks/release-1.6
Release 1.6.7
2017-12-15 11:55:57 +00:00
Matthias Radestock 20138b9218 don't exclude NATed connections in mapping to processes
We used to ignore source endpoints that are associated with multiple
destination endpoints, which is a partial workaround for our inability
to correctly represent two connections from the same source ip/port
but different processes, or the same destination ip/port but different
processes. See #2665.

However, that condition is too coarse. In particular, we end up
ignoring endpoints that are connected to NATed destinations, since the
latter are represented by two (or more) endpoints.

The change here corrects that.
2017-12-15 11:40:43 +00:00
Roberto Bruggemann fc53f9e5a6 Update Scope version in docs to 1.6.7 v1.6.7 2017-12-15 11:13:36 +00:00
Roberto Bruggemann 30dacacfaa Add release 1.6.7 to CHANGELOG 2017-12-15 11:13:32 +00:00
Roberto Bruggemann be5f216342 Tag images at build time
`push_images` used to tag and publish the latest built image, no matter what version or what branch or tag was checked out.
Since `bin/release build` and `bin/release publish` can be run at different times, it was possible for the latest built image to change. At which point `bin/release publish` would tag and publish an intended image.

Moving image tagging at build time will prevent this from happening again.
2017-12-15 10:27:54 +00:00
Filip BarlandGitHub 6d156091b1 Merge pull request #2986 from weaveworks/bump-ui-components-to-include-decompose-time-travel
Bump ui-components to include decomposed Time Travel
2017-12-14 16:59:17 +01:00
Filip Barl 1db7f42f5c Extended TimeTravelWrapper with dropdown show/hide CSS animation. 2017-12-14 16:23:10 +01:00
Filip Barl bee6863980 Bumped ui-components minor version. 2017-12-14 16:00:08 +01:00
Matthias RadestockandGitHub eaa394259d Merge pull request #2865 from weaveworks/intern-map-keys
"Intern" map keys
2017-12-14 14:19:53 +00:00
Matthias RadestockandGitHub 46551998cc Merge pull request #2983 from weaveworks/2982-cheap-connectedness
cheap probe connectedness api endpoint

Fixes #2982.
2017-12-14 11:04:03 +00:00
Matthias Radestock 70d84170d6 introduce a cheap /api/probes?sparse variant
In many cases we only need to know whether there are _any_ connected
probes, and not the probe details. Obtaining that info is cheaper
since it requires no reading or merging or reports.
2017-12-14 01:07:40 +00:00
Matthias Radestock 72b9e9c6b9 add Reporter.HasReports() for cheap report availability checking
This requires no report reading / merging.

We plan to expose this in the HTTP API, so the UI gets a cheap way of
checking whether the app is currently receiving data from probes.
2017-12-14 00:13:45 +00:00
Matthias Radestock 54fe1e37da cosmetic 2017-12-13 23:52:48 +00:00
Matthias Radestock 6c4bf58fe2 refactor: extract awsCollector.getReportKeys helper
This makes Report() more readable. We also intend to use this function
elsewhere.
2017-12-13 23:50:05 +00:00