Commit Graph

1168 Commits

Author SHA1 Message Date
Simon Howe
6ddd2ed9ff Fixes linting violations 2015-12-15 16:14:39 +01:00
Paul Bellamy
3e2e92ecbd Merge pull request #770 from weaveworks/missing-pids
We need to read /proc/PID/net/tcp6 to see the pids for the server end of local connections.
2015-12-15 14:10:03 +00:00
Tom Wilkie
550f21511a We need to read /proc/PID/net/tcp6 to see the pids for the server end of local connections. 2015-12-15 13:38:30 +00:00
Tom Wilkie
3bc2042c51 Merge pull request #760 from weaveworks/release-0.11.0
Changelog for 0.11.0
2015-12-15 11:38:10 +00:00
David Kaltschmidt
271bcbde19 Correct path for scope version command v0.11.0 2015-12-15 12:07:47 +01:00
David Kaltschmidt
ec15f7fc21 Updated CHANGELOG for 0.11.0 2015-12-14 17:20:55 +01:00
David
2c9e0fa60a Merge pull request #763 from weaveworks/748-fix-terminal-keys
Fixes AltGr+3 which is required in some locales (UK).
2015-12-14 15:28:30 +01:00
David
03bf6d659a Merge pull request #762 from weaveworks/761-fix-terminal-title
Fixes popped out terminal title
2015-12-14 15:28:12 +01:00
Simon Howe
08a68aa605 Oops, forgot to remove a log. 2015-12-14 15:23:48 +01:00
Simon Howe
24530a3eed Send ctrl-a through to server rather activate term.js's copy mode. 2015-12-14 14:29:19 +01:00
Simon Howe
437cd737cc Fixes popped out terminal title 2015-12-14 14:02:19 +01:00
Simon Howe
fdd45fdd43 Fixes AltGr+[0-9] which is required in some locales (UK). 2015-12-14 13:57:18 +01:00
Paul Bellamy
b3b2bcc5c8 Merge pull request #750 from weaveworks/749-version
Rationalise version handling
2015-12-11 13:43:10 +00:00
Tom Wilkie
667dd0f1de Rationalise version handling 2015-12-11 12:23:01 +00:00
Paul Bellamy
1b39659d10 Merge pull request #742 from weaveworks/284-profiling
Various CPU usage gains from profiling
2015-12-11 12:05:24 +00:00
Tom Wilkie
d8c759c455 Merge pull request #650 from weaveworks/365-pipes
Pipes
2015-12-11 12:01:36 +00:00
Tom Wilkie
5050bacd72 Correctly wait for all background goroutines to finish before returning from AppClient.Close() 2015-12-11 11:20:53 +00:00
David Kaltschmidt
d93a3e22c9 Dont deselect node on ESC if there is a controlPipe 2015-12-11 11:34:18 +01:00
Tom Wilkie
a2862baf33 Don't list fds if there are not connections in the net namespace. 2015-12-11 10:27:27 +00:00
Tom Wilkie
cc90c6c95d Don't read tcp6 file (we don't deal with ipv6 anywhere else). 2015-12-11 10:27:26 +00:00
Tom Wilkie
9cff5699cb Don't decode the certificates everytime we create an AppClient. 2015-12-11 10:27:26 +00:00
Tom Wilkie
cde5920f9a Cache the contents of some files in /proc
Also cache contents of /proc/foo/stat, but only for 10s.
2015-12-11 10:27:15 +00:00
Simon Howe
8a6361559c Add terminal setTimeouts as instance properties instead of globals
in case we ever have 2 terminals
2015-12-10 19:59:38 +01:00
Simon Howe
921a7b723f More Terminal-UI and code post review fixes. 2015-12-10 19:43:46 +01:00
Simon Howe
e0ff3e3ddd Cleanup our timeouts. 2015-12-10 19:43:45 +01:00
Tom Wilkie
0b1a2ef5c7 Wait for pipes to close in Close(). 2015-12-10 15:44:50 +00:00
Tom Wilkie
6259307491 Don't use a global variable to store the pipe client. 2015-12-10 15:44:25 +00:00
Tom Wilkie
1fcd079563 Use Readdirnames to reduce number of stats we're doing. 2015-12-10 14:43:40 +00:00
Tom Wilkie
efecea3714 Merge pull request #741 from weaveworks/284-procspy-cached-walker
Use caching walker in procspy
2015-12-10 14:43:01 +00:00
Tom Wilkie
cc5935a89d Review feedback 2015-12-10 14:10:36 +00:00
Tom Wilkie
ed6c4088fa Fix up tests. 2015-12-10 14:00:43 +00:00
Tom Wilkie
e15fe2b747 Use caching proc walker in procspy. 2015-12-10 14:00:42 +00:00
Tom Wilkie
ee2efeb10f Merge pull request #737 from weaveworks/284-probe-cpu
Move procspy out of vendor into probe/endpoint.
2015-12-10 13:59:12 +00:00
Simon Howe
50be8c61d2 Try to reconnect immediately giving a nicer ctrl-d diconnect exp. 2015-12-10 14:38:58 +01:00
Tom Wilkie
ff3748866b Fix infinite loop when closing AppClient. 2015-12-10 12:53:31 +00:00
Tom Wilkie
3a344f12ea Backend review feedback 2015-12-10 12:53:31 +00:00
Simon Howe
fe6e8973c4 UI Review feedback
- Adds more spacing between term and details windows
- Make the terminal status-overlay a bit smaller
- No period at the end of titles.
- Space out terminal button controls.
- Revise some of the terminal status prompts.
- Fixes terminal resizing.
- Flexbox was being very laggy on chrome. We can get away w/ absolute
  positioning in this case easily. Snappier.
