grpc/tools/distrib
Xuan Wang 11d9b083f3
[Python run_test] Fix run_test (#34292)
We're not running any test at all from `run_test.py` because of the way
we filter test cases:

1d136fd05f/src/python/grpcio_tests/tests/_runner.py (L137)

* `testcase_filter` is read from a json file (like [this
one](https://github.com/grpc/grpc/blob/master/src/python/grpcio_tests/tests/tests.json))
and test name is similar to `unit._metadata_test.MetadataTest`.
* `case.id()` is loaded by `iterate_suite_cases` and will always have a
prefix of `tests`, an example of case id will be:
`tests.unit._metadata_test.MetadataTest`.

Because of the prefix, none of the test case will be matched thus we're
not running any of the tests.

This PR fixes the prefix issue and all the regressions comes from not
running tests using `run_test.py`.

#### Other Changes
* Added couple of `__init__.py` file since it's required to load tests.
* Added `py_status_code` to Aio rpc state.
* `code()` is expecting to return a python gRPC code but current
`status_code` is a Cython code.
* Added `libsqlite3-dev` to our dockers because it's required for
`coverage==7.2.0`.
* Renamed csds and admin test because test case file have to end with
`_test`:
1d136fd05f/src/python/grpcio_tests/tests/_loader.py (L26)
* Removed gevent test from `run_test.py` because Bazel gevent tests
should be good enough for us.

<!--

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-10-11 09:50:53 -07:00
..
c-ish [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
docgen use internal release_open_source.py script to commit changes and create PR (#29686) 2022-05-16 09:17:34 +02:00
python [Python run_test] Fix run_test (#34292) 2023-10-11 09:50:53 -07:00
add-iwyu.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
bazel_style.cfg Revert "Merge pull request #18912 from grpc/revert-bazel-changes" 2019-04-30 11:17:11 -07:00
black_code.sh [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
buildifier_format_code.sh Make Buildifier Sanity Test Strict (#27807) 2021-11-03 14:57:04 -07:00
buildifier_format_code_strict.sh Make Buildifier Sanity Test Strict (#27807) 2021-11-03 14:57:04 -07:00
buildozer.sh fix generate_projects.sh fails in M1 Mac (#31868) 2023-01-03 18:05:19 -08:00
check_boringssl_prefix_symbol.sh uses sources.json 2020-07-17 13:39:55 -07:00
check_copyright.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
check_include_guards.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
check_naked_includes.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
check_namespace_qualification.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
check_path_length.py [windows] Add a check for too long path names (#33418) 2023-06-13 07:41:06 -07:00
check_protobuf_pod_version.sh Update third_party/protobuf to 3.21.12 (#32136) 2023-01-20 21:18:53 +01:00
check_pytype.sh Add type annotations to _channel.py and _server.py (#31677) 2022-11-28 11:31:07 -08:00
check_redundant_namespace_qualifiers.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
check_trailing_newlines.sh Fix check_trailing_newlines bug 2020-10-23 09:28:36 -07:00
check_upb_output.sh upb codegen: put .upbdefs.h and .upbdefs.c files in a different directory 2020-08-20 18:17:20 +02:00
check_windows_dlls.sh Fix check_windows_dlls.sh to pass shellcheck 2018-01-16 14:46:04 -08:00
clang_format_code.sh Generate experiments during sanitization (#30966) 2022-09-30 14:03:15 -07:00
clang_tidy_code.sh Update by review 2020-10-13 09:54:50 -07:00
fix_build_deps.py [fuzzing] Expose random number generator to some fuzzers (#34415) 2023-09-25 10:17:58 -07:00
format_bazel.sh Remove enum and future (#31381) 2022-10-18 14:58:30 -07:00
gen_compilation_database.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
gen_db.sh [build] Add a script to *just* generate the compilation db (#30315) 2022-07-28 09:34:06 -07:00
gen_experiments_and_format.sh Fix experiments (#31528) 2022-11-02 11:55:14 -07:00
generate_boringssl_prefix_header.sh address comments 2020-04-20 10:44:04 -07:00
guard_headers.sh auto-fix most of licenses 2017-06-08 11:22:41 +02:00
install_all_python_modules.sh Update install_all_python_modules.sh to account for new packages (#31103) 2022-09-22 13:56:47 -07:00
isort_code.sh [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
iwyu.sh [OTel and Csm] Cosmetic API changes (#34294) 2023-09-11 12:23:45 -07:00
iwyu_mappings.imp Revert #30349 (#32008) 2023-01-03 11:00:30 -08:00
pull_requests_interval.sh Adding Copyright info. 2017-09-29 19:18:41 +02:00
pylint_code.sh [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
python_wrapper.sh Fix portability (#28284) 2021-12-08 05:46:42 +01:00
rake_compiler_docker_image.rb More cleanup after moving testing docker images to artifact registry. (#31689) 2022-11-24 14:09:16 +01:00
run_buildozer.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
run_clang_tidy.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
sanitize.sh [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
update_flakes.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
update_flakes_query.py [test] Semi-automatic flaky test tracking (#30638) 2022-08-19 16:22:31 -07:00