Commit Graph

14 Commits

Author SHA1 Message Date
Lidi Zheng 2231c2ba77
Introduce Python import sorting to our sanity test suite (#26768)
* Add isort_code.sh to sanity tests

* Run tools/distrib/isort_code.sh

* Fine tune the import order for relative imports

* Make pylint and project generation happy

* Fix a few corner cases

* Use --check instead of --diff

* The import order impacts test result somehow

* Make isort print diff and check output at the same time

* Let tools/run_tests/python_utils be firstparty library

* Run isort against latest HEAD
2021-07-26 12:31:21 -07:00
AJ Heller 6ff042277e
Fix invalid use of python's traceback.print_exc (#25743)
The exception is being interpreted as a `limit` (int) to cap the number
of stack trace entries to print.

https://docs.python.org/3/library/traceback.html#traceback.print_exc
2021-03-17 12:04:15 -07:00
AJ Heller 5139a012e7
Migrate the bm_diff benchmarks to python3 (#25619)
* Migrate the bm_diff benchmarks to python3

Includes a requirements.txt pinned at ~2017 versions, when this script
was first written.

* Replace p2 with p3 scipy/numpy dependencies.

* py2->3 for benchmark setup scripts

* upgrade pip to resolve python3 cryptography/setuptools-rust problem

* re-add jobset import (accidentally removed)

* re-add six's urllib import. This file is still used in py2 tests

* force py3 in run_if_c_cpp_modified.sh

* Fix another instance of subprocess.check_output binary mode

* Use the requirements.txt for CI perf environment setup

* Try to upgrade PyJWT. (v2.0.0 was problematic, #25053)

v2.x makes encode return strs from jwt.encode in both py2 and py3.
Previously, py3 would return bytes, and py2 a str.

* upgate cryptography lib version requirements for jwt.

* Wrap pip requirements specifier in quotes '>=x,<y'

* Decode subprocess output once instead of for every line

* Revert "Decode subprocess output once instead of for every line"

This reverts commit 28d14026431622ac7afd3535a8d7118e5be96628.

py2 doesn't support the `text` argument to subprocess.check_output.

* Address reviewer requests

* Pin a valid scipy version

* Remove scipy and tabulate dependencies from macos tests
2021-03-09 15:44:00 +01:00
Esun Kim 7be821ac47 Yapf all target python sources 2020-01-03 09:25:10 -08:00
Lidi Zheng 6b437ca80f Increase the retry interval 2019-03-06 15:30:33 -08:00
Lidi Zheng cf70b744f1 Silent the check_on_pr failure 2019-03-06 15:02:29 -08:00
Lidi Zheng 684690c2d7 Adopt reviewers' advice 2019-02-12 16:04:21 -08:00
Lidi Zheng bf8bef9c78 Add retries for check_on_pr 2019-02-12 15:13:27 -08:00
Lidi Zheng 886a932a1a Use KOKORO_GITHUB_PULL_REQUEST_NUMBER instead of ghprbPullId 2018-12-18 14:24:58 -08:00
Lidi Zheng eafb1d527d Reorgnize dependencies and variables 2018-12-17 18:14:58 -08:00
Lidi Zheng 6692429f31 Download private key from KeyStore 2018-12-17 16:25:25 -08:00
Nicolas Noble a744221a2c
Editing appid and installation id
Created these from the grpc-bot account.
2018-12-14 14:14:46 -08:00
Lidi Zheng 5a38d1956f Make yapf happy 2018-12-14 10:08:22 -08:00
Lidi Zheng 0f0822d53f WIP: Utilize the GitHub Check Feature 2018-12-13 16:40:47 -08:00