Skip to content

Commit cbd4ffb

Browse files
Merge remote-tracking branch 'origin/master'
# Conflicts: # requirements.txt
2 parents bc7d2ef + 07529bd commit cbd4ffb

File tree

9,002 files changed

+1057418
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

9,002 files changed

+1057418
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.idea/
22
__pycache__/
3-
venv/
3+
venvs/
44
env/
55
*.pyc

grpcTutorialGoogle/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# References
2+
3+
* [GRPC : Quick Start](https://grpc.io/docs/languages/python/quickstart/)
4+
5+
* [Basics tutorial](https://grpc.io/docs/languages/python/basics/)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Configuration file for Bazel CI [1].
2+
#
3+
# Also testing on Bazel CI in addition of our normal CI workflow
4+
# ensures that gRPC is tested against Bazel@HEAD and stays compatible
5+
# with the latest release.
6+
#
7+
# See [2,3] in case you have questions.
8+
#
9+
# [1] https://github.com/bazelbuild/continuous-integration
10+
# [2] https://github.com/grpc/grpc/issues/19171
11+
# [3] https://github.com/grpc/grpc/pull/20784
12+
---
13+
# TODO(yannic): Ideally, we should also enable buildifier and all platforms should test `//...`.
14+
platforms:
15+
ubuntu1604:
16+
build_targets:
17+
- //:all
18+
- //src/proto/...
19+
- //src/python/...
20+
test_targets:
21+
- //:all
22+
- //src/proto/...
23+
- //src/python/...

grpcTutorialGoogle/grpc/.bazelignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
bazel-bin
2+
bazel-grpc
3+
bazel-out
4+
bazel-testlogs
5+
bins
6+
libs
7+
objs
8+
third_party/abseil-cpp
9+
third_party/bloaty
10+
third_party/boringssl-with-bazel
11+
third_party/googleapis
12+
third_party/googletest
13+
third_party/opencensus-proto
14+
third_party/protobuf
15+
third_party/protoc-gen-validate
16+
third_party/udpa
17+
third_party/upb

grpcTutorialGoogle/grpc/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# load bazelrc from the legacy location
2+
# as recommended in https://github.com/bazelbuild/bazel/issues/6319
3+
import %workspace%/tools/bazel.rc

grpcTutorialGoogle/grpc/.clang-format

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
Language: Cpp
3+
BasedOnStyle: Google
4+
DerivePointerAlignment: false
5+
PointerAlignment: Left
6+
IncludeBlocks: Preserve
7+
---
8+
Language: ObjC
9+
BasedOnStyle: Google
10+
ColumnLimit: 100
11+
ObjCBlockIndentWidth: 2
12+
...

grpcTutorialGoogle/grpc/.clang-tidy

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
---
2+
# Note on checks are disabled on purpose
3+
#
4+
# - abseil-no-namespace
5+
# https://bugs.llvm.org/show_bug.cgi?id=47947
6+
#
7+
# - bugprone-reserved-identifier
8+
# Some macros need to be defined for portability purpose; e.g. _BSD_SOURCE.
9+
#
10+
# - google-upgrade-googletest-case
11+
# This requires googletest 1.10 which is higher than ones installed on many linux distributions.
12+
#
13+
# - modernize-redundant-void-arg
14+
# Some source should be strictly C99 and func(void) should be used.
15+
#
16+
# Note on checks which will be enabled in future. These are good to have but
17+
# it's not activated yet due to the existing issues with the checks.
18+
# Once those issues are clear, these checks can be enabled later.
19+
#
20+
# - bugprone-branch-clone
21+
# - bugprone-infinite-loop
22+
# - bugprone-narrowing-conversions
23+
# - bugprone-not-null-terminated-result
24+
# - bugprone-signed-char-misuse
25+
# - bugprone-sizeof-expression
26+
# - bugprone-too-small-loop-variable
27+
# - clang-diagnostic-deprecated-declarations
28+
# - clang-diagnostic-unused-function
29+
# - google-readability-avoid-underscore-in-googletest-name
30+
# - google-runtime-int
31+
# - google-runtime-references
32+
# - modernize-avoid-bind
33+
# - modernize-deprecated-headers
34+
# - modernize-loop-convert
35+
# - modernize-pass-by-value
36+
# - modernize-raw-string-literal
37+
# - modernize-return-braced-init-list
38+
# - modernize-use-auto
39+
# - modernize-use-default-member-init
40+
# - modernize-use-emplace
41+
# - modernize-use-equals-default
42+
# - modernize-use-equals-delete
43+
# - modernize-use-using
44+
# - performance-no-automatic-move
45+
# - performance-unnecessary-copy-initialization
46+
# - performance-unnecessary-value-param
47+
# - readability-else-after-return
48+
# - readability-implicit-bool-conversion
49+
# - readability-redundant-declaration
50+
# - readability-static-definition-in-anonymous-namespace
51+
#
52+
Checks: '-*,
53+
abseil-*,
54+
-abseil-no-namespace,
55+
bugprone-*,
56+
-bugprone-branch-clone,
57+
-bugprone-infinite-loop,
58+
-bugprone-narrowing-conversions,
59+
-bugprone-not-null-terminated-result,
60+
-bugprone-reserved-identifier,
61+
-bugprone-signed-char-misuse,
62+
-bugprone-sizeof-expression,
63+
-bugprone-too-small-loop-variable,
64+
google-*,
65+
-google-readability-avoid-underscore-in-googletest-name,
66+
-google-runtime-int,
67+
-google-runtime-references,
68+
-google-upgrade-googletest-case,
69+
performance-*,
70+
-performance-no-automatic-move,
71+
-performance-unnecessary-copy-initialization,
72+
-performance-unnecessary-value-param,
73+
clang-diagnostic-deprecated-register,
74+
clang-diagnostic-expansion-to-defined,
75+
clang-diagnostic-ignored-attributes,
76+
clang-diagnostic-non-pod-varargs,
77+
clang-diagnostic-shadow-field,
78+
clang-diagnostic-shift-sign-overflow,
79+
clang-diagnostic-tautological-undefined-compare,
80+
clang-diagnostic-thread-safety*,
81+
clang-diagnostic-undefined-bool-conversion,
82+
clang-diagnostic-unreachable-code,
83+
clang-diagnostic-unreachable-code-loop-increment,
84+
clang-diagnostic-unused-const-variable,
85+
clang-diagnostic-unused-lambda-capture,
86+
clang-diagnostic-unused-local-typedef,
87+
clang-diagnostic-unused-private-field,
88+
clang-diagnostic-user-defined-warnings,
89+
misc-definitions-in-headers,
90+
misc-static-assert,
91+
misc-unconventional-assign-operator,
92+
misc-uniqueptr-reset-release,
93+
misc-unused-alias-decls,
94+
misc-unused-using-decls,
95+
modernize-make-shared,
96+
modernize-make-unique,
97+
modernize-replace-auto-ptr,
98+
modernize-replace-random-shuffle,
99+
modernize-shrink-to-fit,
100+
modernize-unary-static-assert,
101+
modernize-use-bool-literals,
102+
modernize-use-noexcept,
103+
modernize-use-nullptr,
104+
modernize-use-override,
105+
modernize-use-transparent-functors,
106+
readability-const-return-type,
107+
readability-container-size-empty,
108+
readability-delete-null-pointer,
109+
readability-deleted-default,
110+
readability-function-size,
111+
readability-inconsistent-declaration-parameter-name,
112+
readability-misleading-indentation,
113+
readability-misplaced-array-index,
114+
readability-redundant-control-flow,
115+
readability-redundant-function-ptr-dereference,
116+
readability-redundant-smartptr-get,
117+
readability-simplify-boolean-expr,
118+
readability-string-compare,
119+
readability-uniqueptr-delete-release'
120+
WarningsAsErrors: '*'
121+
CheckOptions:
122+
- key: readability-function-size.StatementThreshold
123+
value: '450'
124+
- key: modernize-make-unique.MakeSmartPtrFunction
125+
value: 'absl::make_unique'
126+
- key: modernize-make-unique.MakeSmartPtrFunctionHeader
127+
value: 'absl/memory/memory.h'
128+
- key: google-readability-braces-around-statements.ShortStatementLines
129+
value: 1

grpcTutorialGoogle/grpc/.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
root = true
2+
[**]
3+
end_of_line = LF
4+
indent_style = space
5+
indent_size = 2
6+
insert_final_newline = true
7+
tab_width = 8

grpcTutorialGoogle/grpc/.gitallowed

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Security tests will contain fake secrets
2+
test/core/security/**
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Auto-generated by the tools/mkowners/mkowners.py tool
2+
# Uses OWNERS files in different modules throughout the
3+
# repository as the source of truth for module ownership.
4+
/**/OWNERS @markdroth @nicolasnoble @a11r
5+
/bazel/** @nicolasnoble @jtattermusch @veblush @gnossen
6+
/cmake/** @jtattermusch @nicolasnoble @apolcyn
7+
/src/core/ext/filters/client_channel/** @markdroth
8+
/src/core/ext/xds/** @markdroth
9+
/tools/dockerfile/** @jtattermusch @apolcyn @nicolasnoble
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Report a bug
3+
about: Create a report to help us improve
4+
labels: kind/bug, priority/P2
5+
assignees: nicolasnoble
6+
7+
---
8+
9+
<!--
10+
PLEASE DO NOT POST A QUESTION HERE.
11+
This form is for bug reports and feature requests ONLY!
12+
13+
For general questions and troubleshooting, please ask/look for answers at StackOverflow, with "grpc" tag: https://stackoverflow.com/questions/tagged/grpc
14+
15+
For questions that specifically need to be answered by gRPC team members, please ask/look for answers at grpc.io mailing list: https://groups.google.com/forum/#!forum/grpc-io
16+
17+
Issues specific to *grpc-java*, *grpc-go*, *grpc-node*, *grpc-dart*, *grpc-web* should be created in the repository they belong to (e.g. https://github.com/grpc/grpc-LANGUAGE/issues/new)
18+
-->
19+
20+
### What version of gRPC and what language are you using?
21+
22+
23+
### What operating system (Linux, Windows,...) and version?
24+
25+
26+
### What runtime / compiler are you using (e.g. python version or version of gcc)
27+
28+
29+
### What did you do?
30+
Please provide either 1) A unit test for reproducing the bug or 2) Specific steps for us to follow to reproduce the bug. If there’s not enough information to debug the problem, gRPC team may close the issue at their discretion. You’re welcome to re-open the issue once you have a reproduction.
31+
32+
### What did you expect to see?
33+
34+
35+
### What did you see instead?
36+
37+
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
38+
39+
See [TROUBLESHOOTING.md](https://github.com/grpc/grpc/blob/master/TROUBLESHOOTING.md) for how to diagnose problems better.
40+
41+
### Anything else we should know about your project / environment?
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Request a cleanup
3+
about: Suggest a cleanup in our repository
4+
labels: kind/internal cleanup, priority/P2
5+
assignees: nicolasnoble
6+
7+
---
8+
9+
<!--
10+
PLEASE DO NOT POST A QUESTION HERE.
11+
This form is for bug reports and feature requests ONLY!
12+
13+
For general questions and troubleshooting, please ask/look for answers at StackOverflow, with "grpc" tag: https://stackoverflow.com/questions/tagged/grpc
14+
15+
For questions that specifically need to be answered by gRPC team members, please ask/look for answers at grpc.io mailing list: https://groups.google.com/forum/#!forum/grpc-io
16+
17+
Issues specific to *grpc-java*, *grpc-go*, *grpc-node*, *grpc-dart*, *grpc-web* should be created in the repository they belong to (e.g. https://github.com/grpc/grpc-LANGUAGE/issues/new)
18+
-->
19+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Request a feature
3+
about: Suggest an idea for this project
4+
labels: kind/enhancement, priority/P2
5+
assignees: nicolasnoble
6+
7+
---
8+
9+
<!--
10+
PLEASE DO NOT POST A QUESTION HERE.
11+
This form is for bug reports and feature requests ONLY!
12+
13+
For general questions and troubleshooting, please ask/look for answers at StackOverflow, with "grpc" tag: https://stackoverflow.com/questions/tagged/grpc
14+
15+
For questions that specifically need to be answered by gRPC team members, please ask/look for answers at grpc.io mailing list: https://groups.google.com/forum/#!forum/grpc-io
16+
17+
Issues specific to *grpc-java*, *grpc-go*, *grpc-node*, *grpc-dart*, *grpc-web* should be created in the repository they belong to (e.g. https://github.com/grpc/grpc-LANGUAGE/issues/new)
18+
-->
19+
20+
### Is your feature request related to a problem? Please describe.
21+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
22+
23+
### Describe the solution you'd like
24+
A clear and concise description of what you want to happen.
25+
26+
### Describe alternatives you've considered
27+
A clear and concise description of any alternative solutions or features you've considered.
28+
29+
### Additional context
30+
Add any other context about the feature request here.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Ask a question
3+
about: Ask a question
4+
labels: kind/question, priority/P3
5+
assignees: nicolasnoble
6+
7+
---
8+
9+
PLEASE DO NOT POST A QUESTION HERE.
10+
This form is for bug reports and feature requests ONLY!
11+
12+
For general questions and troubleshooting, please ask/look for answers at StackOverflow, with "grpc" tag: https://stackoverflow.com/questions/tagged/grpc
13+
14+
For questions that specifically need to be answered by gRPC team members, please ask/look for answers at grpc.io mailing list: https://groups.google.com/forum/#!forum/grpc-io
15+
16+
This issue will be closed down once seen by the repo managers.
17+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
#
3+
# Copyright 2020 The gRPC authors.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -e
18+
19+
if [ $# -lt 1 ];then
20+
echo "Usage: $0 github-id"
21+
exit 1
22+
fi
23+
24+
echo "Change repo manager to $1"
25+
26+
BASE_PATH=$(dirname $0)
27+
28+
for file in bug_report.md cleanup_request.md feature_request.md question.md
29+
do
30+
sed -i".bak" -E "s/assignees: ([a-zA-Z0-9-]+)/assignees: $1/" "$BASE_PATH/ISSUE_TEMPLATE/$file"
31+
rm "$BASE_PATH/ISSUE_TEMPLATE/$file.bak"
32+
done
33+
34+
sed -i".bak" -E "s/^@([a-zA-Z0-9-]+)/@$1/" "$BASE_PATH/pull_request_template.md"
35+
rm "$BASE_PATH/pull_request_template.md.bak"
36+
37+
echo "Done"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
daysUntilLock: 90
2+
lockComment: false
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
mergeable:
2+
pull_requests:
3+
label:
4+
and:
5+
- must_exclude:
6+
regex: '^disposition/DO NOT MERGE'
7+
message: 'Pull request marked not mergeable'
8+
- or:
9+
- and:
10+
- must_include:
11+
regex: '^release notes: yes'
12+
message: 'Please add the label (release notes: yes)'
13+
- must_include:
14+
regex: '^lang\/'
15+
message: 'Please add a language label (lang/...)'
16+
- must_include:
17+
regex: '^release notes: no'
18+
message: 'Please add the label (release notes: no)'

0 commit comments

Comments
 (0)