Commit Graph

4829 Commits

Author SHA1 Message Date
Filip Barl
25415f7cba Merge pull request #3167 from weaveworks/202-theme-fonts
Enforce theme font sizes
2018-05-11 18:29:08 +02:00
Filip Barl
154a54e3f5 Use theme font sizes. 2018-05-11 16:56:08 +02:00
Filip Barl
c837804371 Enforce theme fonts. 2018-05-11 16:26:27 +02:00
Filip Barl
5adb73c561 Merge pull request #3159 from weaveworks/162-use-standard-z-indices
Use only z-index values from the theme
2018-05-07 18:05:13 +02:00
Filip Barl
c82f59c121 Use only z-index values from the theme. 2018-05-07 17:06:44 +02:00
Marcus Cobden
324173f3d0 Merge pull request #3157 from weaveworks/lower-rpc-timeout
Add CLI flag for SQS RPC timeout
2018-05-04 11:19:11 +01:00
Marcus Cobden
ba81924278 Add CLI flag for SQS RPC timeout 2018-05-04 10:11:25 +01:00
Marcus Cobden
0dfbe8b10f Fix tests broken by hasty merging 2018-05-03 19:27:50 +01:00
Marcus Cobden
4fae760b06 Merge pull request #3156 from weaveworks/fix-panic-maybe
Add null check to fix querier panic
2018-05-03 17:25:33 +01:00
Marcus Cobden
8eb9fc86ae Add null checks to fix querier panic 2018-05-03 17:23:58 +01:00
Filip Barl
d19b0293f6 Merge pull request #3148 from weaveworks/176-remove-some-colors
Stop using dropped theme colors
2018-04-18 08:32:44 +02:00
Filip Barl
35499f0fb8 Bump ui-components to v0.4.58 2018-04-17 17:51:52 +02:00
Filip Barl
5ae802fc29 Stop using dropped theme colors. 2018-04-17 16:48:58 +02:00
Bryan Boreham
1455597a48 Merge pull request #3142 from weaveworks/faster-critbit
Faster path to check an IP address against known networks
2018-04-16 20:51:22 +01:00
Bryan Boreham
e21844165a Merge pull request #3147 from weaveworks/release-1.9
Release 1.9.0
2018-04-16 18:11:32 +01:00
Bryan Boreham
bf35031617 Add version 1.9.0 v1.9.0 2018-04-16 16:40:51 +00:00
Filip Barl
2f5fb66cd1 Bump ui-components to v0.4.56 2018-04-16 17:37:58 +02:00
Filip Barl
65bb232c36 Merge pull request #3146 from weaveworks/175-merge-neutral-theme-colors
Merge neutral theme colors
2018-04-16 16:41:20 +02:00
Filip Barl
d812e14987 Bump ui-components to v0.4.55 2018-04-16 16:37:34 +02:00
Filip Barl
a4f9641bd6 Merge neutral theme colors. 2018-04-16 16:35:51 +02:00
Matthias Radestock
4b85be0d7e Merge pull request #3141 from kinvolk/schu/workaround-ubuntu-kernel-oops
Workaround Ubuntu kernel oops

Fixes #3131
2018-04-16 07:56:02 +01:00
Matthias Radestock
82cd367379 Merge pull request #3139 from weaveworks/3127-no-truncate
do not truncate tables

Fixes #3127.
2018-04-15 21:49:19 +01:00
Bryan Boreham
994493b2e0 Merge pull request #3143 from weaveworks/unsafe-add-children
Use unsafe merge in joinResults.addChildAndChildren()
2018-04-15 21:46:23 +01:00
Bryan Boreham
e1c418884e Comment inconsistency between calls in joinResults 2018-04-15 09:39:43 +00:00
Bryan Boreham
3711876194 Use unsafe merge in joinResults.addChildAndChildren(), for performance 2018-04-15 09:39:21 +00:00
Bryan Boreham
04ceb0cc87 Faster path to check an IP address against known networks
We modify the critbitgo library to skip creating a route object we don't use.

The weaveworks-local modification can be removed if
https://github.com/k-sone/critbitgo/pull/7 is merged.
2018-04-14 20:44:09 +00:00
Michael Schubert
5d036c5ac4 ebpf: add tests for isKernelSupported() 2018-04-13 17:17:51 +02:00
Michael Schubert
c75700fe04 ebpf: check for known faulty Ubuntu kernel
The Ubuntu Xenial update to kernel 4.4.0-119.143 from 4.4.0-116.140 did
include a regression in the eBPF code. A basic `bpf_map_lookup_elem`
call as found in the tcptracer-bpf library used by Scope leads to a
kernel panic. As a result, Scope / the system crashes during startup
when the tcptracer is initialized. The Scope bug report can be found
here:

https://github.com/weaveworks/scope/issues/3131

To avoid crashes and gently fallback to procfs (as Scope already does
for systems not supporting eBPF), update `isKernelSupported()` and
explicitly check for Ubuntu Kernel versions with the problem.

