Commit Graph

633 Commits

Author SHA1 Message Date
Lidi Zheng 2ec1d0aeb5 Remove the python/async folder
- This effort is already carried on in grpc/grpc.
2019-08-27 10:49:41 -07:00
Srini Polavarapu 23de18e986
Merge pull request #319 from grpc/dependabot/npm_and_yarn/gdebug/web/channelzui/lodash.mergewith-4.6.2
build(deps): bump lodash.mergewith from 4.6.1 to 4.6.2 in /gdebug/web/channelzui
2019-07-12 13:47:13 -07:00
dependabot[bot] 30231fb652
build(deps): bump lodash.mergewith in /gdebug/web/channelzui
Bumps [lodash.mergewith](https://github.com/lodash/lodash) from 4.6.1 to 4.6.2.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-12 20:37:24 +00:00
zpencer fbd5048f34
gdebug: fix start_docker.sh for osx (#318)
mktemp works differently on osx. Pipe the config to stdin to avoid the
problem.

This supersedes https://github.com/grpc/grpc-experiments/pull/312
2018-10-24 11:15:53 -07:00
Spencer Fang 07a67c9c5c gdebug: update README for first time installation instructions 2018-10-03 09:05:02 -07:00
Spencer Fang 0555ff994f gdebug: rerun angular compiler 2018-10-03 09:05:02 -07:00
Spencer Fang 088c07a9d3 gdebug: fix br tag
<br/> is not a correct html tag.
2018-10-03 09:05:02 -07:00
Spencer Fang a70f2af3b8 gdebug: rerun codegen script to get latest proto output 2018-10-03 09:05:02 -07:00
Spencer Fang 5259aa5493 gdebug: fix codegen script
Fix bug where we fail to check out correct SHA if dir already exists.

Remove `exec` because it makes the `cp` fail to run.
2018-10-03 09:05:02 -07:00
Carl Mastrangelo 3ce48e1a37
Merge pull request #315 from carl-mastrangelo/fixreadme
Fix readme commands
2018-09-26 17:14:34 -07:00
Carl Mastrangelo 4ed3fc0b02 move readme 2018-09-26 14:39:36 -07:00
Carl Mastrangelo dca2057a5b
Merge pull request #314 from carl-mastrangelo/mov
move grpc-zpages to gdebug
2018-09-26 14:37:11 -07:00
Carl Mastrangelo b8f9c000f4 move grpc-zpages to gdebug 2018-09-26 14:16:51 -07:00
zpencer c407c49988
grpc-zpages: add channel trace events to GUI (#313)
Display the data if present. Recompile the app.
2018-09-13 15:37:21 -07:00
zpencer 4b7b150c6a
grpc-zpages: move xsrf protection to envoy proxy (#311)
For requests where the content type begins with
"application/grpc-web", envoy will check for a "gdebug-xsrf-token"
cookie and header. The values must both exist, be non empty strings,
and match. If this is not the case, return with a http 401.

It is the responsibility of the proxy and webapp to cooperate and
never make RPCs that it should not make.
2018-08-15 16:03:20 -07:00
zpencer fd76cecff3
grpc-zpages: compile angular app and check in the output js (#310)
The old files with hashes are superceded by the non uglified form,
which does not have hashes.
2018-08-13 10:04:41 -07:00
zpencer 1364e0e20c
grpc-zpages: remove DI param from channelz service (#309)
`@Optional` was supposed to make this param optional, but it appears
we are hitting this issue while building internally:
https://github.com/angular/angular/issues/24533
2018-08-09 14:43:06 -07:00
zpencer 2d5ed88f1c
grpc-zpages: clarify statics assets start up message (#308)
The message right now is confusing, and may lead to users navigating
here instead of the envoy port.

Ran gofmt

move flags to pkg level, avoid http mux
2018-08-09 13:21:54 -07:00
zpencer 851a674d9b
grpc-zpages: link channelz.js with angular compiler (#306)
Rather than importing the script with a <script> tag, use angular's
build system to import the script. This makes our HTML consistent
internally and externally, and is probably the way to go if we want to
use the library in unit tests.
2018-08-08 08:57:09 -07:00
zpencer a9fa4c674b
grpc-zpages: gen_channelz_pb.sh should accept a git sha param (#307)
If no param is specified, we pull from the latest grpc/grpc-protos
2018-07-24 15:50:56 -07:00
zpencer 19a1330ec7
grpc-zpages: remove stray script tag from index.html (#305) 2018-07-24 15:11:31 -07:00
zpencer 093bc7ce17
grpc-zpages: codegen docker should output files as current uid (#303)
Change the output files to the user's UID and GID.
2018-07-24 15:04:46 -07:00
zpencer 9f728cd3e1
gprc-zpages: do not output uglified js when building (#304)
This makes the output easier to use, and there's not a real need for
uglified js in this tool. This also eliminates the hash appended to
the output filenames.
2018-07-24 14:58:11 -07:00
zpencer e47ab0e246
channelz: add code gen scripts for OSS (#302)
Build a self contained channelz.js from a channelz.proto.

Running buildscripts/channelz_codgen.sh will produce a
web/channelzui/src/assets/channelz.js that reflects the SHA
specified in the scripts.

The script fetches grpc/grpc-web to get the prereq docker image, does
some additional setup, and then runs the code gen script.
2018-07-24 08:28:00 -07:00
zpencer 03051b1928
channelz: use closure styled imports in typescript, avoid having standalone js files (#301)
We can modify the internal version of main.ts to use
goog.require to load any internal Any packed messages, and call
registerProtoAnyToStringFn.

This is simpler than keeping standalone .js files that are all
loaded together in the browser via <script src="...">.

goog.require appears to be a noop in OSS if we load the .js file with a <script> tag.
This will make imports easier.
2018-07-20 16:19:22 -07:00
zpencer 6ac114da18
channelz: allow grpc address to be overridden, and make builds less noisy (#300) 2018-07-17 18:25:18 -07:00
zpencer 4e0cc508ff
channelz: add initial docker configs (#297)
- Add dockers for envoy, static assets www server, docker-compose
  config generator script. We use `network_mode: host` so that the
  loopback addresses within the docker resolve to the host.
- Update build script and angular.json so that copmilation outputs go
  directly into the static assets docker directory.
- Update README.md
- remove CORS
- the grpc web host should be window.location.origin, ie the envoy
  reverse proxy port
2018-07-13 14:56:19 -07:00
zpencer 6de5b03512
channelz: remove stray proto file (#299) 2018-07-11 17:01:53 -07:00
zpencer dfbf06f5f8
channelz: remove stray BUILD file (#298) 2018-07-11 17:01:45 -07:00
zpencer 10dc637d72
channelz: use grpc web for angular app (#296)
The grpc-web generated library is loaded in the html page via a
<script src="...">, and from the angular app's point of view, the
proto variable is just an arbitrary external javascript handle.

The envoy proxy host+port is controlled by environment.ts
and environment.prod.ts. This may change if it proves problematic
when integrating with envoy.

The binary protos must be manually turned into human friendly strings,
because js protos can not be dumped as JSONs.
2018-07-11 12:59:35 -07:00
zpencer ac46dc6016
channelz: add back angular build CLI tool (#293)
This is required for the 'ng build' command to be available, which
is how angular apps are built on the CLI.

Previously I was too aggressive in pruning packages to fix the security
audit findings and removed this package.
2018-07-10 09:03:41 -07:00
zpencer 9986ff8603
channelz: add channelz grpc web library and support code (#294) 2018-07-10 09:02:01 -07:00
zpencer 1cfd55313e
Merge pull request #295 from grpc/buildscript-more-forgiving
channelz: make build script more forgiving when files not present
2018-07-10 09:01:38 -07:00
Spencer Fang 43f0e17ae3 channelz: make build script more forgiving when files not present 2018-07-10 08:25:38 -07:00
zpencer fb1860b60b
Merge pull request #292 from zpencer/fix-pkg-security-vuln-2
Update remaining pkgs in packages.json
2018-06-07 17:07:11 -07:00
Spencer Fang 3f23f88257 Update remaining pkgs in packages.json 2018-06-07 17:03:18 -07:00
zpencer b747617344
Merge pull request #291 from zpencer/fix-pkg-security-vuln
channelz: update packages security patched versions of pkgs
2018-06-07 16:44:34 -07:00
Spencer Fang d39c3e8e41 channelz: update packages security patched versions of pkgs
Updated some direct dependencies and removed some unused ones.
`npm audit` now shows zero findings.
2018-06-07 16:42:34 -07:00
zpencer b808b9cbe1
Merge pull request #290 from zpencer/zpages
Add zpages gateway and webapp
2018-06-07 15:33:26 -07:00
Spencer Fang 901ae93ee8 Add zpages gateway and webapp 2018-06-07 12:58:52 -07:00
Nathaniel Manista 615a02d81c Merge pull request #289 from nathanielmanistaatgoogle/async-python
Async Python initial document.
2016-09-12 09:36:02 -07:00
Nathaniel Manista 1212d21440 Async Python initial document 2016-09-12 16:08:51 +00:00
Jayant Kolhe 15e2616ed0 Merge pull request #288 from nicolasnoble/master
Initial creation of the gevents experiment.
2016-09-09 15:33:16 -07:00
Nicolas Noble 13b46ef00c Initial creation of the gevents experiment. 2016-09-09 15:30:18 -07:00
Nicolas Noble a09842d874 Merge pull request #287 from grpc/fresh_start
Update README.md to explain the purpose of the new repository.
2016-09-08 19:43:47 -07:00
Nicolas Noble fe063441ec Addressing comments. 2016-09-08 16:26:39 -07:00
Nicolas Noble 74e8575e5b Update README.md 2016-09-08 16:11:48 -07:00
Tim Emiola 4ff6570813 Merge pull request #280 from stanley-cheung/sayonara
doc and examples have been moved to various grpc repo
2015-08-27 17:08:24 -07:00
Stanley Cheung 0bfb3755ca goodbye grpc-common, doc and examples have been moved to various grpc-* repo 2015-08-27 16:34:56 -07:00
Abhishek Kumar 209d047db8 Merge pull request #278 from yang-g/async_doc
Add sync and async doc in README for helloworld
2015-08-27 13:14:59 -07:00