Commit Graph

28 Commits

Author SHA1 Message Date
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
Craig Tiller 8174a75079
[iwyu] Add more test directories (#30952)
* [iwyu] Add more test directories

* fix

* fix

* fix

* fix

* fix

* Automated change: Fix sanity tests

* fix

* iwyu

* Automated change: Fix sanity tests

* fix

* fix

* fix

* fix

* Automated change: Fix sanity tests

* fix

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2022-09-29 06:47:07 -07:00
AJ Heller 64939531f9
Re-Reland: Add SRV and TXT record lookup methods to the iomgr API (#30246)
* Revert "Revert "Reland: Add SRV and TXT record lookup methods to the iomgr PAI (#30242)"

This reverts commit b5966f39eb.

* release lock before unreffing
2022-07-11 10:06:17 -07:00
AJ Heller b5966f39eb
Revert "Reland: Add SRV and TXT record lookup methods to the iomgr PAI (#30242)
* Revert "Reland: Add SRV and TXT record lookup methods to the iomgr API (#30206)"

This reverts commit c229703f9f.

* Automated change: Fix sanity tests

Co-authored-by: drfloob <drfloob@users.noreply.github.com>
2022-07-08 08:53:37 -07:00
AJ Heller c229703f9f
Reland: Add SRV and TXT record lookup methods to the iomgr API (#30206)
* Revert "Revert "Add SRV and TXT record lookup methods to the iomgr API (#30078)" (#30176)"

This reverts commit 2c3acbb2b2.

* one way to fix the ares handle race. Another option: work_serializer

* replace mu with parent's work serializer

* add lock annotations

* Revert "replace mu with parent's work serializer"

This reverts commit 0fce0ae150.

* statusor -> optional

* Automated change: Fix sanity tests

* add missing dep

Co-authored-by: drfloob <drfloob@users.noreply.github.com>
2022-07-06 16:33:05 -07:00
Esun Kim 36102dc910
gtestify test/core/surface (#30212) 2022-07-06 10:14:37 -07:00
AJ Heller 2c3acbb2b2
Revert "Add SRV and TXT record lookup methods to the iomgr API (#30078)" (#30176)
This reverts commit c835402dd9.
2022-07-01 14:53:35 -07:00
AJ Heller c835402dd9
Add SRV and TXT record lookup methods to the iomgr API (#30078)
* Rename ResolveName to LookupHostname (same as EventEngine)

* Add stubs and no-op impls for LookupTXT and LookupSRV

* add native resolver tests that assert unimplemented

* extract custom name_server-setting logic and remove goto

* Separate SRV queries from grpc_dns_lookup_ares

* add necessary fixits before merging

* Automated change: Fix sanity tests

* fix missing ExecCtx on resolver tests

* separate out TXT lookup from hostname lookup (now all 3 are separate)

* rm DNS and update docs

* fix the fixer (forgot to add deps to BUILD)

* remove unused SRV and TXT args from ares hostname lookup method

* rename hostname-only ares dns lookup method

* refactor AresRequest using template method pattern

* Add name_server to Ares LookupHostname internals (needs iomgr API change)

* fix resolver test, callback should not be called on cancellation

* implement Ares-iomgr SRV and TXT lookup methods (verified manually)

Used a custom bind server with some redacted tests from
`resolve_address_test` to ensure both are working as expected.

* cleanup cruft

* unify common ares request setup logic between A, AAAA, TXT, and SRV

* generate_projects

* comment out unused args

* DNSResolver iomgr API uses Duration; hostname has all args now

* rm stale TODOs

* windows fix - bad variable name

* windows fix

* Automated change: Fix sanity tests

* reviewer feedback

* make protected members private

* move common properties to AresRequest base class

* localhost TXT results are empty, not an error

* reviewer feedback

* fix

Co-authored-by: drfloob <drfloob@users.noreply.github.com>
2022-07-01 09:24:06 -07: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
Craig Tiller fe913387da
Remove idempotent/cacheable requests (#28922)
* Remove idempotent/cacheable requests

* more cleanup

* bump core version

* fix

* fix

* fix

* review feedback

* fixes

* fix

* remove more

* objc

* fix

* fix

* fix

* scrub

* Modify XdsRbacTests

Co-authored-by: Yash Tibrewal <yashkt@google.com>
2022-03-04 14:42:59 -08:00
yihuaz b458db9246
Eliminate gRPC insecure build (#25586)
* force submit

* fix test error

* remove is_client from local tsi and its callsites

* fix too_many_pings_test

* add missing dep
2022-02-10 11:17:18 -08:00
apolcyn 1a8d2b6760
API to cancel grpc_resolve_address (#27883)
Add an API to cancel grpc_resolve_address
2021-12-20 14:01:06 -08:00
AJ Heller 2d16865693
Delete libuv-iomgr implementation and GRPC_UV build option (#27188)
This has been unmaintained for years, last supported in gRPC-core v1.24.
2021-08-31 13:26:43 -07:00
Esun Kim ca945a58e9
Introduced grpc_error_handle (#25902)
- Define grpc_error_handle
- Replace grpc_error* with grpc_error_handle
2021-04-22 12:00:28 -07:00
Mark D. Roth 9404f66f70 Replace most uses of gpr_asprintf() with absl calls. 2020-07-07 12:01:02 -07:00
Mark D. Roth c769951764 Remove deprecated variant of JoinHostPort(). 2020-05-08 09:13:26 -07:00
Esun Kim e45b60d1fe Fix unique_ptr<char> memory allocation mismatch 2019-11-07 17:53:59 -08:00
Esun Kim b2b7fc9af8 Replaced grpc_core::UniquePtr with std::unique_ptr 2019-11-07 13:05:39 -08:00
Soheil Hassas Yeganeh dbf88dd66f Revert "Revert "Introduce string_view and use it for gpr_split_host_port.""
This reverts commit 80c177d4c4.
2019-06-27 20:56:15 -04:00
Soheil Hassas Yeganeh 80c177d4c4
Revert "Introduce string_view and use it for gpr_split_host_port." 2019-06-26 16:22:13 -04:00
Soheil Hassas Yeganeh ef0f9bf7ec Introduce string_view and use it for gpr_split_host_port. 2019-06-20 23:19:34 -04:00
yang-g e75fc243da change tests to use the new class instead of grpc_test_init 2018-11-30 08:57:38 -08:00
kpayson64 c7c35c5cd7 Disable SO_REUSEPORT disabled test for uv tests 2018-04-09 14:09:29 -07:00
Vijay Pai ae376bf9d9 Privatize host_port.h; was not used in any wrapped language implementation 2018-01-25 23:06:24 -08:00
Craig Tiller be98d24841 clang-format after nullptr changes 2017-11-10 15:26:57 -08:00
Craig Tiller 4ac2b8e585 Enable clang-tidy as a sanity check, fix up all known failures 2017-11-10 14:14:17 -08:00
Yash Tibrewal 40422d5fa6 Merge master 2017-11-06 14:43:31 -08:00
Yash Tibrewal 34a57d0346 rename all test core files to cc and a lot of C++ style conversions 2017-10-25 16:23:01 -07:00