Commit Graph

891 Commits

Author SHA1 Message Date
Xuan Wang ca36ff84ba [Python o11y] Fix readme (#35988)
Fix `readme.rst`.

Tested locally by running `python setup.py doc`, no more errors from observability.

Only error is related to grpc_status:
```
WARNING: autodoc: failed to import module 'rpc_status' from module 'grpc_status'; the following exception was raised:
cannot import name 'status_pb2' from 'google.rpc' (unknown location)
```

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #35988

PiperOrigin-RevId: 609820414
2024-02-23 13:26:20 -08:00
Eugene Ostroukhov 6c157f9128 [Release] Bump version to 1.63.0-dev (on master branch) (#35899)
Change was created by the release automation script. See go/grpc-release.

Closes #35899

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35899 from eugeneo:bump_dev_version_202402131133 73950425c9
PiperOrigin-RevId: 606777850
2024-02-13 16:09:36 -08:00
Tanvi Jagtap 0cdd62f131 Writing a doc with steps to contribute to the grpc code base.
Adding more screenshots to doc.
This is meant for non googlers.

PiperOrigin-RevId: 604557321
2024-02-06 00:31:06 -08:00
Tanvi Jagtap 05b62c90a9 Writing a doc with steps to contribute to the grpc code base.
Making screenshots for this doc better.
This is meant for non googlers.

PiperOrigin-RevId: 603266696
2024-01-31 22:44:37 -08:00
Yash Tibrewal c26bb28626 [doc] Add note on current status of grpc_cli tool (#35675)
Closes #35675

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35675 from yashykt:UpdateGrpcCliDoc a62de2821d
PiperOrigin-RevId: 603095922
2024-01-31 10:44:38 -08:00
Tanvi Jagtap 434e4e0518 Writing a doc with steps to contribute to the grpc code base.
This is meant for non googlers.

PiperOrigin-RevId: 602963187
2024-01-31 00:39:54 -08:00
Xuan Wang 1afcc3bd13 [Python O11y] Build and distrib O11y package (#35578)
Actually build O11y artifacts.

### Testing
* Manually installed the `.whl` and verified it's working locally (For Python 3.8 + Linux).

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #35578

PiperOrigin-RevId: 600566829
2024-01-22 14:18:12 -08:00
Stanley Cheung 7c347b96eb [Release] Bump version to 1.62.0-dev (on master branch) (#35580)
Change was created by the release automation script. See go/grpc-release.

Closes #35580

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35580 from stanley-cheung:bump_dev_version_202401171835 b363888ca5
PiperOrigin-RevId: 599267642
2024-01-17 13:19:59 -08:00
Mark D. Roth c7101d0867 [xDS] move CDS and EDS watchers into xds resolver (#35011)
Implements gRFC A74 (https://github.com/grpc/proposal/pull/404).

Closes #35011

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35011 from markdroth:xds_watchers_in_xds_resolver a39f71f37f
PiperOrigin-RevId: 595134549
2024-01-02 09:20:06 -08:00
Esun Kim d8fd0c0844 Fixed bazel tests for 7 (#35390)
- Fixed the bazel distrib tests with Bazel 7 by disabling bzlmod option.
- Added a new note for bzlmod to the doc.

Closes #35390

PiperOrigin-RevId: 593816700
2023-12-26 10:30:45 -08:00
Esun Kim 45aecbe355 [Tool] Added Bazel 7 basic support (#35362)
- Added Bazel 7 to the support bazel versions.
- Changed the default Bazel version to 7.
- Fixed Android Binder build issue.

Closes #35362

PiperOrigin-RevId: 592946781
2023-12-21 14:13:56 -08:00
y-yagi 391a0810ae [doc] Fix the link to the protocol (#35330)
The Server Reflection Protocol v1 is already released. I think v1 is a better link to the Protocol, not v1alpha now.

Closes #35330

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35330 from y-yagi:patch-1 a89cb60b1e
PiperOrigin-RevId: 592356694
2023-12-19 15:13:57 -08:00
lixin18 8ce9774187 [Doc] Update PROTOCOL-HTTP2.md (#34907)
more strict  --> stricter

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #34907

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/34907 from lixin963:patch-1 9081eb445e
PiperOrigin-RevId: 591176601
2023-12-15 01:26:47 -08:00
y-yagi c019835d6f [doc] Fix a broken link to `ProtoReflectionDescriptorDatabase` (#35204)
Closes #35204

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35204 from y-yagi:patch-1 7c5d9e6fa6
PiperOrigin-RevId: 591176455
2023-12-15 01:17:51 -08:00
Sergii Tkachenko 522434e4f9 docs: service_config.md: fix pb syntax, add highlighting (#35232)
1. Protobuf doesn't support `//` comments, only `#`
2. Add syntax highlighting

Closes #35232

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35232 from grpc:sergiitk-service_config e17a9ef14d
PiperOrigin-RevId: 588943566
2023-12-07 16:25:58 -08:00
Craig Tiller e884d6c190 Remove test code
PiperOrigin-RevId: 582406922
2023-11-14 12:35:27 -08:00
Craig Tiller 1ccb6a868b Remove badly formatted line
PiperOrigin-RevId: 582384359
2023-11-14 11:31:55 -08:00
Craig Tiller c09a008414 test commit
PiperOrigin-RevId: 582111135
2023-11-13 16:05:08 -08:00
Mark D. Roth 15e2f9e873
[release] Bump version on master to 1.61.0-dev (#34923) 2023-11-13 08:33:46 -08:00
Esun Kim d77e5c0dd3
[Build] Dropped Bazel 5.x and Upgraded Bazel 6.4.0 (#34813)
- Dropped Bazel 5.x support aligned with [Foundational C++ support
policy:
Bazel](https://opensource.google/documentation/policies/cplusplus-support).
- Upgraded Bazel 6 to 6.4.0 (the latest)
- Updated gRPC Bazel documentation to be aligned with the policy above.
2023-11-06 15:47:29 -08:00
paskozdilar 5b3da1a630
[doc] Update glossary link to grpc_arg_keys (#34771)
I have created an [issue on grpc.io
repository](https://github.com/grpc/grpc.io/issues/1212), and they have
pointed me towards this repository.

Currently, in the Python documentation glossary, the [channel
arguments](https://grpc.github.io/grpc/python/glossary.html#term-channel_arguments)
section contains a link to [header file
grpc_types.h](https://github.com/grpc/grpc/blob/v1.58.x/include/grpc/impl/codegen/grpc_types.h)
which is almost empty, and doesn't contain relevant information.

This PR fixes the invalid link in the Python glossary of gRPC
documentation, by replacing it with
[channel_arg_names.h](https://github.com/grpc/grpc/blob/v1.58.x/include/grpc/impl/channel_arg_names.h)
which contains the relevant information.
2023-10-31 16:08:08 -07:00
Easwar Swaminathan 300eadadfe
[doc] Fix typo in xds-test-descriptions.md (#34329)
`succeed-on-retry-attempt-<int>` is what is being currently used in the
Java server implementation and also by the test client. The spec was
probably written after the stuff was implemented and this typo is better
fixed before other languages implement their server side logic. Go is in
the process of doing so.
2023-10-31 12:58:11 -07:00
Mark D. Roth 502bdfe214
[doc] update xDS feature matrix (#34789)
- add entry for aggregate and logical DNS cluster support
- add entry for least_request LB policy
- add a bunch of missing versions in various languages
2023-10-25 13:49:58 -07:00
Eugene Ostroukhov 352c33986e
[doc] Add address proxy documentation. (#34750) 2023-10-19 14:48:02 -07:00
Craig Tiller ec49866463
[fuzzing] Fix timeout in retry_exceeds_buffer_size_in_delay (#34627)
Fix b/304114403

- adds a new experimental tracer useful for diagnosing ping timeout
failures in unit tests
- adds a pair of experimental tracers for fuzzing event engine
- fix the behavior of FuzzingEventEngine so that a RunAfter(0, ...) runs
in the same tick
- up the rate of sends (reduce the send delay) so we guarantee to be
able to send 200kb/sec in fuzzed e2e unit tests

---------

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2023-10-11 09:07:14 -07:00
Doug Fawley 39d7a4eaeb
[status-doc] clarify status code behavior outside the defined range of codes (#34588)
This update should properly describe behavior differences between
Java/Node and C++/Go.

cc @ctiller @markdroth @ejona86 @yashykt @murgatroid99
2023-10-06 11:04:15 -07:00
Arvind Bright ce0b51b35c
[xds] add version support for gRPC-Go for some xDS Features (#34512)
fixes: https://github.com/grpc/grpc-go/issues/6552

cc: @dfawley
2023-09-27 16:22:35 -07:00
Richard Belleville 3bdd972c4a
[Release] Bump master version to 1.60 (gjallarhorn) (#34488)
<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
2023-09-26 13:10:20 -07:00
Esun Kim a90f30008d
[Release] Bump version to 1.59.0-dev (on master branch) (#34144)
Change was created by the release automation script. See
go/grpc-release.
2023-08-23 15:53:32 -07:00
Jan Tattermusch d3548a3941
[bazel] Upgrade bazel repo-wide to 6.3.2 (#34088)
- Upgrade bazel
- Reduce the number of places where bazel version needs to be upgraded
in future.
- also make sure the list of bazel versions to test by bazelified tests
is loaded from supported_versions.txt (it was hardcoded before).
- ~~Try upgrading windows RBE build to bazel 6.3.2 as well.~~

The core idea:
- the source of truth for supported bazel versions is in
`bazel/supported_versions.txt`
- the first version listed in `bazel/supported_versions.txt` is
considered to be the "primary" bazel version and is going to be used in
most places thoroughout the repo.
- use templates to include the primary bazel version in testing
dockerfiles and in a newly introduced `.bazelversion` files (which gets
loaded by our existing `tools/bazel` wrapper).


~~Supersedes https://github.com/grpc/grpc/pull/33880~~
2023-08-18 10:11:33 +02:00
Xuan Wang 1138e3f83b
[Documentation] Fix Python documentation CSS (#33908)
Fix python documentation website sidebar.

### Before:
<img width="1168" alt="Screenshot 2023-07-27 at 4 49 25 PM"
src="https://github.com/grpc/grpc/assets/24593237/1434ac63-7fc3-4f5c-a931-9a939fb67de6">

### After:
![Screenshot 2023-07-28 at 1 04 01
PM](https://github.com/grpc/grpc/assets/24593237/c7cc16b6-926f-4c8b-bc54-6cedfebb62b4)


<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
2023-07-31 09:58:33 -07:00
AJ Heller 42b0d01e68
[Release] Bump version to 1.58.0-dev (on master branch) (#33825)
Change was created by the release automation script. See go/grpc-release
2023-07-24 10:09:08 -07:00
AJ Heller 2c81c5619e
[deps] Remove libuv dependency (#33748) 2023-07-19 10:56:11 -07:00
Bjorn Svensson ac874c2c83
[core] Add a channel argument to set DSCP on streams (#28322)
This adds a new channel argument `GRPC_ARG_DSCP` which allows users to
create classified gRPC streams with a
Differentiated Services Code Point (DSCP) marking on the IP frames.

The channel argument is handled on both clients and servers, but
currently only on posix based systems.

Fixes #17225

**Background**:
In addition to what is already described is #17225, when gRPC is used in
telco systems there is often a need to classify streams of importance.
There can be multiple hops between two endpoints (e.g. between 2 telecom
operators) and some streams that are more important than others (e.g.
emergency call related or similar). By marking the IP packets using DSCP
the aware routers can make a sound decision of the prioritization.

This PR propose to use DSCP as the configuration value since its common
for both IPv4/IPv6, an alternative would be to use a config name that
includes TOS and Traffic Class.
There might be more needed regarding documentation and end2end testing,
but there I need some advice.

**References**
https://datatracker.ietf.org/doc/html/rfc2474
https://www.iana.org/assignments/dscp-registry/dscp-registry.xhtml

<!--

Your pull request will be routed to the following person by default for
triaging.
If you know who should review your pull request, please remove the
mentioning below.

-->

@yashykt
2023-06-30 16:10:21 -07:00
Mark D. Roth 1b31c6e0ba
[xDS] support "tls" channel creds in bootstrap file (#33234)
Implements [gRFC
A65](https://github.com/grpc/proposal/blob/master/A65-xds-mtls-creds-in-bootstrap.md).

Fixes #32977.
2023-06-16 08:07:58 -07:00
Yadong 18c42a21af
[core] Add support for vsock transport (#33309)
Revert "Revert "[core] Add support for vsock transport"
(https://github.com/grpc/grpc/pull/33276)"
This reverts commit
c5ade3011a.

And fix the issue which broke the python build.

@markdroth @drfloob please review this PR. Thank you very much.

---------

Co-authored-by: AJ Heller <hork@google.com>
2023-06-07 13:55:53 -07:00
Yijie Ma 5a0678001b
[Release] Bump version to 1.57.0-dev (on master branch) (#33311)
Change was created by the release automation script. See
go/grpc-release.
2023-06-01 10:55:31 -07:00
AJ Heller c5ade3011a
Revert "[core] Add support for vsock transport" (#33276)
Reverts grpc/grpc#32847. Breaks the Python build.
2023-05-30 14:31:26 -07:00
Yadong 9d765860ef
[core] Add support for vsock transport (#32847)
This is another attempt to add support for vsock in grpc since previous
PRs(#24551, #21745) all closed without merging.

The VSOCK address family facilitates communication between
virtual machines and the host they are running on.
This patch will introduce new scheme: [vsock:cid:port] to
support VSOCK address family.

Fixes #32738.

---------

Signed-off-by: Yadong Qi <yadong.qi@intel.com>
Co-authored-by: AJ Heller <hork@google.com>
Co-authored-by: YadongQi <YadongQi@users.noreply.github.com>
2023-05-30 09:46:49 -07:00
apolcyn 942d64b16f
[interop test docs] document --additional_metadata flag (#33180)
The flag was introduced a while back for C++:
https://github.com/grpc/grpc/pull/18156

https://github.com/grpc/grpc-go/pull/6295 and
https://github.com/grpc/grpc-java/pull/10201 for the same flag in Java
and Go (need this for RLS integration tests).
2023-05-25 13:05:19 -07:00
Yash Tibrewal 4f445219ef
[C++ Examples] Add an example for keepalive (#33191)
<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
2023-05-19 11:15:25 -07:00
Mark D. Roth ec31abdacf
[xDS] support StringMatch for header matching in RouteConfig (#32993)
Implements [gRFC
A63](https://github.com/grpc/proposal/blob/master/A63-xds-string-matcher-in-header-matching.md).

---------

Co-authored-by: markdroth <markdroth@users.noreply.github.com>
2023-05-19 09:16:06 -07:00
yifeizhuang 2daf767539
[Testing] increase orca oob test timeout (#33098)
each oob test runs at least 2s (2 verifications with each server sending
report each 1s), current configuration allows at most 3 clients run in
parallel. In reality, probably only the two clients against one server.
Currently 8 jobs are running each batch, and it happens that each batch
has at most 2 oob clients against one server.
Since 3 languages support orca, so we should allow 3 clients running
against one server so the timeout is at least 4s. We give some buffers
to allow tests running more reliably.
10s in theory support 5-6 clients running against one server.
2023-05-16 13:36:36 -07:00
Xuan Wang 40f20c0f48
[Python fix-it][Aysnc Example] Adding examples for aysnc interceptor context propagaton (#32840)
### Description

Fix https://github.com/grpc/grpc/issues/24470.

Adding one example which demonstrate the following use cases:

* Generate RPC ID on client side and propagate to server.
* Context propagation from client to server.
* Context propagation between different server interceptors and the
server handler.

## Use:

1. Start server: `python3 -m async_greeter_server_with_interceptor`
2. Start client: `python3 -m async_greeter_client`

### Expected Logs:

* On client side:

```
Sending request with rpc id: 73bb98beff10c2dd7b9f2252a1e2039e
Greeter client received: Hello, you!
```

* On server side:

```
INFO:root:Starting server on [::]:50051
INFO:root:Interceptor1 called with rpc_id: default
INFO:root:Interceptor2 called with rpc_id: Interceptor1-default
INFO:root:Handle rpc with id Interceptor2-Interceptor1-73bb98beff10c2dd7b9f2252a1e2039e in server handler.
```
2023-05-04 19:31:01 +00:00
Mark D. Roth 020e9b4dd6
[WRR] Remove env var guard for WRR policy (#32936)
- remove the `_experimental` suffix from the gRPC policy name
- remove the env var guard for the xDS policy config
2023-04-26 09:40:22 -07:00
Yash Tibrewal dc075539e7
[Release] Bump version to 1.56.0-dev (on master branch) (#32918)
Change was created by the release automation script. See go/grpc-release
2023-04-24 10:47:57 -07:00
Esun Kim 3bd6c38650
[Infra] Use Bazel 6 and drop Bazel 4 (Part 2) (#32910)
Oops I missed important changes from
https://github.com/grpc/grpc/pull/32712. And it turned out that there
are two problems that I couldn't fix at this point.
- Windows Bazel RBE Linker Error: This may be caused by how new Bazel 6
invokes build tools chain but it's not clear. I put workaround to use
Bazel 5 by using `OVERRIDE_BAZEL_VERSION=5.4.1`
- Rule `rules_pods` to fetch CronetFramework from CocoaPod has
incompatibility with sort of built-in apple toolchain.
(https://github.com/bazel-xcode/PodToBUILD/issues/232): I couldn't find
a workaround to fix this so I ended up disabling all tests depending
this target.
2023-04-21 15:53:52 -07:00
Esun Kim 6e3dcc0df5
[Infra] Use Bazel 6 and drop Bazel 4 (#32712)
Let's move on as we'd agreed to drop 4.x
2023-04-20 14:40:20 -07:00
Mark D. Roth 702958b3c2
[xDS] document versions with xDS federation support (#32903) 2023-04-20 08:00:30 -07:00
Eugene Ostroukhov e59a3e25ca
[xds] Remove variable protection from custom LB policies (#32888) 2023-04-18 15:53:41 -07:00