Commit Graph

51 Commits

Author SHA1 Message Date
Yash Tibrewal 98417f3bd0
Revert "Revert "[otel] Add bazel dependency"" (#33560)
Reverts grpc/grpc#33559
2023-06-27 12:28:47 -07:00
Mark D. Roth 017153a0c5
Revert "[otel] Add bazel dependency" (#33559)
Reverts grpc/grpc#33548
2023-06-27 10:34:45 -07:00
Yash Tibrewal 875b7fdcff
[otel] Add bazel dependency (#33548)
Add bazel dependency on opentelemetry-cpp.
<!--

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.

-->
2023-06-27 00:47:01 -07:00
Sergii Tkachenko de6ed9ba9f
[Python] Migrate from yapf to black (#33138)
- Switched  from yapf to black
- Reconfigure isort for black
- Resolve black/pylint idiosyncrasies 

Note: I used `--experimental-string-processing` because black was
producing "implicit string concatenation", similar to what described
here: https://github.com/psf/black/issues/1837. While currently this
feature is experimental, it will be enabled by default:
https://github.com/psf/black/issues/2188. After running black with the
new string processing so that the generated code merges these `"hello" "
world"` strings concatenations, then I removed
`--experimental-string-processing` for stability, and regenerated the
code again.

To the reviewer: don't even try to open "Files Changed" tab 😄 It's
better to review commit-by-commit, and ignore `run black and isort`.
2023-06-09 15:08:55 -07:00
Craig Tiller 2bcca66712
[fuzzing] Roll forward dep on fuzztest (#32667)
<!--

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.

-->

---------

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2023-03-21 13:37:32 -07:00
Craig Tiller 522bed8cc6
Revert "[fuzzing] Add dep on google fuzz test" (#32666)
Reverts grpc/grpc#32578
2023-03-20 20:31:06 -07:00
Craig Tiller dbb131b193
[fuzzing] Add dep on google fuzz test (#32578)
Initial PR to establish a bazel dependency on
https://github.com/google/fuzztest, with which I'm planning on basing a
hardening program.

Casting a relatively wide net with reviewers: I'm genuinely interested
in feedback building up the docs, and general ergonomics of this change.

I've located relevant files in the `fuzztest/...` directory. The tests
only build with the `--config fuzztest` bazel argument for now (because
of needing C++17), so locating them separately keeps `bazel test
test/...` working as it does today. In a few years time, when we adopt
C++17, we'll be able to rationalize the test directories a little bit.

We'll need to add some kokoro jobs (maybe with this PR?) to execute the
relevant tests.

<!--

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.

-->

---------

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2023-03-20 17:45:52 -07:00
Hannah Shi 842ed8d461
[Objc] add ios libuv timer test (#28570)
* use libuv in third party

* add ios libuv timer test

* name changed correspondingly

* format code

* address comment

* remove libuv patch
2022-03-16 13:03:01 -07:00
Esun Kim e0a3a513a9
Buildify upb targets for validate & udpa (#28531)
* Buildify upb targets for validate & udpa

* Fix sanity test
2022-01-13 16:11:56 -08:00
Richard Belleville 59693b7e72
Migrate Infrastructure Scripts to Python 3 (#27135)
* Run 2to3 on tools directory

* Delete github_stats_tracking

* Re-run 2to3

* Remove unused script

* Remove unused script

* Remove unused line count utility

* Yapf. Isort

* Remove accidentally included file

* Migrate tools/distrib directory to python 3

* Remove unnecessary shebang

* Restore line_count directory

* Immediately convert subprocess.check_output output to string

* Take care of Python 2 shebangs

* Invoke scripts using a Python 3 interpreter

* Yapf. Isort

* Try installing Python 3 first

* See if we have any Python 3 versions installed

* Add Python 3.7 to Windows path

* Try adding a symlink

* Try to symlink differently

* Install six for Python 3

* Run run_interop_tests with python 3

* Try installing six in python3.7 explicitly

* Revert "Try installing six in python3.7 explicitly"

This reverts commit 2cf60d72f3.

* And debug some more

* Fix issue with jobset.py

* Add debug for CI failure

* Revert microbenchmark changes
2021-11-08 08:55:25 -08:00
Craig Tiller 87a973f01d
Add structurally aware fuzzing support (#27405)
* Add a dependency on libprotobuf-mutator

* Changes for structured fuzzing

* fuzznificent

* add a config that will build fuzzers

* bazel run --config=fuzzer_asan //path/to:fuzzer fuzzes!

* fixes

* Automated change: Fix sanity tests

* Automated change: Fix sanity tests

* fixes

* fix

* sanitizer fix

* fix directory

* regen stuff

* compile error

* remove fuzzers from cmake build

* Automated change: Fix sanity tests

* review feedback

* remove unnecessary load

* review feedback

* review feedback

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2021-09-22 14:40:43 -07:00
Richard Belleville b6cc72f129
Revert "Run 2to3 on tools directory (#26002)" (#27183)
This reverts commit a388361c3d.
2021-08-30 12:29:20 -07:00
Richard Belleville a388361c3d
Run 2to3 on tools directory (#26002)
* Run 2to3 on tools directory

* Delete github_stats_tracking

* Re-run 2to3

* Remove unused script

* Remove unused script

* Remove unused line count utility

* Yapf. Isort

* Remove accidentally included file

* Restore line_count directory
2021-08-30 09:25:21 -07:00
Lidi Zheng 565520443b
[xDS Proto] Update Bazel dependencies (#25511)
* [xDS Proto] Update Bazel dependencies

* Include transitive deps required by xDS proto libraries
* The Golang deps come from protoc-gen-validate project
* Adding a new submodule: opencensus-proto

* Add the new submodule to .bazelignore

* Update WORKSPACE file to initialize googleapis

* Remove WORKSPACE override

* Adopt reviewer's advice
2021-03-01 17:53:11 -08:00
Esun Kim ab44f737ec py2to3 sanity scripts 2020-12-11 13:37:36 -08:00
capstan 1f670397ce Remove gflags.
With the move to abseil's flags, this removed the now-unnecessary submodule and installation commands.
2020-11-14 03:03:55 +01:00
Esun Kim 0e0e12aa22 Using comp_db for clang-tidy 2020-10-13 09:51:31 -07:00
Donna Dionne 8dd0cb4712 Add support for xDS regex matchers. 2020-07-07 13:17:25 -07:00
Esun Kim 681d2fcb08 Rename com_github_google_googletest to com_google_googletest 2020-06-23 14:38:15 -07:00
Jan Tattermusch c6d788c395 add upb to _GRPC_BAZEL_ONLY_DEPS 2020-04-27 08:26:29 -04:00
Jan Tattermusch 3c83ce5187 add back check removed by mistake in #15070 2020-04-27 08:26:29 -04:00
Jan Tattermusch fc5938ad41 handle mirror urls in check_bazel_workspace.py 2020-04-24 11:43:01 -04:00
Guantao Liu df43012698 Fix tools/run_tests/sanity/check_bazel_workspace.py 2020-01-07 17:57:13 -08:00
Esun Kim 7be821ac47 Yapf all target python sources 2020-01-03 09:25:10 -08:00
Danjie Wenren 93e8830070 Address comments.
- Fix sanit test check_bazel_workspace.py.
- Use the new `grpc_extra_deps` in the Bazel workspace test.
2019-10-14 22:51:10 -07:00
hcaseyal fe2fb14d07
Merge pull request #20023 from hcaseyal/fix_googletest
Update googletest version to master
2019-08-22 15:53:16 -07:00
Hope Casey-Allen f66f047841 Update googletest version to fix BoringSSL support 2019-08-22 12:42:18 -07:00
Esun Kim 7ec6e8a4de Remove nanopb from gRPC 2019-08-21 13:31:21 -07:00
Lidi Zheng 66675437aa Bump YAPF to use Python 3 2019-08-20 08:37:26 -07:00
Richard Belleville 835786a476
Merge pull request #19822 from gnossen/py_proto_library
Separate py_grpc_library and py_proto_library.
2019-08-07 16:33:31 -07:00
Richard Belleville 37b6c8cefd Fix sanity check 2019-08-05 14:18:52 -07:00
Lidi Zheng a0ba0b1ff2 Change format 2019-08-01 17:59:27 -07:00
Lidi Zheng f20171f28b Found another breakage 2019-08-01 17:27:27 -07:00
Lidi Zheng 3eb376c911 Make py3 syntax check happy 2019-08-01 17:18:18 -07:00
Tony Lu f4ff1a12d0 Whitelisted build_bazel_rules_apple 2019-07-30 19:09:30 -07:00
Nicolas "Pixel" Noble fabad6e687 Fixing check bazel workspace script. 2019-06-26 00:51:51 +02:00
Hao Nguyen 79f7abb45e Update zlib dependency 2019-05-29 17:07:00 -07:00
Nicolas Lopez d1640057f2 use rbe_autoconfig 2019-03-28 09:56:50 -04:00
Adam Cozzette 7cd19f2af3 Updated check_bazel_workspace.py 2019-02-07 14:54:52 -08:00
Nicolas "Pixel" Noble 237cc52ffd Fix sanity checker. 2018-12-01 00:42:34 +01:00
Vishal Powar f614fa5947 Adding upb as submodule
upb will be used for codegen of xDS protos.
2018-11-28 10:09:03 -08:00
Jim King 01cbab60f3
Merge pull request #15070 from Vizerai/filter_port
Adding opencensus grpc plugin with bazel support.
2018-06-18 17:01:26 -07:00
David Garcia Quintas 78a5e30019 removed leftover pdb import 2018-06-11 16:01:19 -07:00
David Garcia Quintas fdf6a302d1 Add nanopb as an exception to sanity bazel workspace script 2018-06-04 11:21:19 -07:00
David Garcia Quintas fd133b5189 add nanopb bazel dep to bazel workspace check 2018-06-01 16:10:08 -07:00
Vizerai 41e4cedb70 Adding opencensus grpc plugin.
Rebasing to merge commits.
2018-05-10 11:41:15 -07:00
Alex Polcyn aa56034b58 Add python bazel deps needed to run resolver component tests 2018-02-14 14:06:00 -08:00
Alexander Polcyn 54a70409c0 Move more special cases in bazel build to the .bzl files 2017-12-14 18:11:25 -08:00
ncteisen 0cd6cfefa0 yapf tools/run_tests/sanity 2017-12-11 16:56:44 -08:00
josh 84a066bf29 Turning on executable bit for tools/run_tests/sanity/check_bazel_workspace.py 2017-11-17 20:11:56 -07:00