2659 Commits

Author SHA1 Message Date
Tanvi Jagtap
01f57739a6 [PH2] Enable server_interceptors_end2end_test for PH2
PiperOrigin-RevId: 856145116
2026-01-14 04:05:09 -08:00
Tanvi Jagtap
b4ca1c97d8 [PH2] Enable client_interceptors_end2end_test for PH2
Adding PH2 experiment to the client_interceptors_end2end_test suite.

Also adding the Channel Arg wherever we missed it in the earlier PR : https://github.com/grpc/grpc/pull/41399/files

PiperOrigin-RevId: 856102643
2026-01-14 01:43:49 -08:00
Tanvi Jagtap
8a09cb0efa [PH2][Tests] Disabling Retry in multiple cpp end2end tests
PiperOrigin-RevId: 856040712
2026-01-13 22:32:34 -08:00
Michael Lumish
088436d01c [xds] Implement gRFC A101 (#41051)
This includes two major changes:

 1. An additional credentials option `sni_override` with the type `optional<string>`. If `nullopt`, it has no effect, and if set to the empty string it disables sending SNI entirely. Otherwise, the specified string will be sent.
 2. The implementation of [gRFC A101](https://github.com/grpc/proposal/blob/master/A101-SNI-setting-and-SNI-SAN-validation.md) using that new option. This includes options to set SNI and to validate SAN values against the set SNI value.

Closes #41051

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41051 from murgatroid99:xds_sni_support 6a1f8667dedc19947532720495b2932889236a12
PiperOrigin-RevId: 855765736
2026-01-13 09:48:39 -08:00
Tanvi Jagtap
1c2c9de77f [PH2][Tests] Enable time_change_test and mock_test
PiperOrigin-RevId: 855088648
2026-01-12 00:17:06 -08:00
Tanvi Jagtap
33588a85e2 [PH2][Tests] Enabling generic_end2end_test, end2end_test
Bypassing 1 test in end2end_test because we want earlier validation of the flakes.
Fixing the bug may take about 2-4 working days. We need to check for the stability of the suite and so we need these to run on Kokoro.

Disabled retries in async_end2end_test , but not enabled the suite because of some timeout failure.

Also, refactored the code to add a new function ApplyCommonChannelArguments

PiperOrigin-RevId: 854186178
2026-01-09 07:29:45 -08:00
Tanvi Jagtap - Google LLC
1170ac2ad6 [PH2][BUILD][Trivial] (#41374)
[PH2][BUILD][Trivial]

Closes #41374

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41374 from tanvi-jagtap:2026_01_09_temp 03501d9d22d6a96d1b3e3941986239f81d6f432d
PiperOrigin-RevId: 854080754
2026-01-09 01:23:49 -08:00
Tanvi Jagtap
7f02b665ce [PH2][Test] Enable hybrid_end2end_test and raw_end2end_test
streaming_throughput_test is edited to disabled retry interceptor. streaming_throughput_test has NOT been enabled. Have to debug a flake.

PiperOrigin-RevId: 853963781
2026-01-08 18:43:07 -08:00
Tanvi Jagtap
60094bd25f [PH2] Enabling client_callback_end2end_test
The full suite of 43 tests is passing with Retries disabled and PH2 on.
This is ready to be enabled on kokoro.

PiperOrigin-RevId: 853666979
2026-01-08 04:01:33 -08:00
Tanvi Jagtap
e1e3ebebf9 [PH2][Bug][Test][Tests] Adding peer_string_
This was missing in the transport.
Reference from CHTTP2 :
1. ab1d8f3c2f/src/core/ext/transport/chttp2/transport/chttp2_transport.cc (L2272)
2. ab1d8f3c2f/src/core/ext/transport/chttp2/transport/internal.h (L311)

Found while running cpp end to end test : function : CheckIsLocalhost
file : https://github.com/grpc/grpc/blob/master/test/cpp/end2end/end2end_test.cc
PiperOrigin-RevId: 853600618
2026-01-08 00:38:18 -08:00
Tanvi Jagtap - Google LLC
518f4a5ef0 [PH2][Trivial][BUILD] Adding a util file to cpp end2end folder (#41361)
[PH2][Trivial][BUILD] Adding a util file to cpp end2end folder

Adding some temporary helper functions for that.

Closes #41361

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41361 from tanvi-jagtap:2026_01_07_util_file 0702cb4958f80117f44c8bd796f58fa59ceba0c1
PiperOrigin-RevId: 853164713
2026-01-07 02:40:00 -08:00
Tanvi Jagtap
580a28f890 [PH2][AI] Adding a Gemini.md file for the cpp end to end test folder
PiperOrigin-RevId: 853114764
2026-01-07 00:13:36 -08:00
Tanvi Jagtap
1b9025f71d [PH2][Tests] Adding a few logs to help with future debugging
PiperOrigin-RevId: 853069945
2026-01-06 21:41:31 -08:00
Jordan Rupprecht
41780cddd1 Avoid multimap::find unspecified behavior (#41279)
When a `std::multimap` has multiple entries with the same key, calling `m.find(key)` returns an unspecified element.

Historically, this returns the first matching element. However, this is not guaranteed, and recent libc++ changes make this return an arbitrary element.

Using `m.equal_range(key)` is a replacement that will preserve the current behavior. The behavior of this is guaranteed to return a range of all matching elements in insertion order, and the beginning of the range is the same element as what's normally returned by `m.find(key)`.

Closes #41279

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41279 from rupprecht:multimap-find 70b116441d03eff80523e010b25336f5a75c70c2
PiperOrigin-RevId: 852844558
2026-01-06 10:44:32 -08:00
Craig Tiller
f045c84737 Rename EXPECT_DEATH tests to use a DeathTest suffix.
This change renames test suites containing EXPECT_DEATH assertions to include "DeathTest" in their name, following GoogleTest best practices for handling death tests.

PiperOrigin-RevId: 852840775
2026-01-06 10:39:03 -08:00
Tanvi Jagtap - Google LLC
a9ceb676ed [PH2][Tests] Enable cpp end2end tests that are working (#41339)
[PH2][Tests] Enable cpp end2end tests that are working

Closes #41339

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41339 from tanvi-jagtap:2026_01_04_bulk_enable_cpp d501d8c35778de3adf59b7e68e876caa7ffd5b45
PiperOrigin-RevId: 852185367
2026-01-05 01:30:13 -08:00
Tanvi Jagtap - Google LLC
5dd931da69 [PH2][Tests] Cpp end to end enabling multiple tests (#41332)
[PH2][Tests] Cpp end to end enabling multiple tests

Closes #41332

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41332 from tanvi-jagtap:2026_01_02_bulk_enable_passing_tests 4976d566fbb0942f1f03202b6f45c5c216846dba
PiperOrigin-RevId: 851511191
2026-01-02 19:20:52 -08:00
Tanvi Jagtap - Google LLC
4905ef5d27 [PH2][Tests] Cpp end to end enabling few tests (#41327)
[PH2][Tests] Cpp end to end enabling few tests

Closes #41327

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41327 from tanvi-jagtap:2025_12_30_thread_stress_test 5dd5e21feb7425436bd479bf3ca0d62f0a6b63c5
PiperOrigin-RevId: 850655928
2025-12-31 00:37:07 -08:00
Rishesh Agarwal
e96e1d0ce8 [BUILD] revert layering_check in test/cpp/end2end (#41326)
Closes #41326

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41326 from rishesh007:remove_parse_headers_2 9886d17265086ff3ec1979337250b66a6b4ba692
PiperOrigin-RevId: 850632406
2025-12-30 23:02:50 -08:00
Rishesh Agarwal
0d3ceaf900 [BUILD] revert layering_check in xds end2end test build file (#41302)
This reverts partial changes from  https://github.com/grpc/grpc/pull/41240.

As we don't want to maintain a separate copy of BUILD targets for all of the xDS protos, because
(a) this will be a maintenance burden
(b) it could lead to ODR violations if another target depends on both copies of the xDS proto targets.

Closes #41302

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41302 from rishesh007:remove_parse_headers 42134419d292d0b18ca1c1d71e7c3d1611c5115e
PiperOrigin-RevId: 850383567
2025-12-30 05:52:43 -08:00
Vignesh Babu
7d2ad5df80 [Build Fix] grpc/core/master/linux/grpc_flaky_network (#41272)
Should fix build failure: https://btx.cloud.google.com/invocations/0a1f31fb-d340-4ff5-af2c-25543f19068e/log

Closes #41272

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41272 from Vignesh2208:cbf 28a57fb83eebedce3353f59a8a0c528b58c8c24e
PiperOrigin-RevId: 846857224
2025-12-19 14:00:55 -08:00
Rishesh Agarwal
c705f05d29 Adding layering_check and parse_headers in end2end test build file (#41240)
Closes #41240

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41240 from rishesh007:layering_test_2 d9daaf9bb00fb3d6b09a12b8acca79b6e45c1873
PiperOrigin-RevId: 846532341
2025-12-18 20:52:18 -08:00
Rishesh Agarwal
09218ae889 Adding layering_check and parse_headers in test files (#41226)
Closes #41226

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41226 from rishesh007:layering_test 02e735767f22e934850d5e150c5e3d577bdfbecb
PiperOrigin-RevId: 844606259
2025-12-14 23:05:28 -08:00
Gregory Cooke
b87331376a [Testing] Fix spiffe portability (#41205)
Fix a few issues when build with OpenSSL versions

OpenSSL1.0.2 - copied some CRL related test code that was not valid assumptions for these tests.
OpenSSL1.1.1 - The regex is too sensitive, only do the regex check for BoringSSL
OpenSSL3 - We though the Invalid UTF8-SAN behavior should cause handshake failures for OpenSSL3 here and included different behavior, but that is still what is breaking. Let's revert that change.

Closes #41205

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41205 from gtcooke94:fix_spiffe_portability 8818df50053944444c1093bdf500944b690422d3
PiperOrigin-RevId: 842526173
2025-12-09 21:25:19 -08:00
Chris Kennelly
b9d6903f1e Automated Code Change
PiperOrigin-RevId: 839268035
2025-12-02 07:56:20 -08:00
Pawan Bhardwaj
76c81c27b0 [Cleanup] Remove workaround Apple CFStream bug from e2e tests (#41121)
<!--

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

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41121 from pawbhard:temp_check 185a3d8cc4f617d6df66d4f1adc738ef9a4b13f6
PiperOrigin-RevId: 838668301
2025-12-01 02:05:23 -08:00
Siddharth Nohria
f4742792e1 [Part 1] Resource Quota Write memory tracking.
Pass a MemoryAllocator to the serialize function, so that the write memory can be allocated towards Resource Quota accounting. Add templates for SerializationTraits, to allow implementations to continue using an implementation of Serialize, which does not take the allocator as a parameter. This change is a no-op for now, because all the callers of Serialize pass nullptr for the allocator.

PiperOrigin-RevId: 826159627
2025-10-30 13:21:27 -07:00
Rishesh Agarwal
3b48111cdc Enable layering_check and parse_headers for gRPC test targets.
PiperOrigin-RevId: 824369369
2025-10-26 23:30:20 -07:00
Yousuk Seung
3563928385 Use real Envoy service protos
PiperOrigin-RevId: 823718483
2025-10-24 17:16:51 -07:00
Vignesh Babu
01915a021f Enhance LatentSee to support extra event data.
This change introduces the ability for LatentSee events to carry additional, type-specific data. This data is stored in a variable-sized manner within the LatentSee bins and can be serialized to JSON as part of the event's arguments. The ZTrace collector is updated to log its events using this new LatentSee extra event mechanism.

PiperOrigin-RevId: 822286249
2025-10-21 14:51:47 -07:00
Gregory Cooke
59293cb539 [Testing] Fix portability breakage due to sensitive error regex in SPIFFE tests. (#40902)
Skip the regex that is breaking in ossl3 builds

Fix invalid UTF-8 SAN test for OpenSSL 3.0

This change updates the InvalidUtf8San test case in spiffe_ssl_transport_security_test.cc to account for different behavior in OpenSSL 3.0. OpenSSL 3.0 is stricter about invalid UTF-8 in certificate Subject Alternative Names (SANs), causing the handshake to fail. The expectations for server and client success are adjusted accordingly for OpenSSL 3.0+. Additionally, EXPECT_EQ is changed to ASSERT_EQ when extracting the peer to prevent crashes if extraction fails.

Closes #40902

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40902 from gtcooke94:test_fixes e5e88926e2554716b621adaeb7e2af8cf17eea3c
PiperOrigin-RevId: 821934652
2025-10-20 21:17:42 -07:00
Craig Tiller
339906443b [clang-format] Match include file ordering to internal clang-format (#40905)
gRPC is currently getting formatted with two different clang-format implementations, and due to some weirdness they have different include file orderings. This change introduces clang-format configuration to ensure that the two systems align - it's *highly* expected that this will need some maintenance going forward as the two systems evolve.

Closes #40905

PiperOrigin-RevId: 819606209
2025-10-15 00:24:11 -07:00
Rishesh Agarwal
ecb1d4a9b7 This PR adds the missing dependencies src/core:grpc_check and :channel_arg_names to the relevant parts of the codebase
PiperOrigin-RevId: 814622149
2025-10-03 03:29:30 -07:00
Adam Heller
f5ffef4d6b [test] Add PostMortem dumps on CHECK failures in test builds (#39945)
See `grpc_check.h`. This code  redefines the abseil `CHECK*` macros using custom gRPC macros when building tests. In `bazel test ...` builds, on check failure, `PostMortemEmit()` will dump state to the log before crashing.

Caveat: to prevent circular dependencies, code that `postmortem` relies on cannot use the custom gRPC CHECK macros. This is not much code, ~50 source files. grep for the `absl/log:check` bazel dependency.

Closes #39945

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/39945 from drfloob:grpc_check ca8e46718f2021e0df79aa67a3a0b0c751b3ce44
PiperOrigin-RevId: 807452496
2025-09-15 17:43:19 -07:00
Rishesh Agarwal
ad8457acc2 Refine dependencies in xDS end2end tests BUILD file.
PiperOrigin-RevId: 802921458
2025-09-04 01:56:25 -07:00
Rishesh Agarwal
30bbb567bd [build] Add Missing Dependencies for memstats, counted_service, xds_server, server_helper_lib, interop_server_lib, client_helper_lib, interop_client_main, grpc_cli, grpc_cli_libs in Preparation for Enabling layering_check
PiperOrigin-RevId: 802614113
2025-09-03 10:43:14 -07:00
Rishesh Agarwal
ed7eaa5e54 update deps for eventmanager's build
PiperOrigin-RevId: 802499797
2025-09-03 04:40:04 -07:00
Rishesh Agarwal
cefd055be2 Update cpp/end2end deps for layering_check and parse_headers
PiperOrigin-RevId: 802436743
2025-09-03 00:34:00 -07:00
Rishesh Agarwal
063b56ed89 [build] Add Missing Dependencies for parse_address_test, bad_client_test, duplicate_header_bad_client_test, memory_usage_client, memory_usage_server, memory_usage_callback_client, memory_usage_callback_server, memory_usage in Preparation for Enabling layering_check
PiperOrigin-RevId: 799897504
2025-08-27 00:04:31 -07:00
Mark D. Roth
5f4dec08d6 [metrics] add grpc.lb.backend_service label (#40486)
Implements [gRFC A89](https://github.com/grpc/proposal/blob/master/A89-backend-service-metric-label.md).

Closes #40486

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40486 from markdroth:metrics_backend_service_label b7486e23402d26707329db7e7f58de32d0e3bb4e
PiperOrigin-RevId: 797493482
2025-08-20 15:46:47 -07:00
Rishesh Agarwal
7d6ee34879 [build] Add Missing Dependencies for oauth2_utils, timer, server, fake_stats_plugin, fail_first_call_filter, interceptors_util, test_util in Preparation for Enabling layering_check
PiperOrigin-RevId: 796732408
2025-08-18 23:44:17 -07:00
Gregory Cooke
8cb02ab613 [Security] Spiffe Verification roll forward (#40476)
Roll forward #40321 with fixes relating to OpenSSL 1.0.2

This roll forward fixes two things broken by the original commit:
* OpenSSL 1.0.2 compatibility - `X509_up_ref` is not in 1.0.2, so `CRYPTO_add` is used along with compiler directives.
* The macOS tests flatten trust bundles, and two files in different directories were both named `ca.pem` in the new `spiffe_bundle_map_end2end_test.cc`. One was from the existing test that this new test file was modeled after and was not needed, so it was removed from the BUILD file resolving the double naming conflict.

Closes #40476

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40476 from gtcooke94:spiffe_roll_forward e30b7e4c1a873ff62565f557fac90e28225a3f56
PiperOrigin-RevId: 796537764
2025-08-18 12:50:18 -07:00
Rishesh Agarwal
89fbd793f3 Update gmock include paths in gRPC tests.
PiperOrigin-RevId: 796378960
2025-08-18 05:17:50 -07:00
Gregory Cooke
368c313ffe Revert "[Security][XDS] Support Verification with SPIFFE Bundle Maps … (#40445)
This reverts commit 65cdfba95c.

Closes #40445

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40445 from gtcooke94:revert_spiffe 392219abd3ee8424a8f3bd6d59c258a0db7c1ee2
PiperOrigin-RevId: 795130272
2025-08-14 11:43:13 -07:00
Gregory Cooke
65cdfba95c [Security][XDS] Support Verification with SPIFFE Bundle Maps (#40321)
This PR adds APIs discussed in https://github.com/grpc/proposal/pull/506 and https://github.com/grpc/proposal/blob/master/A87-mtls-spiffe-support.md to support verification with SPIFFE Bundle Map roots.

RELEASE NOTES:
* Adds support for SPIFFE Bundle Maps in as roots of trust per [gRFC A87](https://github.com/grpc/proposal/blob/master/A87-mtls-spiffe-support.md) and [gRFC L127](https://github.com/grpc/proposal/pull/506)

Closes #40321

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40321 from gtcooke94:spiffe_verification 6ddc24e6b422489234ac3da2aeeff7f337b54729
PiperOrigin-RevId: 793688101
2025-08-11 09:51:36 -07:00
Tanvi Jagtap - Google LLC
303de80c54 [Copybara] Making includes uniform . This is for build layering (#40388)
[Copybara] Making includes uniform . This is for build layering

Closes #40388

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40388 from tanvi-jagtap:ph2_settings bc30d3d013b0ac2b4f55e9040a2d2b8e25b42cdc
PiperOrigin-RevId: 791205698
2025-08-05 07:32:28 -07:00
Craig Tiller
806e186735 [telemetry] Prepare to introduce Concrete Types For Call Tracers
This change renames the existing interface types to have `Interface` in the name, and prepares the ground for concrete types for the call tracers.

PiperOrigin-RevId: 790173028
2025-08-02 11:42:16 -07:00
Gregory Cooke
783e053680 Spiffe xds (#40279)
Roll forward after rollback of #39708 with the change to move `JsonLoader` impls from the `spiffe_utils.h` to `spiffe_utils.cc`. There was potential to cause a linker issue with the impls in the header.

Closes #40279

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40279 from gtcooke94:spiffe_xds 66fce6de7a546d4cb638d79cacdd0f18718e52b4
PiperOrigin-RevId: 786762336
2025-07-24 10:56:46 -07:00
Tanvi Jagtap - Google LLC
ff89e7b32d [Fix][Sanity] Fix master (#40305)
[Fix][Sanity] Fix master

Closes #40305

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40305 from tanvi-jagtap:fix_master 77aaeab5c0f49b2fc0ed72df546079190ceed47c
PiperOrigin-RevId: 786572880
2025-07-24 15:18:36 +00:00
Craig Tiller
c675ef8859 Automated rollback of commit a9796dbe6f.
PiperOrigin-RevId: 786454401
2025-07-24 15:15:36 +00:00