Commit Graph

3494 Commits

Author SHA1 Message Date
jpellizzari
d775020794 Added logic to turn off network requests when Scope dismounts 2017-03-01 14:03:27 -08:00
Filip Barl
4f24d9bba8 Merge pull request #2275 from weaveworks/move-zoom-cache-to-global-state
Move zoomCache to the global state
2017-03-01 15:18:24 +01:00
Filip Barl
19202a2e44 Fixed the selectors performance leaks. 2017-03-01 12:14:36 +01:00
Filip Barl
11ce5638c5 Moved nodes-chart-layout.
Moved nodes-chart-zoom.

Moved zoomCache to global state.

Moved nodes-chart-focus.

Fixed some bugs and polished the code.

Keeping track of topology options in zoomCache.

Fixed forceRelayout and circular layout.

Unified graph complexity heuristic criterion.
2017-03-01 12:14:36 +01:00
jpellizzari
b417bcda80 Fix for .fail undefined on doRequest 2017-02-28 21:55:56 -08:00
Anita Buehrle
e1bbc5ac5a Merge pull request #2252 from weaveworks/fix-links
Documentation improvements
2017-02-28 07:49:39 -06:00
jpellizzari
3d0e109ea7 Fix for make ui-pkg-upload job rename 2017-02-27 11:53:13 -08:00
jpellizzari
4f9725612b Fixed window undefined condition for CSRF token 2017-02-27 11:26:29 -08:00
Alfonso Acosta
98395bb595 Create cloud agent image (#2284)
* Create cloud-agent image

* Refactor Makefile

* Push the image from CircleCI and releases

* Review feedback

* Review feedback

* Review feedback
2017-02-27 17:49:26 +01:00
Alfonso Acosta
5516f7b7d0 Revert "Disable Scope integration tests."
This reverts commit fe7ec8f133.
2017-02-27 11:54:40 +01:00
Tom Wilkie
4d6e8d4623 Don't collect coverage artifacts 2017-02-26 18:14:34 +00:00
Tom Wilkie
fe7ec8f133 Disable Scope integration tests. 2017-02-26 17:51:34 +00:00
Jordan Pellizzari
107a933530 Merge pull request #2281 from weaveworks/ui-pkg-fix
Changed ui-build-pkg job to use a docker container
2017-02-24 14:24:59 -08:00
jpellizzari
efdd8e4b0e Changed ui-build-pkg job to use a docker container 2017-02-24 14:03:05 -08:00
Alfonso Acosta
0ebc0b9a3e Merge pull request #2277 from weaveworks/2276-use-recent-client-as-1.10
Embed Docker 1.13.1 (but force protocol 1.22)
2017-02-24 15:38:53 +01:00
Alfonso Acosta
f892cb14a0 Review feedback 2017-02-24 14:36:25 +00:00
Alfonso Acosta
41c7451795 Review feedback 2017-02-24 13:50:20 +00:00
Alfonso Acosta
051884d26a Embed Docker 1.13.1 (but force protocol 1.22) 2017-02-24 13:50:19 +00:00
Alfonso Acosta
96e7c6b414 Bump google.golang.org/grpc to make github.com/weaveworks/common happy 2017-02-24 13:50:18 +00:00
Alfonso Acosta
e8cb4fb4c6 Bump github.com/weaveworks/common 2017-02-24 13:43:06 +00:00
Alfonso Acosta
bc1c964828 Merge pull request #2278 from weaveworks/copy-weaveutil
Embed a copy of weaveutil instead of calling via docker
2017-02-24 13:53:59 +01:00
Alfonso Acosta
9c2009f63e Simplify copying of weaveutil 2017-02-24 12:31:11 +00:00
Bryan Boreham
a60192d98a Install weaveutil so we don't have to run it via docker 2017-02-24 12:31:10 +00:00
Bryan Boreham
0a3c58b641 Pin the version of Weave Net embedded
for more repeatable builds
2017-02-24 12:31:09 +00:00
Jordan Pellizzari
a90858f81f Merge pull request #2272 from weaveworks/loading-topology-filters
Add loading indicator on topology option change
2017-02-23 14:46:51 -08:00
jpellizzari
5f468cc047 Added loading indicator on topology option change 2017-02-23 10:17:35 -08:00
Filip Barl
225477f38e Merge pull request #2268 from weaveworks/fix-graph-layout-edge-directionality
Fix edge directionality in graph layout
2017-02-23 11:20:56 +01:00
jpellizzari
1b58c7725f Fix for contrast stylesheet public path 2017-02-22 11:01:02 -08:00
Jordan Pellizzari
5c7d2843f7 Merge pull request #2256 from weaveworks/contrast-as-component
Load contrast stylesheet
2017-02-22 10:03:19 -08:00
Filip Barl
689973ae7f Addressed the PR comment 2017-02-22 18:15:24 +01:00
Filip Barl
f1b80c0cfc Fix edge directionality in graph layout. 2017-02-22 16:11:57 +01:00
Alfonso Acosta
285faaf8fe Merge pull request #2225 from kinvolk/alban/integration2
integration tests: fix scripts
2017-02-22 13:47:02 +01:00
Alessandro Puccetti
6b2b483cbc extras/in_parallel.sh: remove erroneous quotes
$COMMAND can contain "make RM="

This patch fixes a regression caused by
https://github.com/weaveworks/scope/pull/2068/files#diff-42138a4802cce915f347919ccd707876R28
2017-02-22 11:16:51 +01:00
Mike Lang
045aaa5d64 Merge pull request #2266 from weaveworks/mike/fix-ui-circle-rebuild
circle.yml: Fix ui upload step so it doesn't build twice
2017-02-21 21:40:50 -08:00
Mike Lang
cdfd5a9375 circle.yml: Fix ui upload step so it doesn't build twice
There are two source checkouts in circle, and we were building in the wrong one
(ie. not the one where the earlier build happened). This was wasteful at best
and buggy at worst due to build differences.
2017-02-21 20:33:02 -08:00
Mike Lang
ed19e7a34b Merge pull request #2197 from weaveworks/mike/ecs/scale-controls
Add ECS Service scale up/down controls
2017-02-21 11:03:01 -08:00
Jordan Pellizzari
0423e49517 Merge pull request #2265 from weaveworks/fix-details-panel-links
Fix details panel links
2017-02-21 10:43:02 -08:00
jpellizzari
f2f474ac80 Change to load contrast theme dynamically 2017-02-21 10:29:43 -08:00
Filip Barl
9ac546c8b9 Fix details panel links. 2017-02-21 18:40:45 +01:00
Alessandro Puccetti
e81f674a02 extra/in_parallel.sh: call the right python version
We want to use the python installed as dependency to use an updated
version of the requests module (>=v2.4.2).

This regression is caused by
https://github.com/weaveworks/build-tools/pull/73
2017-02-21 17:25:39 +01:00
Alessandro Puccetti
fabafecb0c circle.yml: update python-requests pkg
Update the build-tools introduced a regression while building on circle
ci.

The PR https://github.com/weaveworks/build-tools/pull/73 is compatible
with python requests module `>=v2.4.2`. We need to provide a more
updated version of the one available in ubuntu 12.04 or 14.04
repositories.
2017-02-21 17:19:19 +01:00
Alessandro Puccetti
340438b3c3 extras/build_on_circle.sh: fix find error
The find command fails on circleci running ubuntu 14.04 with the
following message:

Unix filenames usually don't contain slashes (though pathnames do).
That means that '-name `./*.go'' will probably evaluate to false all the
time on this system.  You might find the '-wholename' test more useful,
or perhaps '-samefile'.  Alternatively, if you are using GNU grep, you
could use 'find ... -print0 | grep -FzZ `./*.go''.'

This fix is compatible with ubuntu 12.04

This regression is caused by
https://github.com/weaveworks/scope/pull/2068/files#diff-3072c24bd91fea6eb71aecc590951d7e
2017-02-21 17:19:19 +01:00
Michael Schubert
f850f4486a Update circle.yml for Ubuntu 14.04
Change the owner of "$HOME/.bashrc.backup" as the Google cloud cli wants
to backup to this file during setup and it's owned by root in the Circle
CI image.

Second, allow writes to `/usr/local/go/pkg` for `go install net` to
work.
2017-02-21 17:19:19 +01:00
Alessandro Puccetti
3f497dd82a backend: fix permissions and add hclfmt
After updating build-tools, I got new errors:

> ./tools/lint: line 134: hclfmt: command not found

> go install net: open /usr/local/go/pkg/linux_amd64_race/net.a:
> permission denied

This patch works around that by doing the same thing as:
https://github.com/weaveworks/build-tools/pull/44/files
2017-02-21 17:19:19 +01:00
Alban Crequy
cf507de619 integration/gce.sh: allow PROJECT override 2017-02-21 17:19:19 +01:00
Alban Crequy
e031728b04 bin/setup-circleci-secrets: possibly use generic credentials
If the $SECRET_SCRIPT environment variable is defined in CircleCI, this
can override the GCE credentials.

I now use "base64" instead of "openssl base64" in order to support long
lines in base64 text. It's useful when the text comes from a long
environment variable like $SECRET_SCRIPT defined in CircleCI.

Also, the $PROJECT environment variable can now override the GCE project
name. Before, it needed to be named scope-integration-tests.

This was initially merged in https://github.com/weaveworks/scope/pull/2223
Then, reverted in https://github.com/weaveworks/scope/pull/2229

Since then, it has the following fixes:

 1. fix shell "unbound variable"

Since this shell script uses "set -u", we must not use unset variables
directly.

Symptoms:
> https://circleci.com/gh/weaveworks/scope/6384
> bin/setup-circleci-secrets: line 10: SECRET_SCRIPT: unbound variable

Instead, we should use the parameter expansion "+" to test if the
variable is set. See:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02

 2. return value of read

I use the builtin "read" and this returns a non-zero value when reading
until EOF. I use "|| true" to accept that.
2017-02-21 17:19:18 +01:00
Alessandro Puccetti
d1f5fcaaec Merge commit '6a1af9ac0e65098e0b4e914ce451f6bd1e659f60' into alessandro/integration-fix 2017-02-21 16:55:24 +01:00
Alessandro Puccetti
6a1af9ac0e Squashed 'tools/' changes from a3b18bf..52d695c
52d695c Merge pull request #77 from kinvolk/schu/fix-relative-weave-path
77aed01 Merge pull request #73 from weaveworks/mike/sched/fix-unicode-issue
7c080f4 integration/sanity_check: disable SC1090
d6d360a integration/gce.sh: update gcloud command
e8def2c provisioning/setup: fix shellcheck SC2140
cc02224 integration/config: fix weave path
9c0d6a5 Fix config_management/README.md
334708c Merge pull request #75 from kinvolk/alban/external-build-1
da2505d gce.sh: template: print creation date
e676854 integration tests: fix user account
8530836 host nameing: add repo name
b556c0a gce.sh: fix deletion of gce instances
2ecd1c2 integration: fix GCE --zones/--zone parameter
3e863df sched: Fix unicode encoding issues
51785b5 Use rm -f and set current dir using BASH_SOURCE.
f5c6d68 Merge pull request #71 from kinvolk/schu/fix-linter-warnings
0269628 Document requirement for `lint_sh`
9a3f09e Fix linter warnings
efcf9d2 Merge pull request #53 from weaveworks/2647-testing-mvp
d31ea57 Weave Kube playbook now works with multiple nodes.
27868dd Add GCP firewall rule for FastDP crypto.
edc8bb3 Differentiated name of dev and test playbooks, to avoid confusion.
efa3df7 Moved utility Ansible Yaml to library directory.
fcd2769 Add shorthands to run Ansible playbooks against Terraform-provisioned virtual machines.
f7946fb Add shorthands to SSH into Terraform-provisioned virtual machines.
aad5c6f Mention Terraform and Ansible in README.md.
dddabf0 Add Terraform output required for templates' creation.
dcc7d02 Add Ansible configuration playbooks for development environments.
f86481c Add Ansible configuration playbooks for Docker, K8S and Weave-Net.
efedd25 Git-ignore Ansible retry files.
765c4ca Add helper functions to setup Terraform programmatically.
801dd1d Add Terraform cloud provisioning scripts.
b8017e1 Install hclfmt on CircleCI.
4815e19 Git-ignore Terraform state files.
0aaebc7 Add script to generate cartesian product of dependencies of cross-version testing.
007d90a Add script to list OS images from GCP, AWS and DO.
ca65cc0 Add script to list relevant versions of Go, Docker and Kubernetes.
aa66f44 Scripts now source dependencies using absolute path (previously breaking make depending on current directory).
7865e86 Add -p option to parallelise lint.
36c1835 Merge pull request #69 from weaveworks/mflag
9857568 Use mflag and mflagext package from weaveworks/common.
9799112 Quote bash variable.
10a36b3 Merge pull request #67 from weaveworks/shfmt-ignore
a59884f Add support for .lintignore.
03cc598 Don't lint generated protobuf code.
2b55c2d Merge pull request #66 from weaveworks/reduce-test-timeout
d4e163c Make timeout a flag
49a8609 Reduce test timeout
8fa15cb Merge pull request #63 from weaveworks/test-defaults
b783528 Tweak test script so it can be run on a mca

git-subtree-dir: tools
git-subtree-split: 52d695cc629c524ff17eb06e2de12d78701919c9
2017-02-21 16:55:24 +01:00
abuehrle
36178e99f0 or hosts 2017-02-20 14:28:36 -06:00
Jordan Pellizzari
341446fa93 Merge pull request #2237 from weaveworks/change-instance
Add logic to remove non-transferrable state when switching Cloud instances
2017-02-20 10:47:45 -08:00