8 Commits

Author SHA1 Message Date
Keith Smiley b32559187c [bazel] Use python rules from rules_python (#40687)
This is required for the upcoming bazel 9.x release.

Closes #40687

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40687 from keith:ks/bazel-use-python-rules-from-rules_python a4368f6e90edc883b639663e66d41074817f4013
PiperOrigin-RevId: 807360317
2025-09-15 13:31:10 -07:00
Ashesh Vidyut 9ac4b4d2f4 [Python] [Part 1] Add Typeguard to AIO stack in tests (#40201)
### Description

Add typeguard to AIO stack - runs only in tests

### Testing

To test if this change works on or not, I added return type `-> str` in this line -

https://github.com/grpc/grpc/blob/master/src/python/grpcio/grpc/aio/_server.py#L207

Then command

```
bazel test //src/python/grpcio_tests/tests_aio/unit:all
```

started failing with error of typeguard.

Closes #40201

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40201 from asheshvidyut:feature/type-hints/typeguard-aio-stack cea4d6b7dceb55238a53680be71b5c1f3f3a63e4
PiperOrigin-RevId: 783243843
2025-07-15 02:18:52 -07:00
Sourabh Singh 9110b0db79 adding back logging threshold tests (#37843)
Closes #37843

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37843 from sourabhsinghs:hotfix/logging-revert 9e2b74dbb556a84a6791ee4b37a91edfce8c233d
PiperOrigin-RevId: 688146365
2024-10-21 08:31:01 -07:00
Sourabh Singh 992b3aea8a remove logging_threshold tests (#37806)
Closes #37806

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37806 from sourabhsinghs:unittest/logging-threshold d501d38dc0c487fe2019fd4b0db6b61d831df45f
PiperOrigin-RevId: 679604228
2024-09-27 08:43:19 -07:00
Sourabh Singh dc12396125 Added excessive logging threshold test (#37274)
* Added excessive logging threshold tests
* Excessive logs sample:

```
Warning: Excessive error output detected (7 lines):
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR

I0000 00:00:1724852923.140229      45 chttp2_transport.cc:1182] ipv6:%5B::1%5D:45545: Got goaway [2] err=UNAVAILABLE:GOAWAY received; Error code: 2; Debug Text: Cancelling all calls {file:"src/core/ext/transport/chttp2/transport/chttp2_transport.cc", file_line:1171, created_time:"2024-08-28T13:48:43.140192497+00:00", http2_error:2, grpc_status:14}
```

Closes #37274

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37274 from sourabhsinghs:unittest/logging-threshold 09a87693d04153cddab8a6d2495b7c172f3f8cfb
PiperOrigin-RevId: 678742613
2024-09-25 10:00:17 -07:00
Lidi Zheng 9a593c7126 Remove Python2 from python_configure.bzl (#28406)
* Remove Python2 from python_configure.bzl

* Replace py2and3_test with py_test with PY3

* Fix typo in the bazel script
2021-12-28 10:16:14 -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
Richard Belleville 7aa43b7a55 Create Bazel gevent test harness (#27507)
* WIP

* Add gevent test suite run under Bazel.

* Fix things up

* Yapf

* Fix up Bazel files

* Make py_grpc_test fancier

* Attempt to fix Windows RBE

* Attempt to kick GitHub

* Fix Python 2 runs

* Yet more fixes

* And the patch file too

* I am an idiot

* Mark gevent tests flaky

* Try to make rules_python more tolerant

* Typo

* Exclude reconnect test from gevent

* Remove unnecessary parts of patch

* Buildifier

* You saw nothing

* isort

* Move py_grpc_test to an internal-only file

* Review comments

* More reviewer comments

* Review
2021-10-07 14:04:34 -07:00