Commit Graph

13979 Commits

Author SHA1 Message Date
Yash Tibrewal 264f4f4f54 [interop] Fix ruby docker build (#35438)
Closes #35438

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35438 from yashykt:FixRubyInteropBuild 0442988e8d
PiperOrigin-RevId: 595529644
2024-01-03 16:16:02 -08:00
Leonardo Pistone dbbce227de Performance: allow to configure BigQuery project (#35384)
Continue supporting the current grpc-testing that I suppose is used
inside of Google, but also allow to configure a different project to
upload results to.

The format "project_id.dataset_id.table_id" is common for BigQuery so it
seems idiomatic to do it in this way. Adding a separate command line
option would be more complicated because it would require changes all
the way down the chain (at least in the entry point for the test driver
and in the LoadTest controller).

<!--

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 #35384

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35384 from lepistone:choose_bigquery_project 2355fea28c
PiperOrigin-RevId: 595523944
2024-01-03 15:51:34 -08:00
Xuan Wang 47aa2fc59b [Fix test] Fix ensurepip missing (#35437)
Passed manual runs:
* [grpc/core/master/linux/grpc_interop_tocloud](https://fusion2.corp.google.com/invocations/70b9a382-03b0-46ce-9181-cd3382ae9ee7) (Ruby failed)
* [grpc/core/master/linux/arm64/grpc_basictests_python](https://fusion2.corp.google.com/invocations/279d959a-3d3f-4d0c-a0a3-712fefca14fe/targets)
<!--

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 #35437

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35437 from XuanWang-Amos:fix_ensurepip_missing 8c572dcfa5
PiperOrigin-RevId: 595520790
2024-01-03 15:37:38 -08:00
AJ Heller bd1eb96b5b [test-infra] Update all Ubuntu docker images to v20.04 or newer (#35440)
Closes #35440

PiperOrigin-RevId: 595515422
2024-01-03 15:14:54 -08:00
Stanley Cheung 9e702debfb [PSM Interop] Add support to enable CSM Observability and a new test case (#34835)
This PR adds CSM Observability testing capability in the PSM Interop testing framework. This PR mostly changes the framework Python code.

This adds a flag `enable_csm_observability` to the client / server deployment yaml file such that, when enabled, we will create a GMP `PodMonitoring` resource and pass the `--enable_csm_observability` to each language's client / server container (for them to actually enable the Prometheus endpoint)

I added a new test under `tests/csm/csm_observability_test.py`. This is basically a copy of the `tests/baseline_test.py` but with the `enable_csm_observability=True`.

Other PRs for this whole thing to work:
- https://github.com/grpc/grpc/pull/34752: The `PodMonitoring` resource yaml template
- https://github.com/grpc/grpc/pull/34832: Support for the `--enable_csm_observability` flag in the C++ client/server image

Closes #34835

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/34835 from stanley-cheung:csm-o11y-framework-changes 0b3d0eb7ed
PiperOrigin-RevId: 595502496
2024-01-03 14:25:02 -08:00
Sergii Tkachenko b84d5ef2e8 Add grpc-java 1.60.1 to client_matrix.py (#35429)
Closes #35429

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35429 from sergiitk:java-1.60.1 aadaee58db
PiperOrigin-RevId: 595435711
2024-01-03 10:18:01 -08:00
gRPC Team Bot 96b9e8d3e3 Automated rollback of commit d2da19e99e.
PiperOrigin-RevId: 595245935
2024-01-02 17:25:04 -08:00
Craig Tiller a100e90f97 [chttp2] Remove a bunch of mostly-rolled-out experiments (#35426)
- `memory_pressure_controller` finally - allows deletion of pid_controller throughout the codebase
- `overload_protection` - one of the http2 rapid reset mitigations
- `red_max_concurrent_streams` - another http2 rapid reset mitigation

Closes #35426

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35426 from ctiller:new-years-cleanse 4651672e7e
PiperOrigin-RevId: 595205029
2024-01-02 14:07:55 -08:00
Xuan Wang d2da19e99e [python O11Y] Implement OpenTelemetry (#35292)
<!--

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 #35292

PiperOrigin-RevId: 595188404
2024-01-02 12:58:01 -08:00
Craig Tiller 99cafa32d9 [promises] Expand maximum `Seq` length (#35423)
Closes #35423

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35423 from ctiller:seqqy fea10949d3
PiperOrigin-RevId: 595147939
2024-01-02 10:18:01 -08:00
Craig Tiller 75e5ebcb14 [promises] Add a switch primitive (#35424)
Remove the old `switch` library - this used to be an implementation detail of `Seq`, `TrySeq` - but has become unused.

Add a new user facing primitive `Switch` that fills a similar role to `switch` in C++ - selecting a promise to execute based on a primitive discriminator - much like `If` allows selection based on a boolean discriminator now.

A future change will optimize this to actually lower the `Switch` into an actual `switch` statement, but for right now I want to get the functionality in.

Closes #35424

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35424 from ctiller:switchy 5308a914c6
PiperOrigin-RevId: 595140965
2024-01-02 09:59:38 -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
Craig Tiller 2c18d16475 [promises] Deal with promise endpoint deletion whilst read/write is in progress (#35409)
Whilst here, eliminate unnecessary mutexes and streamline some complexity in the read variants.

Closes #35409

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35409 from ctiller:pbe 4f9588101a
PiperOrigin-RevId: 595006455
2024-01-01 20:14:58 -08:00
Craig Tiller f703530b6d [call-v3] initial surface call integration (#35312)
Adds temporary `call.cc` and `connected_channel.cc` scaffolding to run `CallInterceptor`/`CallHandler` style calls.
This will get ripped out as soon as the v3 transition is completed.

Closes #35312

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35312 from ctiller:v3-accept ae0bf81f8b
PiperOrigin-RevId: 594128029
2023-12-27 17:46:00 -08:00
Esun Kim 1e4fb21b7c
Fix Bazel 7 build (more) (#35392)
It turned out that the previous change missed two things which this PR
has

- Fix function `_dockerized_genrule` not to have `timeout` and `flaky`
which Bazel doesn't have. (Bazel 7 may either drop these arguments or
become more strict about passing unrecognized ones)
- Disabled python bazel distribution tests with Bazel 7. This needs to
be addressed by https://github.com/grpc/grpc/issues/35391.
2023-12-27 09:32:51 -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
Esun Kim 594d370819 [Build] Prepared for Bazel 7 (#35374)
This is a prerequisite change to start supporting Bazel 7. Changes are

- Disabled bzlmod which Bazel 7 begins to enable by default. This eventually needs to be done to support bzlmod but not now.
- Upgraded some bazel rule dependencies which are required to support Bazel 7.
- Using Python 3 explcitly as Bazel 7 begins to reject Python 2.

Note that this isn't enough to enable Bazel 7 by default and another PR will follow for that.

Closes #35374

PiperOrigin-RevId: 592931675
2023-12-21 13:02:38 -08:00
Esun Kim f2e0ffc765 [Tool] Better error message for check_bazel_workspace.py (#35375)
Simple `assert` statements don't help much to know what needs to be done. Instead, explicit error messages will let us know what's wrong which is helpful to know what to look at.

Closes #35375

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35375 from veblush:check-work 0733499c31
PiperOrigin-RevId: 592920747
2023-12-21 12:12:10 -08:00
Esun Kim 769b27479a [Deps] Update protobuf & upb to 3.25.1 (#35315)
On top of https://github.com/grpc/grpc/pull/35285, upb is also upgraded in this PR.

Closes #35315

PiperOrigin-RevId: 592672254
2023-12-20 15:29:31 -08:00
Xuan Wang 2d7b751d4e [Python run_test] Support Python3.12 (#35325)
Fix: https://github.com/grpc/grpc/issues/35085
<!--

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 #35325

PiperOrigin-RevId: 592635611
2023-12-20 12:59:24 -08:00
Zach Reyes 023305fd63 [interop] Add v1.60.1 release of grpc-go to interop matrix (#35346)
Closes #35346

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35346 from zasweq:go-patch-release d0d1a89465
PiperOrigin-RevId: 592406029
2023-12-19 19:18:44 -08:00
Craig Tiller 6d35000c17 [promises] Log errors in TrySeq (#35319)
When an error occurs in `TrySeq`, log the error.
Also, in the trace statements, capture the file/line that the sequence was constructed at, and log that with the traces.

Closes #35319

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35319 from ctiller:trace-seq bc0d47395f
PiperOrigin-RevId: 591999228
2023-12-18 13:49:50 -08:00
Craig Tiller c93798b5c7 Make gen_experiments.py runnable internally also
PiperOrigin-RevId: 591902705
2023-12-18 08:19:11 -08:00
Craig Tiller 52719bee53 [build] Reinstate fix_build_deps.py (#35293)
Closes #35293

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35293 from ctiller:fix-build-deps e60499a004
PiperOrigin-RevId: 591776895
2023-12-17 21:15:05 -08:00
Sergii Tkachenko 07706bc979 [PSM Interop] Use the Kokoro shared install lib from the new repo (#35327)
Source: 4f7ead2c7b/tools/internal_ci/linux/grpc_xds_k8s_install_test_driver.sh
New repo: https://github.com/grpc/psm-interop
New path: `.kokoro/psm_interop_kokoro_lib.sh`

Ref https://github.com/grpc/psm-interop/pull/16

Closes #35327

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35327 from sergiitk:psm-interop-shared-build 0f4566313d
PiperOrigin-RevId: 591388176
2023-12-15 16:25:34 -08:00
Eric Anderson 4f7ead2c7b [interop] Add grpc-java 1.60.0 to client_matrix.py (#35215)
Closes #35215

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35215 from ejona86:java-1.60.0 b26d2258fa
PiperOrigin-RevId: 591284569
2023-12-15 10:22:29 -08:00
Easwar Swaminathan 706d8b315b [interop] Add v1.60.0 release of grpc-go to interop matrix (#35282)
Closes #35282

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35282 from easwars:go_release a2c695cb1e
PiperOrigin-RevId: 591284158
2023-12-15 10:07:22 -08:00
Esun Kim d22d2b9903 Clean-up IWYU (#35314)
Clean-up IWYU stuff that were missed from 57d8462aee

Closes #35314

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35314 from veblush:fix-at-head 45994caaa9
PiperOrigin-RevId: 591284034
2023-12-15 09:54:47 -08:00
Craig Tiller 585bdccf45 Automated rollback of commit a5a25c7dad.
PiperOrigin-RevId: 591269197
2023-12-15 09:02:15 -08:00
Yash Tibrewal 1c96d533af [PSM Interop] Update logic to detect failed ADS channels (#35280)
<!--

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 #35280

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35280 from yashykt:UpdateInteropScriptForFindingAdsChannel db213384b4
PiperOrigin-RevId: 591090750
2023-12-14 17:02:19 -08:00
gRPC Team Bot a5a25c7dad Automated rollback of commit b455726401.
PiperOrigin-RevId: 591089109
2023-12-14 16:54:20 -08:00
James Newton-King 39a24cc624 [gke benchmarks] Reenable dotnet GKE benchmarks (#35253)
PR https://github.com/grpc/test-infra/pull/389 updates the docker images to fix benchmarks failing after upgrading to .NET 8 RTM. It needs to be merged first.

Closes #35253

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35253 from JamesNK:jamesnk/net8-gke-benchmarks 6ef28f111b
PiperOrigin-RevId: 591058035
2023-12-14 14:51:35 -08:00
Craig Tiller 8448d499e2 [promises] Add `AllOk` combinator (#35304)
`AllOk` runs a set of promises concurrently, and like `TryJoin` waits for them all to succeed or one to fail.
Unlike `TryJoin` it returns a single unified status of the composition, so cannot handle member promises that might return `StatusOr` or the like.

Closes #35304

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35304 from ctiller:all-review 30f5f809c6
PiperOrigin-RevId: 591031189
2023-12-14 13:21:35 -08:00
Esun Kim 9677ab7682 Updated zlib to 1.3 (#35147)
Closes #35147

PiperOrigin-RevId: 591028632
2023-12-14 13:12:45 -08:00
Craig Tiller b455726401 [call-v3] Convert server auth filter (#35299)
Closes #35299

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35299 from ctiller:v3-server-auth 32c3ee4821
PiperOrigin-RevId: 591000230
2023-12-14 11:22:42 -08:00
AJ Heller a0cab8318d [EventEngine] Replace Executor with EE::Run in Client Reactor (#35295)
Closes #35295

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35295 from drfloob:client-callback-reactor-ee de095c7f5c
PiperOrigin-RevId: 590983428
2023-12-14 10:41:56 -08:00
Hannah Shi b0090d5486 [ObjC] remove grpc_bazel_cpp_ios_event_engine_experiment_tests (#35283)
zero cases ran according to CI logs:
e.g.:
```
Executing tests from //test/core/event_engine/cf:cf_engine_test_on_ios
-----------------------------------------------------------------------------
2023-12-09 21:28:59,623 Creating a new simulator:
Name: New-iPhone X-16.1
OS: iOS 16.1
Type: iPhone X
2023-12-09 21:29:00,377 Created new simulator 9958E216-2526-4A95-A70F-8E006D6DB512.
2023-12-09 21:29:01,105 Will consider the test as test type logic_test to run.
Test Suite 'All tests' started at 2023-12-09 13:29:01.708
Test Suite 'All tests' passed at 2023-12-09 13:29:01.709.
	 Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.001) seconds
2023-12-09 21:29:01,715 Deleting simulator 9958E216-2526-4A95-A70F-8E006D6DB512 asynchronously.
2023-12-09 21:29:01,720 Done.
```

All logs in:
https://source.cloud.google.com/results/invocations/f77ffe5d-d5c8-4aea-a54d-80e02c7d54fd/targets/grpc%2Fcore%2Fpull_request%2Fmacos%2Fgrpc_bazel_cpp_ios_event_engine_experiment_tests/log
https://source.cloud.google.com/results/invocations/2a12c3be-1f7c-48af-8a2d-26982a72c04b/targets
https://source.cloud.google.com/results/invocations/2a12c3be-1f7c-48af-8a2d-26982a72c04b/targets/%2F%2Ftest%2Fcore%2Fevent_engine%2Fcf:cf_engine_test_on_ios/log

-----
PS: although no tests were executed, we are seeing random timeouts in the internal CI most likely due to the environment issue as tests are still being build and emulators are being lunched.

Closes #35283

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35283 from HannahShiSFB:remove-grpc_bazel_cpp_ios_event_engine_experiment_tests c149b4eb39
PiperOrigin-RevId: 590792491
2023-12-13 20:07:56 -08:00
Craig Tiller 4e666c740b Internal change
PiperOrigin-RevId: 590780731
2023-12-13 20:06:30 -08:00
Xuan Wang 70be5504d2 [PSM Interop] Point Interop Prod testing to new repo (#35305)
Tests:
* [x] [prod:grpc/java/v1.59.x/branch/psm-security](https://source.cloud.google.com/results/invocations/b452f79c-4766-4e0f-99fb-cbbf38a8529b)
* [x] [prod:grpc/java/v1.59.x/branch/xds_k8s_lb](https://source.cloud.google.com/results/invocations/5f3baf85-3710-47b4-b1bb-df690c295e33)
* [x] [prod:grpc/java/v1.59.x/branch/xds_url_map](https://source.cloud.google.com/results/invocations/61d45275-ebe7-412c-ae0a-c8932535b343)
<!--

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 #35305

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35305 from XuanWang-Amos:switch_interop_repo 4e01258f1b
PiperOrigin-RevId: 590776638
2023-12-14 03:44:44 +00:00
Tanvi Jagtap 8019903a44 Internal configuration cleanup
PiperOrigin-RevId: 590528536
2023-12-14 03:42:30 +00:00
Gregory Cooke 12c0058bf2 [Security - Testing] OpenSSL 1.0.2 and 1.1.1 CI Testing (#35236)
Enable OpenSSL 1.0.2 tests and add a container for 1.1.1 so that it is tested during portability testing as well.

Closes #35236

PiperOrigin-RevId: 590345568
2023-12-12 14:52:43 -08:00
Xuan Wang 4bf0109f52 [Python Misc] Use template to generate _parallel_compile_patch.py (#34847)
`_parallel_compile_patch.py` exist in multiple places, we should use template system to generate the content.

<!--

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 #34847

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/34847 from XuanWang-Amos:use_template_for__parallel_compile_patch 15b98ea826
PiperOrigin-RevId: 590262888
2023-12-12 11:00:34 -08:00
Xuan Wang 7f2ecdb3f8 [Python Observability] Building package and add to run_test (#34207)
### Changes in this PR
* Refactor and remove some Core/C++ dependencies to simplify Python Observability package build process.
* Refactored code to read config at Python layer.
* Enable observability build from source.
* Add observability to run_test.
  * Currently it's only enabled in Linux.
* Add error handler in run_test loaders.
  * Current framework will always visit modules in test directory then decide which tests to skip.
  * Since we're not building Observability for MacOS and Windows this step will fail with error `No module named 'grpc_observability'`.
  * After the change we'll just skip those modules.
    * We still have `_sanity_test` to make sure all tests are loaded correctly for each platform.
* Remov OC dependency as we're migrating to OTel.
  * Also removed trace from testing.
  * Note that trace propagation function was also removed because of this.

### Testing
* Passed existing tests.
* Tested locally, able to build observability from source using `GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install .`.

<!--

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 #34207

PiperOrigin-RevId: 590258014
2023-12-12 10:51:35 -08:00
Mark D. Roth 2cc1550e77 [release] add 1.60 to interop matrix (#35274)
Closes #35274

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35274 from markdroth:release_interop_matrix_update b1cfcad14b
PiperOrigin-RevId: 590257600
2023-12-12 10:42:20 -08:00
Craig Tiller ff63ad9413 [call-v3] Convert message compression filter (#35269)
Closes #35269

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35269 from ctiller:cg-compress 0304821f07
PiperOrigin-RevId: 590010564
2023-12-11 17:58:00 -08:00
Craig Tiller 57dacad8c7 [call-v3] Idle/max-age filters (#35270)
Closes #35270

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35270 from ctiller:cg-idle 5312003ca6
PiperOrigin-RevId: 589913523
2023-12-11 12:45:34 -08:00
Hannah Shi 42b57fc632 [ObjC] Support use frameworks! (#34921)
1. add swift example configured with `use_frameworks!`.

2. fix [unable to find C++ headers](https://source.cloud.google.com/results/invocations/2100300a-0b61-4e56-8a77-113e362f2c63/targets/grpc%2Fcore%2Fpull_request%2Fmacos%2Fgrpc_basictests_objc_examples/log) by renaming `.m` files to `.mm`.
`/Volumes/BuildData/tmpfs/altsrc/github/grpc/workspace_objc_macos_opt_native/src/objective-c/examples/SwiftUseFrameworks/Build/Build/Build/Products/Debug-iphoneos/gRPC-Core/grpc.framework/Headers/grpc_audit_logging.h:24:10: fatal error: 'memory' file not found #include <memory>`

3. fix [cyclic dependency errors](https://source.cloud.google.com/results/invocations/90972079-eade-4c07-a5c4-20f139c64d4e/targets/github%2Fgrpc%2Frun_tests%2Fobjc_macos_opt_native%2Fios-buildtest-example-switftsample/tests) by making `openssl/time.h` private.
`/Applications/Xcode_14.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/dispatch/dispatch.h:25:10: error: cyclic dependency in module 'Darwin': Darwin -> openssl_grpc -> UIKit -> Foundation -> CoreFoundation -> Dispatch -> Darwin`

"Basic Tests ObjC Examples" succeeds with this PR:
https://source.cloud.google.com/results/invocations/cff74ec0-43ca-43b9-a2ff-12edabc02896/targets

Closes #34921

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/34921 from HannahShiSFB:support-use-frameworks 87ddd23090
PiperOrigin-RevId: 589300261
2023-12-08 18:57:08 -08:00
Vignesh Babu f0d7df79da [EventEngine] Add virtual a MakeSlice method into MemoryAllocatorImpl and move its default implementation to GrpcMemoryAllocatorImpl
PiperOrigin-RevId: 589155443
2023-12-08 09:32:41 -08:00
Leonardo Pistone dfa9d853ff Fix Python DeprecationWarning: 'pipes' (#34941)
Starting from Python 3.11, the pipes module produces this warning:

DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13

Turns out that in this repo the pipes module is only used for the
"quote" function which is turn directly taken from the shlex module [1].

The shlex module is not deprecated as of today and is already used in
other places in this repo. The function shlex.quote has been around
since the ancient Python 3.3.

[1] https://github.com/python/cpython/blob/3.11/Lib/pipes.py#L64-L66

<!--

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 #34941

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/34941 from lepistone:deprecate-python-pipes 233c54c135
PiperOrigin-RevId: 588883480
2023-12-07 13:02:23 -08:00
Yijie Ma 1abfc97502 [EventEngine] Posix NativeDNSResolver implementation (#35153)
<!--

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 #35153

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35153 from yijiem:native_dns_resolver a4107f7d81
PiperOrigin-RevId: 588543137
2023-12-06 14:25:38 -08:00