Commit Graph

4504 Commits

Author SHA1 Message Date
GitHub Actions
7128a4ef7f Update artifacts branch 2026-01-08 07:01:20 +00:00
GitHub Actions
051c78ab80 Update artifacts branch 2025-02-27 21:06:56 +00:00
GitHub Actions
b6e418d03b Update artifacts branch 2024-10-14 17:31:44 +00:00
GitHub Actions
49559c6248 Update artifacts branch 2024-10-08 20:35:55 +00:00
GitHub Actions
81fe81dfa2 Update artifacts branch 2024-10-04 16:46:18 +00:00
Sergey Chebotarev
747e56e24b Add protected destructor (#37215)
c++

@drfloob @yashykt

Closes #37215

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37215 from d7d1cd:virtual_destructor 861ad17edae0f777c341019c513e1ede55b75a15
PiperOrigin-RevId: 652578386
2024-07-15 13:17:46 -07:00
Mark D. Roth
1e2292fdb1 [StatsPlugin] rename method to make it clear it's experimental
PiperOrigin-RevId: 648514528
2024-07-01 16:13:15 -07:00
Mark D. Roth
80d9cba5bc [StatsPlugin] Plumb channel args through StatsPluginChannelScope
This allows CallTracers to be created with parameters dictated by
channel args.

For the moment, I've used the EventEngine `EndpointConfig` API to expose
the channel args here, so as to avoid directly exposing
`grpc_core::ChannelArgs`.  We should determine a better API here before
we de-experimentalize the stats APIs.

Also add an experiment to be used in a subsequent PR.

PiperOrigin-RevId: 647730284
2024-06-28 10:44:26 -07:00
Craig Tiller
43bf1afd3d [party] Speed up iteration over wakeup bits (#37037)
Built on #37036 which should be merged first.

Before:
```
---------------------------------------------------------------
Benchmark                     Time             CPU   Iterations
---------------------------------------------------------------
BM_PartyCreate             37.6 ns         37.6 ns    111332125
BM_AddParticipant          40.1 ns         40.1 ns    104740937
BM_WakeupParticipant       17.3 ns         17.3 ns    242484270
```

After:
```
---------------------------------------------------------------
Benchmark                     Time             CPU   Iterations
---------------------------------------------------------------
BM_PartyCreate             36.7 ns         36.7 ns    111888436
BM_AddParticipant          39.0 ns         39.0 ns    107068935
BM_WakeupParticipant       17.0 ns         17.0 ns    244844476
```

Closes #37037

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37037 from ctiller:no-after-2 c3caee98ea332b3080d946371215eb7281a5b010
PiperOrigin-RevId: 647429841
2024-06-27 13:37:42 -07:00
Tanvi Jagtap
f416b31eec [Gpr_To_Absl_Logging] Remove gpr_log_severity_string (#37013)
[Gpr_To_Absl_Logging] Remove gpr_log_severity_string

This function is not getting used anymore gpr_log_severity_string

Closes #37013

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37013 from tanvi-jagtap:gpr_log_severity_string_remove 3346face4c1b5262e3af8f394f3c75729391ad6b
PiperOrigin-RevId: 645796077
2024-06-23 00:30:21 -07:00
Matthew Stevenson
8c9484f824 [alts] Remove duplicate declaration of AltsServerCredentials. (#37020)
It looks like this duplicate was accidentally added several years ago during a revert of a revert.

Closes #37020

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37020 from matthewstevenson88:alts-dup d0578c48f3ede42a3421a9db3391d12d7881f118
PiperOrigin-RevId: 645541373
2024-06-21 17:07:09 -07:00
Tanvi Jagtap
4c9db803a2 [Gpr_To_Absl_Logging] Fixing bugs (#36961)
### Problem 1

Context :
gpr_log() internally calls gpr_log_message() .
gpr_log_message() may either call gpr_default_log() or a user provided logging function.
gpr_default_log() uses absl LOG. This is the default. Most users will log this way.
For the small percentage of users who have customized the logging function, gpr_log will log to custom this function.

Problem :
We have converted half the instances of gpr_log to absl LOG().
For users who use the defaults - there will be no issue.
For the users who use a customized logging function
1. All the absl LOGs will log to the absl log sink.
2. All the gpr_log statements will log via this user provided function.
This is in-consistent behaviour and will cause confusion and difficulty in debugging.

Solution:
All logs should go to the same sink.
So we decided to make gpr_set_log_function a no op in this release.
The function will be deleted in the next release.
https://github.com/grpc/proposal/pull/425

### Problem 2

Context :
gpr_should_log is used to avoid computing expensive stuff for logging if the log is not going to be visible.

Problem :
gpr_should_log was referencing the GRPC_VERBOSITY flag and values set by gpr_set_log_verbosity .
However, actual logging happens based on the absl settings.
This is incorrect. Because if the old settings are not honoured, they should not be checked and no decision in code should be made based on settings which are not going to get used.

Solution :
Given the above changes in Problem 1, since all custom logging is disabled, all logging from gRPC with honour the absl LOG settings. Hence we modified the gpr_should_log function to refer to absl settings.

### Problem 3

We still have the issue of php using a custom log sink. We will address this in a separate PR.

### Problem 4

Tests related to test/core/end2end/tests/no_logging.cc are broken . These will be fixed in another PR.

Closes #36961

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36961 from tanvi-jagtap:fix_gpr_should_log 70c3224af16ba14ce9f1b58fa659d69fa8278eb3
PiperOrigin-RevId: 645096418
2024-06-20 11:17:34 -07:00
Craig Tiller
f04eee5cae [optimization] Always inline Construct and Destruct (#36951)
These are helpers to make it slightly easier to spell some kinds of code... and should never ever generate a function body.

(that said, I've seen them do so... fixing now)

Closes #36951

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36951 from ctiller:construct 26725911d7a0f0d272db617749c92e6957e8a6cb
PiperOrigin-RevId: 644132869
2024-06-17 14:25:36 -07:00
Craig Tiller
2e4efaf77a [dump-args] Move DumpArgs to use AbslStringify (#36897)
This provides better integration with our ecosystem, and allows more types to be automatically printed (yay tuples!).

Closes #36897

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36897 from ctiller:stringify da98d247e25e763116043deac8611a3c006825d9
PiperOrigin-RevId: 644120732
2024-06-17 13:47:06 -07:00
Craig Tiller
5bb53125e7 [arena] Add tests around newer arena code (#36933)
Ensure arena accounting is working, and add a test that a constant call size results in a constant call size estimate.

Closes #36933

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36933 from ctiller:arena-accounts 116c805633036ec21152555dab94ceb485f87c7f
PiperOrigin-RevId: 644102412
2024-06-17 12:48:51 -07:00
Craig Tiller
3e3d21164b [optimization] Add support for [[clang:always_inline]] and similar attributes (#36948)
We can demonstrably do a better job than compiler heuristics for large chunks of call-v3, so give ourselves that lever.

Closes #36948

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36948 from ctiller:always-inline 315c77a272aa5ca8183163b6550d7f372c12dcd7
PiperOrigin-RevId: 644101013
2024-06-17 12:43:28 -07:00
Tanvi Jagtap
4c01a30f37 [grpc][Gpr_To_Absl_Logging] Remove gpr_assertion_failed function (#36912)
[grpc][Gpr_To_Absl_Logging] Remove gpr_assertion_failed function

Closes #36912

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36912 from tanvi-jagtap:remove_gpr_assertion_failed faded6fd6d498ae935a5748c6402aa701e5538ef
PiperOrigin-RevId: 643699881
2024-06-15 21:22:44 -07:00
Xuan Wang
f87084d64f [Release] Bump version to 1.66.0-dev (on master branch) (#36892)
Change was created by the release automation script. See go/grpc-release.

Closes #36892

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36892 from XuanWang-Amos:bump_dev_version_202406112301 9b2898d716af0d8dcd90aab23e35959cd6c38855
PiperOrigin-RevId: 643027546
2024-06-13 09:40:37 -07:00
Tanvi Jagtap
0e23c2259d [Gpr_To_Absl_Logging] Remove GPR_ASSERT macro.
This was removed as a part of gpr to absl migration.

PiperOrigin-RevId: 642916172
2024-06-13 03:12:26 -07:00
Yousuk Seung
568fbfff8c [generic API] separate callback from cq in generic stub/service (#36447)
See https://github.com/grpc/proposal/pull/426

<!--

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

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36447 from yousukseung:generic-stub-service-refactor 1cc0cbdc4b74450f631115fefc254976383eb816
PiperOrigin-RevId: 642774012
2024-06-12 16:22:17 -07:00
Tanvi Jagtap
03e91b6811 [Gpr_To_Absl_Logging] Move function to test header form log.h (#36860)
[Gpr_To_Absl_Logging] Move function to test header form log.h
This is not really needed in log.h

Closes #36860

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36860 from tanvi-jagtap:move_function_to_test_header e6494bd06f2e4a08c91eb41f420607f9568b22ac
PiperOrigin-RevId: 642080756
2024-06-10 17:52:44 -07:00
Yijie Ma
87321f08b3 [OTPlugin] Per-channel OpenTelemetry plugin (#36729)
<!--

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

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36729 from yijiem:per-channel-stats-plugin 4786bed42f11b0a164f21e040439c3145f5d1e3d
PiperOrigin-RevId: 642030366
2024-06-10 14:52:57 -07:00
Tanvi Jagtap
1dbfd4c9f2 [grpc][Gpr_To_Absl_Logging] Deleting multiple instances of gpr_set_log_function (#36833)
Deleting multiple instances of gpr_set_log_function .
This function will be deleted soon.
https://github.com/grpc/proposal/pull/425

Closes #36833

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36833 from tanvi-jagtap:remove_gpr_log_partial_code 17517efee4795eb6e5ff7670252e7329c9cf12d7
PiperOrigin-RevId: 641268299
2024-06-07 09:14:44 -07:00
AJ Heller
5d586d3ae3 [EventEngine] Fix race between connection and its deadline timer on Windows (#36709)
Closes #36709

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36709 from drfloob:fix-win-ee-use-after-free dd4ae2683e14caf4fd339147e8139613e15dfafd
PiperOrigin-RevId: 641000031
2024-06-06 13:25:20 -07:00
Hannah Shi
687b31d7c7 [ObjC] default GRPC_IOS_EVENT_ENGINE_CLIENT to 1 (#36785)
It's still possible to define GRPC_IOS_EVENT_ENGINE_CLIENT=0 to disable event engine for iOS.

Closes #36785

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36785 from HannahShiSFB:default-to-event-engine-in-ios 441fe552a615c4bc698d5b5601946ceb73540063
PiperOrigin-RevId: 640716651
2024-06-05 18:26:38 -07:00
Craig Tiller
32a0218e6e [log] Use ABSL_ prefixed version of LOG/CHECK macros in the include/ tree (#36819)
We should separately add a lint to ensure no new usage slips in.

Closes #36819

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36819 from ctiller:absl 61207b02f45a6abf0d4d0ccba118a1c011586708
PiperOrigin-RevId: 640572209
2024-06-05 10:38:21 -07:00
Tanvi Jagtap
3eb1b1cf69 [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36713)
[grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log
In this CL we are migrating from gRPCs own gpr logging mechanism to absl logging mechanism. The intention is to deprecate gpr_log in the future.

We have the following mapping

1. gpr_log(GPR_INFO,...) -> LOG(INFO)
2. gpr_log(GPR_ERROR,...) -> LOG(ERROR)
3. gpr_log(GPR_DEBUG,...) -> VLOG(2)

Reviewers need to check :

1. If the above mapping is correct.
2. The content of the log is as before.
gpr_log format strings did not use string_view or std::string . absl LOG accepts these. So there will be some elimination of string_view and std::string related conversions. This is expected.

Closes #36713

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36713 from tanvi-jagtap:src_core_lib_misc_gpr_log 0a36bebcbc2577cd653e466ed9f4d3c86cab6ccc
PiperOrigin-RevId: 639729711
2024-06-03 04:22:01 -07:00
Yash Tibrewal
a88ee9ef99 [http2] Add experiment to modify behavior of GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA to throttle pings instead of blocking (#36374)
Implements https://github.com/grpc/proposal/pull/429

Currently, the behavior of `GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA` blocks more pings from being sent if we are sending too many pings without a data/header frame being sent as well. The original intention of this channel arg was to play nice with proxies that have restrictive settings when it comes to pings. This causes awkwardness when configuring keepalive pings for transports with long lived streams with sparse communication. In such a case, gRPC Core would stop sending keepalive pings since no data/header frame is being sent, resulting in a situation where we are unable to detect whether the transport is alive or not.

This change adds an experiment "max_pings_wo_data_throttle" to modify the behavior of `GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA` to throttle pings to a frequency of 1 minute instead of completely blocking pings when too many pings have been sent without data/header frames.

Closes #36374

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36374 from yashykt:ThrottlePings b5bd42a019b7744777da8e1ac9b6d6f3e90e1ae9
PiperOrigin-RevId: 638110795
2024-05-28 19:42:25 -07:00
Esun Kim
c9df35a4d1 [Clean-up] Fix MSAN and UBSAN issues found by clang-19 (#36707)
Fixed various MSAN and UBSAN issues found in an attempt to bump the clang version used for RBE. (https://github.com/grpc/grpc/pull/36685) As our xSAN tests are using RBE, it revealed a few new issues. This PR is to fix all of those.

Closes #36707

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36707 from veblush:fix-xsan ebbebc2d4e47f05ad2a406cdae6b0f603ac5242f
PiperOrigin-RevId: 636685138
2024-05-23 14:56:20 -07:00
Yash Tibrewal
27b82ca0ef [OTel C++] Deprecate SetTargetAttributeFilter method on OpenTelemetryPluginBuilder (#36567)
Implements the change in https://github.com/grpc/proposal/pull/431 and documents the current working of the `SetTargetAttributeFilter` method on `OpenTelemetryPluginBuilder`

Closes #36567

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36567 from yashykt:DeprecateTargetAttributeFilter f3f2fef8cb6143690fc0c076157af3b1b850d160
PiperOrigin-RevId: 633330427
2024-05-13 14:23:01 -07:00
Gregory Cooke
3e412b4af1 [security] Add notices for functions we will be removing (#36488)
Mark the following APIs in `TlsCredentialsOptions` as deprecated: `set_check_call_host`, `set_send_client_ca_list`, `set_crl_directory`. These APIs will be removed in release 1.66.

Closes #36488

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36488 from gtcooke94:AddDeprecationNotes df8e4346432b68a46e504f5eeb3527e2a9cae575
PiperOrigin-RevId: 632574716
2024-05-10 12:40:41 -07:00
Tanvi Jagtap
57b7e7780e [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT
Replaced GPR_DEBUG_ASSERT with absl DCHECK.
We dont need GPR_DEBUG_ASSERT definition anymore.

PiperOrigin-RevId: 632463102
2024-05-10 05:19:11 -07:00
AJ Heller
c0208416b6 Automated rollback of commit 82e5116fb0.
PiperOrigin-RevId: 632241053
2024-05-09 12:54:02 -07:00
Yash Tibrewal
87b71907d6 [Release] Bump version to 1.65.0-dev (on master branch) (#36544)
Change was created by the release automation script. See go/grpc-release.

Closes #36544

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36544 from yashykt:bump_dev_version_202405061956 69ee5c869efa544c0ce768792750720df9d11f07
PiperOrigin-RevId: 631187829
2024-05-06 14:41:36 -07:00
AJ Heller
82e5116fb0 Automated rollback of commit f45ac2c9e4.
PiperOrigin-RevId: 630539205
2024-05-03 17:30:40 -07:00
AJ Heller
f45ac2c9e4 Reland: [surface] Add an API to inject connected endpoints into servers
PiperOrigin-RevId: 630095574
2024-05-02 10:00:02 -07:00
Craig Tiller
e614dafd89 [woah] Remove deadline filter (#36477)
Also begin to eliminate `CallContext` in favor of just exposing `Call` - ultimately there's not really a need to introduce two types here, so I'm going to wind that idea back over a few PRs.

I've avoided making this an experiment as the changes required were quite structural.

Closes #36477

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36477 from ctiller:deadline-time 9856eeebe67d2ee680c05ae5426e8c94dd4c4d1c
PiperOrigin-RevId: 629599230
2024-04-30 19:45:22 -07:00
Tanvi Jagtap
3890766adf [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT (#36452)
[grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT
Replacing GPR_ASSERT with absl CHECK.
These changes have been made using string replacement and regex.
Will not be replacing all instances of CHECK with CHECK_EQ , CHECK_NE etc because there are too many callsites. Only ones which are doable using very simple regex with least chance of failure will be replaced.
Given that we have 5000+ instances of GPR_ASSERT to edit, Doing it manually is too much work for both the author and reviewer.

<!--

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

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36452 from tanvi-jagtap:tjagtap_include_grpc 08e612fccdf817db8dfce268a26343a9595d0843
PiperOrigin-RevId: 628318595
2024-04-26 00:42:19 -07:00
gRPC Team Bot
6dc64db1a8 Automated rollback of commit f61049f641.
PiperOrigin-RevId: 626062841
2024-04-18 09:43:26 -07:00
AJ Heller
f61049f641 [surface] Reland: Add an API to inject connected endpoints into servers
PiperOrigin-RevId: 625837807
2024-04-17 16:17:51 -07:00
Yash Tibrewal
0eb35d2baf [Sanity] Fix sanity (#36386)
Closes #36386

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36386 from yashykt:FixMaster cf8c7c36d3fdae59d97511013ba11859f18eb297
PiperOrigin-RevId: 625529031
2024-04-16 19:29:36 -07:00
Craig Tiller
67ba35bac0 [esoteric] Eliminate unused argument errors with GPR_DEBUG_ASSERT (#36373)
Eliminate cases where we get unused parameter errors only because of a debug assert, and because of short-circuit evaluation not add any overhead into release builds.

Closes #36373

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36373 from ctiller:ugh123 073ea1236a0963972de270cf0acf02ebe4e4bf50
PiperOrigin-RevId: 625435672
2024-04-17 01:22:14 +00:00
AJ Heller
1a8b22f2de [build] Restrict visibility for creating core credentials types. (#36216)
Closes #36216

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36216 from drfloob:conceal-core-cred-creation a44a2992736c2c45c044452ec892e6ac4d173b7b
PiperOrigin-RevId: 625425746
2024-04-17 01:21:29 +00:00
Yijie Ma
cd30592193 [release] Bump dev version 202404101721 (#36333)
<!--

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

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36333 from yijiem:bump_dev_version_202404101721 0a7cc5b4b740688b81417ef2da8f93b4c027f3ed
PiperOrigin-RevId: 623878150
2024-04-11 11:04:35 -07:00
Craig Tiller
5f2dcf8d42 [clang-format] Remove requirement that port_platform.h is at the top (#36280)
Closes #36280

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36280 from ctiller:port_platform-include-grpcpp-support-clang-format 75ac69b86ac6fb4c83361a451391c63869f3d6cb
PiperOrigin-RevId: 623363731
2024-04-09 21:03:05 -07:00
Craig Tiller
0d2ad09038 [clang-format] Remove requirement that port_platform.h is at the top (#36276)
Closes #36276

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36276 from ctiller:port_platform-include-grpcpp-clang-format 324257753042129f795e03574d8a4cb58be72c26
PiperOrigin-RevId: 623302430
2024-04-09 15:57:54 -07:00
Craig Tiller
0c742dbbb3 [clang-format] Remove requirement that port_platform.h is at the top (#36278)
Closes #36278

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36278 from ctiller:port_platform-include-grpc++-impl-clang-format d49bba38bb62de0f8fc9a34810f85abb3ade3093
PiperOrigin-RevId: 623302426
2024-04-09 15:48:13 -07:00
Craig Tiller
3383b8182f [clang-format] Remove requirement that port_platform.h is at the top (#36274)
Closes #36274

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36274 from ctiller:port_platform-include-grpc-clang-format e368acfad9ba00b401ed3483ccee7fe29f50c351
PiperOrigin-RevId: 623182400
2024-04-09 09:10:57 -07:00
Craig Tiller
83a17ff468 [clang-format] Remove requirement that port_platform.h is at the top (#36275)
Closes #36275

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36275 from ctiller:port_platform-include-grpcpp-impl-clang-format 89c43491d0ff4385c24c235854ab220d923307b1
PiperOrigin-RevId: 623178498
2024-04-09 09:08:28 -07:00
Craig Tiller
2bcca152cf [clang-format] Remove requirement that port_platform.h is at the top (#36277)
Closes #36277

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36277 from ctiller:port_platform-include-grpcpp-impl-codegen-clang-format 2670fb8c35ef741c778abd2338fea826b4cfe224
PiperOrigin-RevId: 623176416
2024-04-09 08:48:02 -07:00