yuanweiz
20d4f1b233
[bzlmod] Avoid hard-coding workspace name so C++ DNS tests can build. ( #41355 )
...
Adapted from PR #40420
The original author left team and the PR couldn't be merged due to CLA check.
<!--
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 #41355
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41355 from yuanweiz:workspace adb60674979a5d722f45e13e7c75291f22722f41
PiperOrigin-RevId: 853745450
2026-01-08 08:07:55 -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
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
7241d8ab6a
[build] Add Missing Dependencies fortest/cpp/client, test/cpp/codegen, test/cpp/common in Preparation for Enabling layering_check
...
PiperOrigin-RevId: 799470627
2025-08-26 02:23:00 -07:00
Craig Tiller
66a137f1d7
[sanity] Restore it ( #38869 )
...
Closes #38869
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38869 from ctiller:nubbins 972d734cdf45a4786de53c51b2ce8cf97a3d38ff
PiperOrigin-RevId: 731570368
2025-02-26 21:26:56 -08:00
Craig Tiller
07188632f4
Tiny formatting cleanups for portability
...
PiperOrigin-RevId: 731512282
2025-02-26 17:22:27 -08:00
Craig Tiller
aebdfbe6ea
Tag some internal build state
...
PiperOrigin-RevId: 731469858
2025-02-26 15:09:58 -08:00
Pawan Bhardwaj
fdf579fe2d
Protect grpc generated headers from unwanted system macros ( #38474 )
...
Adding "ports_def" and "ports_undef" file which is used to protect against unwanted system macros interaction for grpc headers
initially taken file from protobuf , more macros can be added based on requirement.
Added guard in generated file
Reference :
https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/port_def.inc
https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/port_undef.inc
#[33501](https://github.com/grpc/grpc/issues/33501 )
Closes #38474
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38474 from pawbhard:add-def-undef e2ea49c92dd72fed0ac3874cb18381deddfb5991
PiperOrigin-RevId: 725815567
2025-02-11 16:35:13 -08:00
Pawan Bhardwaj
860e87da67
[CodeGen][CPP] Added support for service "deprecated" option ( #38493 )
...
In proto we can add deprecated option in service definition
example:
```
service Greeter {
option deprecated = true;
```
This PR help in translating this to marking generated service class as deprecated (which enables warning while using)
`class [[deprecated]] Greeter final {`
Sample warning
```
/usr/local/google/home/bpawan/workspace/code/grpc/examples/cpp/helloworld/greeter_async_client.cc:104:28: warning: 'Greeter' is deprecated [-Wdeprecated-declarations]
104 | std::unique_ptr<Greeter::Stub> stub_;
```
Encapsulated support with compiler flag "allow_deprecated" which will be by default false . Hence will not be impacted existing users
Closes #38493
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38493 from pawbhard:deprecated-support bd143e37ac848a2e1ff4bf6a62f239cf98244092
PiperOrigin-RevId: 723134226
2025-02-04 10:15:17 -08:00
Mark D. Roth
55b1ae9700
[build] replace grpc_proto_library rules with separate proto_library/cc_proto_library/cc_grpc_library rules ( #37943 )
...
Closes #37943
PiperOrigin-RevId: 691538475
2024-10-30 13:45:41 -07:00
Craig Tiller
dbb5164ac7
[clang-format] Remove custom clang-format rules for include ordering ( #37820 )
...
Closes #37820
PiperOrigin-RevId: 682352913
2024-10-04 09:44:20 -07:00
Mark D. Roth
0944410d6c
[reorg] move test/core/util -> test/core/test_util ( #36446 )
...
Closes #36446
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36446 from markdroth:reorg_test 5dcc85e006581a8fc52a3a914baa5f33e4a21589
PiperOrigin-RevId: 629229220
2024-04-29 17:06:40 -07:00
AJ Heller
2e69349731
[codegen] Escape variable delimiters in raw comment printing ( #32190 )
2023-01-24 14:39:19 -08:00
Yijie Ma
f99b8b5bc4
Convert c-style comments to C++-style comments ( #31923 )
...
* baseline
* fix clang-tidy
* manually revert these files
* manually fixup at eof
* revert 2 more files
* change check_deprecated_grpc++.py
* change end2end_defs.include template
* fix check_include_guards.py
* untrack tools/distrib/python/convert_cstyle_comments_to_cpp.py
not yet ready to be submitted
* fix
yapf check_include_guards.py
remove a space...
* fix version.cc.template
* fix version_info.h.template
2022-12-22 23:01:53 -08:00
Esun Kim
27bf7238f4
Added include guard to mock headers ( #31909 )
...
* Added include guard to mock headers
* Fix test
2022-12-16 14:42:41 -08:00
Cheng-Yu Chung
1b05576aa3
[cleanups] Clean up GrpcLibraryInitializer ( #31894 )
...
* Clean up `GrpcLibraryInitializer`
* Update
* Automated change: Fix sanity tests
2022-12-17 01:08:35 +08:00
Cheng-Yu Chung
5498481265
Remove include/grpcpp/impl/codegen/proto_utils.h ( #31532 )
2022-11-29 21:33:55 +08:00
Cheng-Yu Chung
e7f9fb03f4
Remove include/grpcpp/impl/codegen/server_callback_handlers.h ( #31533 )
2022-11-21 11:40:58 -05:00
Esun Kim
0ba0c4bf74
Added googletest clang-tidy checks ( #31610 )
...
* Added google-googletest
* Autofix
* Fix test names
* Fix
2022-11-18 13:02:20 -08:00
Cheng-Yu Chung
405de7ac72
Remove include/grpcpp/impl/codegen/status.h ( #31285 )
...
* Remove `include/grpcpp/impl/codegen/status.h`
* Include removing status_code_enum
* Update
* Update
* Update zlib (#31356 ) (#31357 )
To mitigate CVE-2022-37434
* Update
Co-authored-by: Mikhail Lappo <miklelappo@users.noreply.github.com >
2022-11-18 13:22:55 -05:00
Cheng-Yu Chung
3d68bb735a
Remove include/grpc/impl/codegen/byte_buffer.h ( #31674 )
2022-11-17 15:50:03 -05:00
Cheng-Yu Chung
47b9a57de9
Remove g_glip and class GrpcLibraryInterface ( #30414 )
...
* Remove `g_glip` and `class GrpcLibraryInterface`
* Update
* Update
* Update
* Automated change: Fix sanity tests (#20 )
* Update
* Update
* Update
* Test
* Fix
* Revert "Test"
This reverts commit 2f5c77e98d9601b84123377f3e3746be192c4cbf.
* More fix
* More fix
* More fix
* Minor fix
* Revert "Minor fix"
This reverts commit 1ee3ae4da1779fb8c2abc11dace06f09532b17d9.
* Revert "More fix"
This reverts commit 1fc234896b088ec51e02c1dde79cf70db1ef90ae.
* Revert "More fix"
This reverts commit 851393c0e6d668c9c36332b552eefc70be314a4c.
* Revert "More fix"
This reverts commit ed342a51d0dbd47eff20c7c2bbe10a523ea8ca92.
* Revert "Fix"
This reverts commit 286ad8e6394082243c8089c5f8ee904db5f49d7e.
2022-11-14 15:30:09 -05:00
Cheng-Yu Chung
493b961dfb
Remove include/grpcpp/impl/codegen/sync_stream.h ( #31289 )
2022-10-24 18:01:12 -04:00
Cheng-Yu Chung
f4b25ab837
Remove include/grpcpp/impl/codegen/stub_options.h ( #31287 )
2022-10-21 20:23:54 -04:00
Cheng-Yu Chung
0fbc4a715c
Remove include/grpcpp/impl/codegen/service_type.h ( #31282 )
2022-10-17 16:26:03 -04:00
Cheng-Yu Chung
d699b574a8
Remove include/grpcpp/impl/codegen/server_callback.h ( #31279 )
2022-10-12 15:37:14 -04:00
Cheng-Yu Chung
a1cb2f3d6f
Remove include/grpcpp/impl/codegen/server_callback.h ( #31280 )
2022-10-12 14:34:18 -04:00
Cheng-Yu Chung
d1c04427f3
Remove include/grpcpp/impl/codegen/rpc_method.h ( #31269 )
2022-10-11 10:57:44 -04:00
Cheng-Yu Chung
cc58369279
Remove include/grpcpp/impl/codegen/completion_queue.h ( #31059 )
...
* Remove `include/grpcpp/impl/codegen/completion_queue.h`
* Update
* Update
* Fix build error
* Update
2022-10-10 11:35:09 -04:00
Cheng-Yu Chung
d76c6f61f0
Remove include/grpcpp/impl/codegen/method_handler.h ( #31249 )
2022-10-06 15:50:54 -04:00
Cheng-Yu Chung
488f17eb46
Remove include/grpcpp/impl/codegen/message_allocator.h ( #31246 )
2022-10-06 13:18:24 -04:00
Cheng-Yu Chung
4ba0f9afb5
Revert "Revert "Remove include/grpcpp/impl/codegen/client_callback.h ( #31005 )" ( #31079 )" ( #31087 )
...
This reverts commit da08fe1d6f .
2022-10-04 13:59:32 -04:00
Cheng-Yu Chung
0e8a6515df
Remove include/grpcpp/impl/codegen/client_context.h ( #31006 )
...
* Remove `include/grpcpp/impl/codegen/client_context.h`
* Update
* Update
2022-10-03 18:01:22 -04:00
Craig Tiller
da08fe1d6f
Revert "Remove include/grpcpp/impl/codegen/client_callback.h ( #31005 )" ( #31079 )
...
This reverts commit 17f515744f .
2022-09-20 18:58:54 -07:00
Cheng-Yu Chung
17f515744f
Remove include/grpcpp/impl/codegen/client_callback.h ( #31005 )
2022-09-20 13:51:55 -04:00
Cheng-Yu Chung
b765b06155
Remove include/grpcpp/impl/codegen/async_stream.h ( #30941 )
...
* Remove `include/grpcpp/impl/codegen/async_stream.h`
* Fix
* Fix
* Update
2022-09-14 13:40:35 -04:00
Cheng-Yu Chung
cb3d7a9e9e
Revert "Revert "Remove include/grpcpp/impl/codegen/async_unary_call.h"" ( #30955 )
...
* Revert "Revert "Remove `include/grpcpp/impl/codegen/async_unary_call.h` (#30945 )" (#30950 )"
This reverts commit 0c454fa875 .
* Fix
2022-09-13 15:57:15 -04:00
Cheng-Yu Chung
6e57952589
Revert "Revert "Remove include/grpcpp/impl/codegen/async_generic_service.h ( #30450 )" ( #30951 )" ( #30956 )
...
This reverts commit a81b61113c .
2022-09-13 14:45:38 -04:00
Craig Tiller
0c454fa875
Revert "Remove include/grpcpp/impl/codegen/async_unary_call.h ( #30945 )" ( #30950 )
...
This reverts commit 7dbc73d4f3 .
2022-09-12 16:44:07 -07:00
Craig Tiller
a81b61113c
Revert "Remove include/grpcpp/impl/codegen/async_generic_service.h ( #30450 )" ( #30951 )
...
This reverts commit c6326bbc75 .
2022-09-12 16:43:55 -07:00
Cheng-Yu Chung
c6326bbc75
Remove include/grpcpp/impl/codegen/async_generic_service.h ( #30450 )
...
* Remove `include/grpcpp/impl/codegen/async_generic_service.h`
* Fix test
* Reserve compatibility
2022-09-12 18:19:59 -04:00
Cheng-Yu Chung
7dbc73d4f3
Remove include/grpcpp/impl/codegen/async_unary_call.h ( #30945 )
2022-09-12 18:05:10 -04:00
AJ Heller
18a8f6aad9
Refactor end2end tests to exercise each EventEngine ( #29202 )
...
* Refactor end2end tests to exercise each EventEngine
* fix incorrect bazel_only exclusions
* Automated change: Fix sanity tests
* microbenchmark fix
* sanitize, fix iOS flub
* Automated change: Fix sanity tests
* iOS fix
* reviewer feedback
* first pass at excluding EventEngine test expansion
Also caught a few cases where we should not test pollers, but should
test all engines. And two cases where we likely shouldn't be testing
either product.
* end2end fuzzers to be fuzzed differently via EventEngine.
* sanitize
* reviewer feedback
* remove misleading comment
* reviewer feedback: comments
* EE test_init needs to play with our build system
* fix golden file test runner
Co-authored-by: drfloob <drfloob@users.noreply.github.com >
2022-03-30 15:43:05 -07:00
Richard Belleville
468768865b
Make Buildifier Sanity Test Strict ( #27807 )
...
* Fix all lint errors in repo.
* Use strict buildifier by default
* Whoops. That file does not exist
* Attempt fix to buildifier invocation
* Add missing copyright
2021-11-03 14:57:04 -07:00
Craig Tiller
d1e01ac139
Add a test for a (now-illegal) build file construct ( #27602 )
...
* Add a test for a (now-illegal) build file construct
* add to test suite!
* fix
* fix
* fix syntax
2021-10-06 07:43:59 -07:00
Craig Tiller
ea389c00c2
Adjust include order per style guide ( #27175 )
...
Introduce clang-format configuration to sort includes closer to our rules.
2021-09-08 12:14:44 -07:00
vperus
53701640c6
codegen: Correct indentation ( #26702 )
2021-07-21 10:52:08 -07:00
Vijay Pai
4aa9591662
Devirtualize experimental_async() as a stub function ( #26532 )
2021-06-24 16:32:02 -07:00
Vijay Pai
cf1ebf7387
Remove experimental tag from uses of the C++ callback API ( #26495 )
2021-06-20 00:47:07 -07:00
mkruskal-google
2bf75aa68a
Add optional suffix to client-side stub objects ( #25996 )
...
* Adding suffix for stats handling to gRPC
* Fixing typo
* Fixing codegen, adding tests
* Fixing test failures
* Adding nullptr default in StubOptions
* Updating golden test file
* Replacing std::make_unique with absl::make_unique for pre-C++14 compatibility
* Fixing clang format errors
* Reuse stub options for generic stubs
* Cleaning up compiler warnings in GenericStub
2021-04-26 17:19:43 -07:00