Commit Graph

21 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
Yash Tibrewal 5f6c357e74
Move some targets from //: to //src/core: (#31402)
* temp

* temp

* temp

* top BUILD builds

* everything builds

* buildify

* temp fix_build_deps change

* fix gpr_atm

* additional changes

* fix build files

* nofixdeps

* Generate projects

* json_args

* fix context

* Generate projects

* Sprinkle some avoid_dep tags

* Run fix_build_deps

* Remove additional avoid_dep

* Revert some targets

* grpc_mock_cel
2022-10-20 20:12:53 -07:00
Cheng-Yu Chung 543b290203
Build Target Reorganization Part 1 (#30518)
* Clean up gpr_base

* Remove `avoid_dep` for target `gpr`

* Add alias `gpr_base` for `gpr` for compatibility

* Fix tool error

* Update

* Remove temporary `gpr_base`

* Remove unused `alt_gpr_base_legacy`
2022-08-11 16:58:08 -04:00
Craig Tiller 05e6bf2e4a
[build] Add test/core/util, test/core/event_engine to auto build deps (#30364)
* [build] Add test/core/util, test/core/event_engine to auto build deps

* deal with suppressions

* fix suppressions

* Automated change: Fix sanity tests

* fix

* fix

* fix

* fix

* progress

* Automated change: Fix sanity tests

* fix

* fix

* fix

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2022-07-25 21:59:25 -07:00
Craig Tiller f6a96e5506
[build] Handle subdirectory BUILD files (#30327)
* Revert "Revert "[build] Handle subdirectory BUILD files (#30292)" (#30319)"

This reverts commit c6e9203fcb.

* fix
2022-07-20 13:39:44 -07:00
Craig Tiller c6e9203fcb
Revert "[build] Handle subdirectory BUILD files (#30292)" (#30319)
This reverts commit 7e50d149bc.
2022-07-18 13:02:48 -07:00
Craig Tiller 7e50d149bc
[build] Handle subdirectory BUILD files (#30292)
* progress

* progress

* progress

* progress

* Automated change: Fix sanity tests

* progress

* progress

* progress

* progress

* fixes

* fix

* progress

* progress

* progress

* progress

* Automated change: Fix sanity tests

* fix

* handle relative paths

* [build] Handle subdirectory BUILD files

* Automated change: Fix sanity tests

* fix

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2022-07-15 21:00:45 -07:00
Craig Tiller cdd340cbdb
[iwyu] Add test/core/uri (#30000)
* [iwyu] Add test/core/uri

* Automated change: Fix sanity tests

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2022-06-16 19:36:09 -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
Mark D. Roth 90340c24c4
URI parser: fix percent-encoding and add ToString() method (#28485)
* fix URI percent-encoding character set

* clean up and fix edge cases

* add ToString() method to URI parser with appropriate percent-encoding logic

* clang-format

* fix ordering for URI::QueryParam

* fix decoding edge cases in parsing

* generate upper-case hex digits, as per the RFC

* clang-format

* reuse offset variable
2022-01-10 15:48:17 -08:00
donnadionne e520fc137c
xDS Federation: bootstrap and xds_resolver changes (#27938)
* xDS Federation: bootstrap and xds_resolver changes

* code review fixes

* fixing code review comments

* fixing code review comments

* fixing code review comments

* code review comments

* fixing code review comments

* First very basic test to make sure parsing and reconstruction work as
expected.

* clean up

* fixing logic error about authority

* fixing resource type parsing

* fixing code review comments

* simplify parsing!

* Parsing method signature update

* fixing code review comments

* clean up

* working progress for the test with generated bootstrap

* reorg the bootstrap file

* fixing tests

* Adding more to test authorities

* Added a test and it passes

* addressing code review comments

* code review comments to make parser cleaner and more efficient

* Merge in authority prefixes

* fixing sanity error and xds boostrap test error

* small fix

* Release all tests that pass; reduce scope for DeadUpdate

* Updated test strcuture and how to pass in the index for balancers to be
used as xds server uri and authority xds server uri

* code review comments

* code review fixes

* code review comment

* Making test structure changes

* fixing code review comments

* fixing code review comments

* Fixing test regression

* fixing bootstrap tests

* cleanup files

* enabling localhost:xxx for xds server; updated server tests and will fix
one more NameExpected test with testsetup.

* Finally removing fake reolsver for xds server

* Fixing bootstrap tests

* Rewrite builder

* Fixing code review comments

* fixing code review comments

* Fixing all tests to use Setup again

* fixing small sanity error

* Found the source of xds server nack test faiure and fix added

* small code review fixes

* Remove fake resolver! YAY!

* Fixing according to code review comments

* Setup plugin in bootfile

* Added more tests.

* Adding server test

* fixing a regression

* regression

* sanity fix

* fixing code review

* fixing code review comments

* Re-combine SecurityNaming tests.

* Add Rds new resource type and new tests

* Added PercentEncode test

* fixing code review comments

* refactor test a bit more

* fixing code review comments

* fixing according to code review comments

* fixing code review comments

* fixing code review comments
2022-01-05 11:13:11 -08: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 969f3d55ef
Check that grpc_package statements have the right name (#27608)
* named-right

* Update check_package_name.py

* Automated change: Fix sanity tests

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2021-10-05 23:01:11 -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
AJ Heller a63f188153
Add conversion method for absl::Status to grpc_error* (#25896) 2021-04-07 18:13:13 -07:00
AJ Heller 3b15b508dd Convert URIParser test to googletest
Note: Adding gtest caused the sanitizer to reorder a few build files.
2020-12-28 14:02:51 -08:00
AJ Heller 6cc1d2edb0 Fix overpermissive percent-decoding of URIs ('%eth1' case)
Invalid `%nn` 3-character strings were being incorrectly decoded. For
example, in `%eth1`, the `%e` was being translated to ASCII 14, while
the correct behavior is to leave `%eth1` unchanged since the string
`%et` is an invalid 3-character percent encoding.
2020-12-09 08:06:27 -08:00
AJ Heller 880a854f0e Convert URI parser to C++ #24701 2020-12-07 12:13:22 -08:00
Esun Kim 47dd5fd78e Fix by modernize-use-bool-literals 2020-10-16 10:14:45 -07:00
Yash Tibrewal bef69db1a6 A bit of cleanup 2020-08-17 16:24:40 -07:00
Mark D. Roth 12fc8f6a35 Change URI parser to take absl::string_view and move tests to correct directory. 2020-08-17 10:46:01 -07:00