2015-12-10 12:53:06 +00:00
Simon Howe
3b2af2ae6c Terminal UI for pipes
- term.js
- Add eslintignore
- Fix color and es2015 after rebase
- Fix JS test, probably deleted during conflict resolution
- Moves terminal close button to top-right of window
- Consitent w/ details window.
- Changes padding of details window close button so both close buttons
  are horizonally aligned.
- Terminal resizes w/ browser window.
- No longer can drag window around.
- Add tiny big of padding between term and node-details.
- Playing w/ terminal placement.  This one's more drawer-like.
- Send DELETE when we close a terminal window.
- Dont lint or bable JS vendor files
- Ignore ctags 'tags' files.
- Adds popping out terminal out into a new browser window.
- Simplify code as now we've just a single terminal window.
- ESC is back to close the terminal, then the details panel.
- Fixes bug w/ slow response to closing the details panel.
- Moving away from "drawer-style" for terminal size and position to a
  simple window.
- Just gotta handle the case for refreshing a popped out terminal.
- Stop terminal text being auto-deselected.
- window resizes will still deselect.
- Adds state.connected to react.scu check.
- Don't delete pipe when browser closes
- To allow for nicer refresh flows
- scope-app will time out pipe after a while.
- Keep terminal-open/closed state in the url.
- shouldComponentUpdate fix to prevent deselection of text has been
  rolled back so gotta come up w/ another way to handle that...
- Fixes terminal text-selection again.
- Make pipes work for non-raw terminals too.
- Move document.title updating somewhere more sensible.
- Pass rawTty prop along to all terminals.
- Don't render react root into doc.body
- Reconnect the websocket if we lose it.
- First, slightly rough, attempt at displaying if pipe has been deleted
- Refactor controlPipe structure in the AppStore/hash.
- Merge controlPipeId, controlPipeRaw, controlPipeStatus into a single object.
- Adds a status bar to the terminal window.
- Error handling in popout working again.
- Don't show terminal cursor when not connected.
- Simplify controlPipe status and error handling.
- Don't keep the status in the hash.
- Use special new action receiveControlPipeFromParams rather than
  adding lots of branching to receiveControlPipe.
- You can reload a terminal but it doesn't exist in history stack.
- Pull out terminal into its own entry point!
- Fixes prod webpack build
- Fixes terminal-app websocket path when running on prod.
- Fixes old terminals appearing when closing a terminal.
- History hacking wasn't working, this is a little simpler.
2015-12-10 12:52:44 +00:00
Tom Wilkie
b77cd3f300 Add pipe controls for Docker attach & exec. 2015-12-10 12:51:17 +00:00
Tom Wilkie
ac9c011475 Pipe plumbing
- Add store of pipes in the app
- Add pipe type, handling impedance mismatch, used in app and probe.
- App <-> Probe pipes have their own websockets.
- Add pipe websocket endpoint in app.
- Pipe IDs are strings, lose the request/response IDs, and give the json encoder lowercase field names.
- Add simple golang ws client, for testing.
- Pipe lifecycle plumbing.
- Ref count and timeout both ends of pipes in the app
- Deal with POST /api/pipe/:pid?_method=delete
- Add end-to-end unit test for pipes.
- Add test for timing out pipes.
- Update go-docker client to tomwilkie/go-dockerclient
- Backend work for non-raw ttys
- Close pipes when they close themselves in the probe
- Ensure all http connections are done before returning from client.Stop()
2015-12-10 12:51:17 +00:00
Tom Wilkie
9c2c2b9a5b Merge pull request #743 from weaveworks/fix-build
[WIP] Don't go get weave, git clone it.
2015-12-10 12:50:26 +00:00
Tom Wilkie
9d91a06a75 Don't go get weave, git clone it. 2015-12-10 12:10:29 +00:00
Tom Wilkie
5cadafcda4 Extend testing of procspy. 2015-12-09 14:47:00 +00:00
Paul Bellamy
6314cefe45 Merge pull request #732 from weaveworks/569-merge-binaries
Merge probe and app binaries, run with ./scope probe or ./scope app.
2015-12-09 13:15:33 +00:00
Tom Wilkie
949ae6f807 Review feedback 2015-12-09 12:45:13 +00:00
Paul Bellamy
973968ea34 Merge pull request #735 from weaveworks/testing
Add some more tests
2015-12-09 11:10:00 +00:00
Tom Wilkie
b94751ac10 Move procspy out of vendor into probe/endpoint. 2015-12-09 11:06:04 +00:00
Tom Wilkie
c749f5aa33 Merge probe and app binaries, run with ./scope probe or ./scope app. 2015-12-09 11:00:42 +00:00
Tom Wilkie
ec9a3b135c Add a little test for collector.go 2015-12-08 17:59:24 +00:00
Paul Bellamy
8db21fbb2d Merge pull request #730 from weaveworks/301-edge-metadata-cleanup
Cleaning up some dead code around edges and edgemetadata
2015-12-07 16:07:07 +00:00