Once the bug is fixed and an update published, the `abiNumber` check in
`isKernelSupported()` can and should be updated with an upper limit.

The Ubuntu bug report can be found here:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1763454
2018-04-13 17:17:51 +02:00
Ilya Dmitrichenko
b8dae7768d Merge pull request #3140 from dholbach/docker-for-mac-fix
Minimal fix to make scope start with Docker for Mac again.
2018-04-13 10:28:14 +01:00
Bryan Boreham
b7b778934c Merge pull request #3138 from weaveworks/single-owner-nodeset
Use single-owner code path to accumulate children when rendering
2018-04-13 09:34:30 +01:00
Bryan Boreham
7a03bc03f8 Use faster code to accumulate children when rendering
Make sure all the Children NodeSets are not shared with any other
nodes, then we can use the non-persistent add path.
2018-04-13 07:44:21 +00:00
Daniel Holbach
f8f3b3dc2d Minimal fix to make scope start with Docker for Mac again.
@dglaubman found that recent versions of Docker for Mac (Docker version
18.03.0-ce, build 0520e24) don't write out
${HOME}/Library/Containers/com.docker.docker/Data/database any more.

@foot confirmed this. A fresh installation of Docker for Mac (Version
18.03.0-ce-mac60 (23751), Channel: stable) did not create the file.

The result was that installations which had this leftover file could start
scope, whereas newer couldn't. The fix simply changes this check to a path
which actually exists.

Thanks @dglaubman and @foot for the analysis and confirmation.

Fixes #3064
2018-04-13 08:17:23 +02:00
Matthias Radestock
36ea7907e4 export less & comment more
to make the linter happy
2018-04-12 17:24:29 +01:00
Matthias Radestock
24672ed046 do not truncate tables
Limiting env vars, docker&k8s labels, and weave net connection entries
to 20 is problematic because

- the truncation is arbitrary - there is a good chance that if you
care about a specific entry it won't be there

- the truncation is not consistent - different entries get truncated
at different times

- some of the rendering logic depends on specific labels, for example
namespace filtering of containers depends on the
`io.kubernetes.pod.namespace` label.

In practice, there should never be a huge number of labels, or Weave
Net connection entries. So there is no need to truncate them.

That leaves env vars. These are of limited use, so we now omit them by
default. If they are included they are included in full, so they are
actually useful.

Fixes #3127
2018-04-12 17:13:58 +01:00
Bryan Boreham
593952cd6e Move report creation outside of timing loop 2018-04-12 10:02:50 +00:00
Bryan Boreham
e2b4b3edf6 Merge pull request #3135 from weaveworks/map-one
Simplify Map.Render()
2018-04-10 16:10:57 +01:00
Bryan Boreham
7e63d0fd19 Comment 2018-04-10 13:25:54 +00:00
Filip Barl
c86e93199f Update yarn.lock 2018-04-10 10:09:33 +02:00
Filip Barl
e8f423a337 Merge pull request #3134 from weaveworks/use-json-stable-stringify
Don't update route if it hasn't changed
2018-04-09 20:44:16 +02:00
Filip Barl
30c99d0e28 Merge pull request #3136 from weaveworks/161-switch-to-theme-cyan-colors
Switch to theme cyan colors
2018-04-09 16:52:46 +02:00
Filip Barl
52c4da32af Switch to theme cyan colors. 2018-04-09 16:10:31 +02:00
Bryan Boreham
dd087cff01 Use joinResults to accumulate nodes in Map.Render()
joinResults grew out of a special case of Map.Render(), so now we
merge the two lines back together and have just one way to accumulate
results and remap adjacencies.
2018-04-09 13:16:40 +00:00
Bryan Boreham
e3539a8d92 MapFunc is now Node->Node
Save time creating a map for the results which contains at most one entry
2018-04-09 13:16:40 +00:00
Bryan Boreham
ced27b298c Turn Map2Parent into a Renderer
This is the last MapFunc which returns multiple Nodes, so by turning
it into a Renderer we open the door to simplifing every other MapFunc.
2018-04-09 13:16:40 +00:00
Filip Barl
99e4870d99 Don't update route if it hasn't changed. 2018-04-09 09:42:43 +02:00
Filip Barl
c938a5ffa4 Bump ui-components to v0.4.51 2018-04-05 17:16:17 +02:00
Bryan Boreham
9873ab2ea7 Merge pull request #3129 from weaveworks/fix-latestmap-printf
Fix format string to work for all types
2018-04-05 15:44:19 +01:00
Matthias Radestock
e36081ac22 Merge pull request #3128 from doodlesbykumbi/patch-1
documentation fix: project for openshift installation
2018-04-05 11:35:50 +01:00
Bryan Boreham
27cf8f3b06 Fix format string to work for all types 2018-04-05 08:18:52 +00:00
doodlesbykumbi
3ac9b6c06a fix: project for openshift installation 2018-04-05 01:38:58 +01:00